001    /**
002     * Copyright (c) 2000-2012 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 PhoneService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PhoneService
024     * @generated
025     */
026    public class PhoneServiceWrapper implements PhoneService,
027            ServiceWrapper<PhoneService> {
028            public PhoneServiceWrapper(PhoneService phoneService) {
029                    _phoneService = phoneService;
030            }
031    
032            public com.liferay.portal.model.Phone addPhone(java.lang.String className,
033                    long classPK, java.lang.String number, java.lang.String extension,
034                    int typeId, boolean primary)
035                    throws com.liferay.portal.kernel.exception.PortalException,
036                            com.liferay.portal.kernel.exception.SystemException {
037                    return _phoneService.addPhone(className, classPK, number, extension,
038                            typeId, primary);
039            }
040    
041            public void deletePhone(long phoneId)
042                    throws com.liferay.portal.kernel.exception.PortalException,
043                            com.liferay.portal.kernel.exception.SystemException {
044                    _phoneService.deletePhone(phoneId);
045            }
046    
047            public com.liferay.portal.model.Phone getPhone(long phoneId)
048                    throws com.liferay.portal.kernel.exception.PortalException,
049                            com.liferay.portal.kernel.exception.SystemException {
050                    return _phoneService.getPhone(phoneId);
051            }
052    
053            public java.util.List<com.liferay.portal.model.Phone> getPhones(
054                    java.lang.String className, long classPK)
055                    throws com.liferay.portal.kernel.exception.PortalException,
056                            com.liferay.portal.kernel.exception.SystemException {
057                    return _phoneService.getPhones(className, classPK);
058            }
059    
060            public com.liferay.portal.model.Phone updatePhone(long phoneId,
061                    java.lang.String number, java.lang.String extension, int typeId,
062                    boolean primary)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    return _phoneService.updatePhone(phoneId, number, extension, typeId,
066                            primary);
067            }
068    
069            /**
070             * @deprecated Renamed to {@link #getWrappedService}
071             */
072            public PhoneService getWrappedPhoneService() {
073                    return _phoneService;
074            }
075    
076            /**
077             * @deprecated Renamed to {@link #setWrappedService}
078             */
079            public void setWrappedPhoneService(PhoneService phoneService) {
080                    _phoneService = phoneService;
081            }
082    
083            public PhoneService getWrappedService() {
084                    return _phoneService;
085            }
086    
087            public void setWrappedService(PhoneService phoneService) {
088                    _phoneService = phoneService;
089            }
090    
091            private PhoneService _phoneService;
092    }