001    /**
002     * Copyright (c) 2000-present 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    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link EmailAddressService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see EmailAddressService
024     * @generated
025     */
026    @ProviderType
027    public class EmailAddressServiceWrapper implements EmailAddressService,
028            ServiceWrapper<EmailAddressService> {
029            public EmailAddressServiceWrapper(EmailAddressService emailAddressService) {
030                    _emailAddressService = emailAddressService;
031            }
032    
033            /**
034            * @deprecated As of 6.2.0, replaced by {@link #addEmailAddress(String,
035            long, String, int, boolean, ServiceContext)}
036            */
037            @Deprecated
038            @Override
039            public com.liferay.portal.model.EmailAddress addEmailAddress(
040                    java.lang.String className, long classPK, java.lang.String address,
041                    int typeId, boolean primary)
042                    throws com.liferay.portal.kernel.exception.PortalException {
043                    return _emailAddressService.addEmailAddress(className, classPK,
044                            address, typeId, primary);
045            }
046    
047            @Override
048            public com.liferay.portal.model.EmailAddress addEmailAddress(
049                    java.lang.String className, long classPK, java.lang.String address,
050                    int typeId, boolean primary,
051                    com.liferay.portal.service.ServiceContext serviceContext)
052                    throws com.liferay.portal.kernel.exception.PortalException {
053                    return _emailAddressService.addEmailAddress(className, classPK,
054                            address, typeId, primary, serviceContext);
055            }
056    
057            @Override
058            public void deleteEmailAddress(long emailAddressId)
059                    throws com.liferay.portal.kernel.exception.PortalException {
060                    _emailAddressService.deleteEmailAddress(emailAddressId);
061            }
062    
063            /**
064            * Returns the Spring bean ID for this bean.
065            *
066            * @return the Spring bean ID for this bean
067            */
068            @Override
069            public java.lang.String getBeanIdentifier() {
070                    return _emailAddressService.getBeanIdentifier();
071            }
072    
073            @Override
074            public com.liferay.portal.model.EmailAddress getEmailAddress(
075                    long emailAddressId)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    return _emailAddressService.getEmailAddress(emailAddressId);
078            }
079    
080            @Override
081            public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses(
082                    java.lang.String className, long classPK)
083                    throws com.liferay.portal.kernel.exception.PortalException {
084                    return _emailAddressService.getEmailAddresses(className, classPK);
085            }
086    
087            /**
088            * Sets the Spring bean ID for this bean.
089            *
090            * @param beanIdentifier the Spring bean ID for this bean
091            */
092            @Override
093            public void setBeanIdentifier(java.lang.String beanIdentifier) {
094                    _emailAddressService.setBeanIdentifier(beanIdentifier);
095            }
096    
097            @Override
098            public com.liferay.portal.model.EmailAddress updateEmailAddress(
099                    long emailAddressId, java.lang.String address, int typeId,
100                    boolean primary)
101                    throws com.liferay.portal.kernel.exception.PortalException {
102                    return _emailAddressService.updateEmailAddress(emailAddressId, address,
103                            typeId, primary);
104            }
105    
106            /**
107             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
108             */
109            @Deprecated
110            public EmailAddressService getWrappedEmailAddressService() {
111                    return _emailAddressService;
112            }
113    
114            /**
115             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
116             */
117            @Deprecated
118            public void setWrappedEmailAddressService(
119                    EmailAddressService emailAddressService) {
120                    _emailAddressService = emailAddressService;
121            }
122    
123            @Override
124            public EmailAddressService getWrappedService() {
125                    return _emailAddressService;
126            }
127    
128            @Override
129            public void setWrappedService(EmailAddressService emailAddressService) {
130                    _emailAddressService = emailAddressService;
131            }
132    
133            private EmailAddressService _emailAddressService;
134    }