001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link EmailAddressService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       EmailAddressService
024     * @generated
025     */
026    public class EmailAddressServiceWrapper implements EmailAddressService {
027            public EmailAddressServiceWrapper(EmailAddressService emailAddressService) {
028                    _emailAddressService = emailAddressService;
029            }
030    
031            public com.liferay.portal.model.EmailAddress addEmailAddress(
032                    java.lang.String className, long classPK, java.lang.String address,
033                    int typeId, boolean primary)
034                    throws com.liferay.portal.kernel.exception.PortalException,
035                            com.liferay.portal.kernel.exception.SystemException {
036                    return _emailAddressService.addEmailAddress(className, classPK,
037                            address, typeId, primary);
038            }
039    
040            public void deleteEmailAddress(long emailAddressId)
041                    throws com.liferay.portal.kernel.exception.PortalException,
042                            com.liferay.portal.kernel.exception.SystemException {
043                    _emailAddressService.deleteEmailAddress(emailAddressId);
044            }
045    
046            public com.liferay.portal.model.EmailAddress getEmailAddress(
047                    long emailAddressId)
048                    throws com.liferay.portal.kernel.exception.PortalException,
049                            com.liferay.portal.kernel.exception.SystemException {
050                    return _emailAddressService.getEmailAddress(emailAddressId);
051            }
052    
053            public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses(
054                    java.lang.String className, long classPK)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException {
057                    return _emailAddressService.getEmailAddresses(className, classPK);
058            }
059    
060            public com.liferay.portal.model.EmailAddress updateEmailAddress(
061                    long emailAddressId, java.lang.String address, int typeId,
062                    boolean primary)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    return _emailAddressService.updateEmailAddress(emailAddressId, address,
066                            typeId, primary);
067            }
068    
069            public EmailAddressService getWrappedEmailAddressService() {
070                    return _emailAddressService;
071            }
072    
073            private EmailAddressService _emailAddressService;
074    }