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            @Override
034            public com.liferay.portal.model.Phone addPhone(java.lang.String className,
035                    long classPK, java.lang.String number, java.lang.String extension,
036                    long typeId, boolean primary,
037                    com.liferay.portal.service.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 void deletePhone(long phoneId)
045                    throws com.liferay.portal.kernel.exception.PortalException {
046                    _phoneService.deletePhone(phoneId);
047            }
048    
049            /**
050            * Returns the OSGi service identifier.
051            *
052            * @return the OSGi service identifier
053            */
054            @Override
055            public java.lang.String getOSGiServiceIdentifier() {
056                    return _phoneService.getOSGiServiceIdentifier();
057            }
058    
059            @Override
060            public com.liferay.portal.model.Phone getPhone(long phoneId)
061                    throws com.liferay.portal.kernel.exception.PortalException {
062                    return _phoneService.getPhone(phoneId);
063            }
064    
065            @Override
066            public java.util.List<com.liferay.portal.model.Phone> getPhones(
067                    java.lang.String className, long classPK)
068                    throws com.liferay.portal.kernel.exception.PortalException {
069                    return _phoneService.getPhones(className, classPK);
070            }
071    
072            @Override
073            public com.liferay.portal.model.Phone updatePhone(long phoneId,
074                    java.lang.String number, java.lang.String extension, long typeId,
075                    boolean primary)
076                    throws com.liferay.portal.kernel.exception.PortalException {
077                    return _phoneService.updatePhone(phoneId, number, extension, typeId,
078                            primary);
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    }