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            @Override
034            public com.liferay.portal.model.EmailAddress addEmailAddress(
035                    java.lang.String className, long classPK, java.lang.String address,
036                    long typeId, boolean primary,
037                    com.liferay.portal.service.ServiceContext serviceContext)
038                    throws com.liferay.portal.kernel.exception.PortalException {
039                    return _emailAddressService.addEmailAddress(className, classPK,
040                            address, typeId, primary, serviceContext);
041            }
042    
043            @Override
044            public void deleteEmailAddress(long emailAddressId)
045                    throws com.liferay.portal.kernel.exception.PortalException {
046                    _emailAddressService.deleteEmailAddress(emailAddressId);
047            }
048    
049            /**
050            * Returns the email address with the primary key.
051            *
052            * @param emailAddressId the primary key of the email address
053            * @return the email address with the primary key, or <code>null</code> if
054            an email address with the primary key could not be found or if
055            the user did not have permission to view the email address
056            */
057            @Override
058            public com.liferay.portal.model.EmailAddress fetchEmailAddress(
059                    long emailAddressId)
060                    throws com.liferay.portal.kernel.exception.PortalException {
061                    return _emailAddressService.fetchEmailAddress(emailAddressId);
062            }
063    
064            @Override
065            public com.liferay.portal.model.EmailAddress getEmailAddress(
066                    long emailAddressId)
067                    throws com.liferay.portal.kernel.exception.PortalException {
068                    return _emailAddressService.getEmailAddress(emailAddressId);
069            }
070    
071            @Override
072            public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses(
073                    java.lang.String className, long classPK)
074                    throws com.liferay.portal.kernel.exception.PortalException {
075                    return _emailAddressService.getEmailAddresses(className, classPK);
076            }
077    
078            /**
079            * Returns the OSGi service identifier.
080            *
081            * @return the OSGi service identifier
082            */
083            @Override
084            public java.lang.String getOSGiServiceIdentifier() {
085                    return _emailAddressService.getOSGiServiceIdentifier();
086            }
087    
088            @Override
089            public com.liferay.portal.model.EmailAddress updateEmailAddress(
090                    long emailAddressId, java.lang.String address, long typeId,
091                    boolean primary)
092                    throws com.liferay.portal.kernel.exception.PortalException {
093                    return _emailAddressService.updateEmailAddress(emailAddressId, address,
094                            typeId, primary);
095            }
096    
097            @Override
098            public EmailAddressService getWrappedService() {
099                    return _emailAddressService;
100            }
101    
102            @Override
103            public void setWrappedService(EmailAddressService emailAddressService) {
104                    _emailAddressService = emailAddressService;
105            }
106    
107            private EmailAddressService _emailAddressService;
108    }