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 OSGi service identifier.
065            *
066            * @return the OSGi service identifier
067            */
068            @Override
069            public java.lang.String getOSGiServiceIdentifier() {
070                    return _phoneService.getOSGiServiceIdentifier();
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            @Override
087            public com.liferay.portal.model.Phone updatePhone(long phoneId,
088                    java.lang.String number, java.lang.String extension, long typeId,
089                    boolean primary)
090                    throws com.liferay.portal.kernel.exception.PortalException {
091                    return _phoneService.updatePhone(phoneId, number, extension, typeId,
092                            primary);
093            }
094    
095            @Override
096            public PhoneService getWrappedService() {
097                    return _phoneService;
098            }
099    
100            @Override
101            public void setWrappedService(PhoneService phoneService) {
102                    _phoneService = phoneService;
103            }
104    
105            private PhoneService _phoneService;
106    }