001    /**
002     * Copyright (c) 2000-2010 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    /**
019     * <p>
020     * This class is a wrapper for {@link EmailAddressService}.
021     * </p>
022     *
023     * @author    Brian Wing Shun Chan
024     * @see       EmailAddressService
025     * @generated
026     */
027    public class EmailAddressServiceWrapper implements EmailAddressService {
028            public EmailAddressServiceWrapper(EmailAddressService emailAddressService) {
029                    _emailAddressService = emailAddressService;
030            }
031    
032            public com.liferay.portal.model.EmailAddress addEmailAddress(
033                    java.lang.String className, long classPK, java.lang.String address,
034                    int typeId, boolean primary)
035                    throws com.liferay.portal.kernel.exception.PortalException,
036                            com.liferay.portal.kernel.exception.SystemException {
037                    return _emailAddressService.addEmailAddress(className, classPK,
038                            address, typeId, primary);
039            }
040    
041            public void deleteEmailAddress(long emailAddressId)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    _emailAddressService.deleteEmailAddress(emailAddressId);
045            }
046    
047            public com.liferay.portal.model.EmailAddress getEmailAddress(
048                    long emailAddressId)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException {
051                    return _emailAddressService.getEmailAddress(emailAddressId);
052            }
053    
054            public java.util.List<com.liferay.portal.model.EmailAddress> getEmailAddresses(
055                    java.lang.String className, long classPK)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException {
058                    return _emailAddressService.getEmailAddresses(className, classPK);
059            }
060    
061            public com.liferay.portal.model.EmailAddress updateEmailAddress(
062                    long emailAddressId, java.lang.String address, int typeId,
063                    boolean primary)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return _emailAddressService.updateEmailAddress(emailAddressId, address,
067                            typeId, primary);
068            }
069    
070            public EmailAddressService getWrappedEmailAddressService() {
071                    return _emailAddressService;
072            }
073    
074            private EmailAddressService _emailAddressService;
075    }