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            */
071            @Override
072            public com.liferay.portal.model.EmailAddress fetchEmailAddress(
073                    long emailAddressId)
074                    throws com.liferay.portal.kernel.exception.PortalException {
075                    return _emailAddressService.fetchEmailAddress(emailAddressId);
076            }
077    
078            @Override
079            public com.liferay.portal.model.EmailAddress getEmailAddress(
080                    long emailAddressId)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return _emailAddressService.getEmailAddress(emailAddressId);
083            }
084    
085            @Override
086            public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses(
087                    java.lang.String className, long classPK)
088                    throws com.liferay.portal.kernel.exception.PortalException {
089                    return _emailAddressService.getEmailAddresses(className, classPK);
090            }
091    
092            /**
093            * Returns the OSGi service identifier.
094            *
095            * @return the OSGi service identifier
096            */
097            @Override
098            public java.lang.String getOSGiServiceIdentifier() {
099                    return _emailAddressService.getOSGiServiceIdentifier();
100            }
101    
102            @Override
103            public com.liferay.portal.model.EmailAddress updateEmailAddress(
104                    long emailAddressId, java.lang.String address, long typeId,
105                    boolean primary)
106                    throws com.liferay.portal.kernel.exception.PortalException {
107                    return _emailAddressService.updateEmailAddress(emailAddressId, address,
108                            typeId, primary);
109            }
110    
111            @Override
112            public EmailAddressService getWrappedService() {
113                    return _emailAddressService;
114            }
115    
116            @Override
117            public void setWrappedService(EmailAddressService emailAddressService) {
118                    _emailAddressService = emailAddressService;
119            }
120    
121            private EmailAddressService _emailAddressService;
122    }