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