001
014
015 package com.liferay.portal.service;
016
017
026 public class PhoneServiceWrapper implements PhoneService,
027 ServiceWrapper<PhoneService> {
028 public PhoneServiceWrapper(PhoneService phoneService) {
029 _phoneService = phoneService;
030 }
031
032 public com.liferay.portal.model.Phone addPhone(java.lang.String className,
033 long classPK, java.lang.String number, java.lang.String extension,
034 int typeId, boolean primary)
035 throws com.liferay.portal.kernel.exception.PortalException,
036 com.liferay.portal.kernel.exception.SystemException {
037 return _phoneService.addPhone(className, classPK, number, extension,
038 typeId, primary);
039 }
040
041 public void deletePhone(long phoneId)
042 throws com.liferay.portal.kernel.exception.PortalException,
043 com.liferay.portal.kernel.exception.SystemException {
044 _phoneService.deletePhone(phoneId);
045 }
046
047 public com.liferay.portal.model.Phone getPhone(long phoneId)
048 throws com.liferay.portal.kernel.exception.PortalException,
049 com.liferay.portal.kernel.exception.SystemException {
050 return _phoneService.getPhone(phoneId);
051 }
052
053 public java.util.List<com.liferay.portal.model.Phone> getPhones(
054 java.lang.String className, long classPK)
055 throws com.liferay.portal.kernel.exception.PortalException,
056 com.liferay.portal.kernel.exception.SystemException {
057 return _phoneService.getPhones(className, classPK);
058 }
059
060 public com.liferay.portal.model.Phone updatePhone(long phoneId,
061 java.lang.String number, java.lang.String extension, int typeId,
062 boolean primary)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException {
065 return _phoneService.updatePhone(phoneId, number, extension, typeId,
066 primary);
067 }
068
069
072 public PhoneService getWrappedPhoneService() {
073 return _phoneService;
074 }
075
076
079 public void setWrappedPhoneService(PhoneService phoneService) {
080 _phoneService = phoneService;
081 }
082
083 public PhoneService getWrappedService() {
084 return _phoneService;
085 }
086
087 public void setWrappedService(PhoneService phoneService) {
088 _phoneService = phoneService;
089 }
090
091 private PhoneService _phoneService;
092 }