001    /**
002     * Copyright (c) 2000-2011 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     * <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    }