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