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.kernel.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            @Override
034            public com.liferay.portal.kernel.model.Phone addPhone(
035                    java.lang.String className, long classPK, java.lang.String number,
036                    java.lang.String extension, long typeId, boolean primary,
037                    ServiceContext serviceContext)
038                    throws com.liferay.portal.kernel.exception.PortalException {
039                    return _phoneService.addPhone(className, classPK, number, extension,
040                            typeId, primary, serviceContext);
041            }
042    
043            @Override
044            public com.liferay.portal.kernel.model.Phone getPhone(long phoneId)
045                    throws com.liferay.portal.kernel.exception.PortalException {
046                    return _phoneService.getPhone(phoneId);
047            }
048    
049            @Override
050            public com.liferay.portal.kernel.model.Phone updatePhone(long phoneId,
051                    java.lang.String number, java.lang.String extension, long typeId,
052                    boolean primary)
053                    throws com.liferay.portal.kernel.exception.PortalException {
054                    return _phoneService.updatePhone(phoneId, number, extension, typeId,
055                            primary);
056            }
057    
058            /**
059            * Returns the OSGi service identifier.
060            *
061            * @return the OSGi service identifier
062            */
063            @Override
064            public java.lang.String getOSGiServiceIdentifier() {
065                    return _phoneService.getOSGiServiceIdentifier();
066            }
067    
068            @Override
069            public java.util.List<com.liferay.portal.kernel.model.Phone> getPhones(
070                    java.lang.String className, long classPK)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    return _phoneService.getPhones(className, classPK);
073            }
074    
075            @Override
076            public void deletePhone(long phoneId)
077                    throws com.liferay.portal.kernel.exception.PortalException {
078                    _phoneService.deletePhone(phoneId);
079            }
080    
081            @Override
082            public PhoneService getWrappedService() {
083                    return _phoneService;
084            }
085    
086            @Override
087            public void setWrappedService(PhoneService phoneService) {
088                    _phoneService = phoneService;
089            }
090    
091            private PhoneService _phoneService;
092    }