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     * Provides a wrapper for {@link PhoneService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see PhoneService
022     * @generated
023     */
024    public class PhoneServiceWrapper implements PhoneService,
025            ServiceWrapper<PhoneService> {
026            public PhoneServiceWrapper(PhoneService phoneService) {
027                    _phoneService = phoneService;
028            }
029    
030            /**
031            * Returns the Spring bean ID for this bean.
032            *
033            * @return the Spring bean ID for this bean
034            */
035            @Override
036            public java.lang.String getBeanIdentifier() {
037                    return _phoneService.getBeanIdentifier();
038            }
039    
040            /**
041            * Sets the Spring bean ID for this bean.
042            *
043            * @param beanIdentifier the Spring bean ID for this bean
044            */
045            @Override
046            public void setBeanIdentifier(java.lang.String beanIdentifier) {
047                    _phoneService.setBeanIdentifier(beanIdentifier);
048            }
049    
050            /**
051            * @deprecated As of 6.2.0, replaced by {@link #addPhone( String, long,
052            String, String, int, boolean, ServiceContext)}
053            */
054            @Override
055            public com.liferay.portal.model.Phone addPhone(java.lang.String className,
056                    long classPK, java.lang.String number, java.lang.String extension,
057                    int typeId, boolean primary)
058                    throws com.liferay.portal.kernel.exception.PortalException,
059                            com.liferay.portal.kernel.exception.SystemException {
060                    return _phoneService.addPhone(className, classPK, number, extension,
061                            typeId, primary);
062            }
063    
064            @Override
065            public com.liferay.portal.model.Phone addPhone(java.lang.String className,
066                    long classPK, java.lang.String number, java.lang.String extension,
067                    int typeId, boolean primary,
068                    com.liferay.portal.service.ServiceContext serviceContext)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _phoneService.addPhone(className, classPK, number, extension,
072                            typeId, primary, serviceContext);
073            }
074    
075            @Override
076            public void deletePhone(long phoneId)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    _phoneService.deletePhone(phoneId);
080            }
081    
082            @Override
083            public com.liferay.portal.model.Phone getPhone(long phoneId)
084                    throws com.liferay.portal.kernel.exception.PortalException,
085                            com.liferay.portal.kernel.exception.SystemException {
086                    return _phoneService.getPhone(phoneId);
087            }
088    
089            @Override
090            public java.util.List<com.liferay.portal.model.Phone> getPhones(
091                    java.lang.String className, long classPK)
092                    throws com.liferay.portal.kernel.exception.PortalException,
093                            com.liferay.portal.kernel.exception.SystemException {
094                    return _phoneService.getPhones(className, classPK);
095            }
096    
097            @Override
098            public com.liferay.portal.model.Phone updatePhone(long phoneId,
099                    java.lang.String number, java.lang.String extension, int typeId,
100                    boolean primary)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return _phoneService.updatePhone(phoneId, number, extension, typeId,
104                            primary);
105            }
106    
107            /**
108             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
109             */
110            public PhoneService getWrappedPhoneService() {
111                    return _phoneService;
112            }
113    
114            /**
115             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
116             */
117            public void setWrappedPhoneService(PhoneService phoneService) {
118                    _phoneService = phoneService;
119            }
120    
121            @Override
122            public PhoneService getWrappedService() {
123                    return _phoneService;
124            }
125    
126            @Override
127            public void setWrappedService(PhoneService phoneService) {
128                    _phoneService = phoneService;
129            }
130    
131            private PhoneService _phoneService;
132    }