@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 PhoneService
PortalException
public void deletePhone(long phoneId) throws PortalException
deletePhone
in interface PhoneService
PortalException
public String getOSGiServiceIdentifier()
getOSGiServiceIdentifier
in interface PhoneService
public Phone getPhone(long phoneId) throws PortalException
getPhone
in interface PhoneService
PortalException
public List<Phone> getPhones(String className, long classPK) throws PortalException
getPhones
in interface PhoneService
PortalException
public Phone updatePhone(long phoneId, String number, String extension, long typeId, boolean primary) throws PortalException
updatePhone
in interface PhoneService
PortalException
public PhoneService getWrappedService()
getWrappedService
in interface ServiceWrapper<PhoneService>
public void setWrappedService(PhoneService phoneService)
setWrappedService
in interface ServiceWrapper<PhoneService>