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