001    /**
002     * Copyright (c) 2000-2013 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            /**
033            * Returns the Spring bean ID for this bean.
034            *
035            * @return the Spring bean ID for this bean
036            */
037            public java.lang.String getBeanIdentifier() {
038                    return _phoneService.getBeanIdentifier();
039            }
040    
041            /**
042            * Sets the Spring bean ID for this bean.
043            *
044            * @param beanIdentifier the Spring bean ID for this bean
045            */
046            public void setBeanIdentifier(java.lang.String beanIdentifier) {
047                    _phoneService.setBeanIdentifier(beanIdentifier);
048            }
049    
050            public com.liferay.portal.model.Phone addPhone(java.lang.String className,
051                    long classPK, java.lang.String number, java.lang.String extension,
052                    int typeId, boolean primary)
053                    throws com.liferay.portal.kernel.exception.PortalException,
054                            com.liferay.portal.kernel.exception.SystemException {
055                    return _phoneService.addPhone(className, classPK, number, extension,
056                            typeId, primary);
057            }
058    
059            public void deletePhone(long phoneId)
060                    throws com.liferay.portal.kernel.exception.PortalException,
061                            com.liferay.portal.kernel.exception.SystemException {
062                    _phoneService.deletePhone(phoneId);
063            }
064    
065            public com.liferay.portal.model.Phone getPhone(long phoneId)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    return _phoneService.getPhone(phoneId);
069            }
070    
071            public java.util.List<com.liferay.portal.model.Phone> getPhones(
072                    java.lang.String className, long classPK)
073                    throws com.liferay.portal.kernel.exception.PortalException,
074                            com.liferay.portal.kernel.exception.SystemException {
075                    return _phoneService.getPhones(className, classPK);
076            }
077    
078            public com.liferay.portal.model.Phone updatePhone(long phoneId,
079                    java.lang.String number, java.lang.String extension, int typeId,
080                    boolean primary)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException {
083                    return _phoneService.updatePhone(phoneId, number, extension, typeId,
084                            primary);
085            }
086    
087            /**
088             * @deprecated Renamed to {@link #getWrappedService}
089             */
090            public PhoneService getWrappedPhoneService() {
091                    return _phoneService;
092            }
093    
094            /**
095             * @deprecated Renamed to {@link #setWrappedService}
096             */
097            public void setWrappedPhoneService(PhoneService phoneService) {
098                    _phoneService = phoneService;
099            }
100    
101            public PhoneService getWrappedService() {
102                    return _phoneService;
103            }
104    
105            public void setWrappedService(PhoneService phoneService) {
106                    _phoneService = phoneService;
107            }
108    
109            private PhoneService _phoneService;
110    }