@ProviderType public class PhoneServiceWrapper extends Object implements PhoneService, ServiceWrapper<PhoneService>
PhoneService.PhoneService| Constructor and Description |
|---|
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(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 Phone getPhone(long phoneId) throws PortalException
getPhone in interface PhoneServicePortalExceptionpublic Phone updatePhone(long phoneId, String number, String extension, long typeId, boolean primary) throws PortalException
updatePhone in interface PhoneServicePortalExceptionpublic String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface PhoneServicepublic List<Phone> getPhones(String className, long classPK) throws PortalException
getPhones in interface PhoneServicePortalExceptionpublic void deletePhone(long phoneId)
throws PortalException
deletePhone in interface PhoneServicePortalExceptionpublic PhoneService getWrappedService()
getWrappedService in interface ServiceWrapper<PhoneService>public void setWrappedService(PhoneService phoneService)
setWrappedService in interface ServiceWrapper<PhoneService>