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