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                    long 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                    long 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 email address with the primary key.
065            *
066            * @param emailAddressId the primary key of the email address
067            * @return the email address with the primary key, or <code>null</code> if
068            an email address with the primary key could not be found or if
069            the user did not have permission to view the email address
070            * @throws PortalException if a portal exception occurred
071            */
072            @Override
073            public com.liferay.portal.model.EmailAddress fetchEmailAddress(
074                    long emailAddressId)
075                    throws com.liferay.portal.kernel.exception.PortalException {
076                    return _emailAddressService.fetchEmailAddress(emailAddressId);
077            }
078    
079            /**
080            * Returns the Spring bean ID for this bean.
081            *
082            * @return the Spring bean ID for this bean
083            */
084            @Override
085            public java.lang.String getBeanIdentifier() {
086                    return _emailAddressService.getBeanIdentifier();
087            }
088    
089            @Override
090            public com.liferay.portal.model.EmailAddress getEmailAddress(
091                    long emailAddressId)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    return _emailAddressService.getEmailAddress(emailAddressId);
094            }
095    
096            @Override
097            public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses(
098                    java.lang.String className, long classPK)
099                    throws com.liferay.portal.kernel.exception.PortalException {
100                    return _emailAddressService.getEmailAddresses(className, classPK);
101            }
102    
103            /**
104            * Sets the Spring bean ID for this bean.
105            *
106            * @param beanIdentifier the Spring bean ID for this bean
107            */
108            @Override
109            public void setBeanIdentifier(java.lang.String beanIdentifier) {
110                    _emailAddressService.setBeanIdentifier(beanIdentifier);
111            }
112    
113            @Override
114            public com.liferay.portal.model.EmailAddress updateEmailAddress(
115                    long emailAddressId, java.lang.String address, long typeId,
116                    boolean primary)
117                    throws com.liferay.portal.kernel.exception.PortalException {
118                    return _emailAddressService.updateEmailAddress(emailAddressId, address,
119                            typeId, primary);
120            }
121    
122            /**
123             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
124             */
125            @Deprecated
126            public EmailAddressService getWrappedEmailAddressService() {
127                    return _emailAddressService;
128            }
129    
130            /**
131             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
132             */
133            @Deprecated
134            public void setWrappedEmailAddressService(
135                    EmailAddressService emailAddressService) {
136                    _emailAddressService = emailAddressService;
137            }
138    
139            @Override
140            public EmailAddressService getWrappedService() {
141                    return _emailAddressService;
142            }
143    
144            @Override
145            public void setWrappedService(EmailAddressService emailAddressService) {
146                    _emailAddressService = emailAddressService;
147            }
148    
149            private EmailAddressService _emailAddressService;
150    }