1
14
15 package com.liferay.portal.service;
16
17
33 public class PhoneServiceWrapper implements PhoneService {
34 public PhoneServiceWrapper(PhoneService phoneService) {
35 _phoneService = phoneService;
36 }
37
38 public com.liferay.portal.model.Phone addPhone(java.lang.String className,
39 long classPK, java.lang.String number, java.lang.String extension,
40 int typeId, boolean primary)
41 throws com.liferay.portal.PortalException,
42 com.liferay.portal.SystemException {
43 return _phoneService.addPhone(className, classPK, number, extension,
44 typeId, primary);
45 }
46
47 public void deletePhone(long phoneId)
48 throws com.liferay.portal.PortalException,
49 com.liferay.portal.SystemException {
50 _phoneService.deletePhone(phoneId);
51 }
52
53 public com.liferay.portal.model.Phone getPhone(long phoneId)
54 throws com.liferay.portal.PortalException,
55 com.liferay.portal.SystemException {
56 return _phoneService.getPhone(phoneId);
57 }
58
59 public java.util.List<com.liferay.portal.model.Phone> getPhones(
60 java.lang.String className, long classPK)
61 throws com.liferay.portal.PortalException,
62 com.liferay.portal.SystemException {
63 return _phoneService.getPhones(className, classPK);
64 }
65
66 public com.liferay.portal.model.Phone updatePhone(long phoneId,
67 java.lang.String number, java.lang.String extension, int typeId,
68 boolean primary)
69 throws com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException {
71 return _phoneService.updatePhone(phoneId, number, extension, typeId,
72 primary);
73 }
74
75 public PhoneService getWrappedPhoneService() {
76 return _phoneService;
77 }
78
79 private PhoneService _phoneService;
80 }