001    /**
002     * Copyright (c) 2000-2010 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    /**
018     * <p>
019     * This class is a wrapper for {@link PhoneService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       PhoneService
024     * @generated
025     */
026    public class PhoneServiceWrapper implements PhoneService {
027            public PhoneServiceWrapper(PhoneService phoneService) {
028                    _phoneService = phoneService;
029            }
030    
031            public com.liferay.portal.model.Phone addPhone(java.lang.String className,
032                    long classPK, java.lang.String number, java.lang.String extension,
033                    int typeId, boolean primary)
034                    throws com.liferay.portal.kernel.exception.PortalException,
035                            com.liferay.portal.kernel.exception.SystemException {
036                    return _phoneService.addPhone(className, classPK, number, extension,
037                            typeId, primary);
038            }
039    
040            public void deletePhone(long phoneId)
041                    throws com.liferay.portal.kernel.exception.PortalException,
042                            com.liferay.portal.kernel.exception.SystemException {
043                    _phoneService.deletePhone(phoneId);
044            }
045    
046            public com.liferay.portal.model.Phone getPhone(long phoneId)
047                    throws com.liferay.portal.kernel.exception.PortalException,
048                            com.liferay.portal.kernel.exception.SystemException {
049                    return _phoneService.getPhone(phoneId);
050            }
051    
052            public java.util.List<com.liferay.portal.model.Phone> getPhones(
053                    java.lang.String className, long classPK)
054                    throws com.liferay.portal.kernel.exception.PortalException,
055                            com.liferay.portal.kernel.exception.SystemException {
056                    return _phoneService.getPhones(className, classPK);
057            }
058    
059            public com.liferay.portal.model.Phone updatePhone(long phoneId,
060                    java.lang.String number, java.lang.String extension, int typeId,
061                    boolean primary)
062                    throws com.liferay.portal.kernel.exception.PortalException,
063                            com.liferay.portal.kernel.exception.SystemException {
064                    return _phoneService.updatePhone(phoneId, number, extension, typeId,
065                            primary);
066            }
067    
068            public PhoneService getWrappedPhoneService() {
069                    return _phoneService;
070            }
071    
072            private PhoneService _phoneService;
073    }