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 externalReferenceCode,
String className,
long classPK,
String number,
String extension,
long typeId,
boolean primary,
ServiceContext serviceContext) |
void |
deletePhone(long phoneId) |
Phone |
fetchPhoneByExternalReferenceCode(String externalReferenceCode,
long companyId) |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
Phone |
getPhone(long phoneId) |
Phone |
getPhoneByExternalReferenceCode(String externalReferenceCode,
long companyId) |
List<Phone> |
getPhones(String className,
long classPK) |
PhoneService |
getWrappedService() |
void |
setWrappedService(PhoneService phoneService) |
Phone |
updatePhone(String externalReferenceCode,
long phoneId,
String number,
String extension,
long typeId,
boolean primary) |
public PhoneServiceWrapper()
public PhoneServiceWrapper(PhoneService phoneService)
public Phone addPhone(String externalReferenceCode, 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 Phone fetchPhoneByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException
fetchPhoneByExternalReferenceCode in interface PhoneServicePortalExceptionpublic String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface PhoneServicepublic Phone getPhone(long phoneId) throws PortalException
getPhone in interface PhoneServicePortalExceptionpublic Phone getPhoneByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException
getPhoneByExternalReferenceCode in interface PhoneServicePortalExceptionpublic List<Phone> getPhones(String className, long classPK) throws PortalException
getPhones in interface PhoneServicePortalExceptionpublic Phone updatePhone(String externalReferenceCode, 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>