001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link EmailAddressService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       EmailAddressService
024     * @generated
025     */
026    public class EmailAddressServiceWrapper implements EmailAddressService,
027            ServiceWrapper<EmailAddressService> {
028            public EmailAddressServiceWrapper(EmailAddressService emailAddressService) {
029                    _emailAddressService = emailAddressService;
030            }
031    
032            public com.liferay.portal.model.EmailAddress addEmailAddress(
033                    java.lang.String className, long classPK, java.lang.String address,
034                    int typeId, boolean primary)
035                    throws com.liferay.portal.kernel.exception.PortalException,
036                            com.liferay.portal.kernel.exception.SystemException {
037                    return _emailAddressService.addEmailAddress(className, classPK,
038                            address, typeId, primary);
039            }
040    
041            public void deleteEmailAddress(long emailAddressId)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    _emailAddressService.deleteEmailAddress(emailAddressId);
045            }
046    
047            public com.liferay.portal.model.EmailAddress getEmailAddress(
048                    long emailAddressId)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException {
051                    return _emailAddressService.getEmailAddress(emailAddressId);
052            }
053    
054            public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses(
055                    java.lang.String className, long classPK)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException {
058                    return _emailAddressService.getEmailAddresses(className, classPK);
059            }
060    
061            public com.liferay.portal.model.EmailAddress updateEmailAddress(
062                    long emailAddressId, java.lang.String address, int typeId,
063                    boolean primary)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return _emailAddressService.updateEmailAddress(emailAddressId, address,
067                            typeId, primary);
068            }
069    
070            /**
071             * @deprecated Renamed to {@link #getWrappedService}
072             */
073            public EmailAddressService getWrappedEmailAddressService() {
074                    return _emailAddressService;
075            }
076    
077            /**
078             * @deprecated Renamed to {@link #setWrappedService}
079             */
080            public void setWrappedEmailAddressService(
081                    EmailAddressService emailAddressService) {
082                    _emailAddressService = emailAddressService;
083            }
084    
085            public EmailAddressService getWrappedService() {
086                    return _emailAddressService;
087            }
088    
089            public void setWrappedService(EmailAddressService emailAddressService) {
090                    _emailAddressService = emailAddressService;
091            }
092    
093            private EmailAddressService _emailAddressService;
094    }