public class PhoneServiceWrapper extends Object implements PhoneService, ServiceWrapper<PhoneService>
PhoneService.PhoneService| Constructor and Description |
|---|
PhoneServiceWrapper() |
PhoneServiceWrapper(PhoneService phoneService) |
| Modifier and Type | Method and Description |
|---|---|
Phone |
addPhone(String className,
long classPK,
String number,
String extension,
long typeId,
boolean primary,
ServiceContext serviceContext) |
void |
deletePhone(long phoneId) |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
Phone |
getPhone(long phoneId) |
List<Phone> |
getPhones(String className,
long classPK) |
PhoneService |
getWrappedService() |
void |
setWrappedService(PhoneService phoneService) |
Phone |
updatePhone(long phoneId,
String number,
String extension,
long typeId,
boolean primary) |
public PhoneServiceWrapper()
public PhoneServiceWrapper(PhoneService phoneService)
public Phone addPhone(String className, long classPK, String number, String extension, long typeId, boolean primary, ServiceContext serviceContext) throws PortalException
addPhone in interface PhoneServicePortalExceptionpublic void deletePhone(long phoneId)
throws PortalException
deletePhone in interface PhoneServicePortalExceptionpublic String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface PhoneServicepublic Phone getPhone(long phoneId) throws PortalException
getPhone in interface PhoneServicePortalExceptionpublic List<Phone> getPhones(String className, long classPK) throws PortalException
getPhones in interface PhoneServicePortalExceptionpublic Phone updatePhone(long phoneId, String number, String extension, long typeId, boolean primary) throws PortalException
updatePhone in interface PhoneServicePortalExceptionpublic PhoneService getWrappedService()
getWrappedService in interface ServiceWrapper<PhoneService>public void setWrappedService(PhoneService phoneService)
setWrappedService in interface ServiceWrapper<PhoneService>