Class PhoneServiceWrapper
Object
com.liferay.portal.kernel.service.PhoneServiceWrapper
- All Implemented Interfaces:
BaseService
,PhoneService
,ServiceWrapper<PhoneService>
public class PhoneServiceWrapper
extends Object
implements PhoneService, ServiceWrapper<PhoneService>
Provides a wrapper for
PhoneService
.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPhone
(String externalReferenceCode, String className, long classPK, String number, String extension, long typeId, boolean primary, ServiceContext serviceContext) void
deletePhone
(long phoneId) fetchPhoneByExternalReferenceCode
(String externalReferenceCode, long companyId) Returns the OSGi service identifier.getPhone
(long phoneId) getPhoneByExternalReferenceCode
(String externalReferenceCode, long companyId) void
setWrappedService
(PhoneService phoneService) updatePhone
(String externalReferenceCode, long phoneId, String number, String extension, long typeId, boolean primary)
-
Constructor Details
-
PhoneServiceWrapper
public PhoneServiceWrapper() -
PhoneServiceWrapper
-
-
Method Details
-
addPhone
public Phone addPhone(String externalReferenceCode, String className, long classPK, String number, String extension, long typeId, boolean primary, ServiceContext serviceContext) throws PortalException - Specified by:
addPhone
in interfacePhoneService
- Throws:
PortalException
-
deletePhone
- Specified by:
deletePhone
in interfacePhoneService
- Throws:
PortalException
-
fetchPhoneByExternalReferenceCode
public Phone fetchPhoneByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Specified by:
fetchPhoneByExternalReferenceCode
in interfacePhoneService
- Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfacePhoneService
- Returns:
- the OSGi service identifier
-
getPhone
- Specified by:
getPhone
in interfacePhoneService
- Throws:
PortalException
-
getPhoneByExternalReferenceCode
public Phone getPhoneByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Specified by:
getPhoneByExternalReferenceCode
in interfacePhoneService
- Throws:
PortalException
-
getPhones
- Specified by:
getPhones
in interfacePhoneService
- Throws:
PortalException
-
updatePhone
public Phone updatePhone(String externalReferenceCode, long phoneId, String number, String extension, long typeId, boolean primary) throws PortalException - Specified by:
updatePhone
in interfacePhoneService
- Throws:
PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfaceServiceWrapper<PhoneService>
-
setWrappedService
- Specified by:
setWrappedService
in interfaceServiceWrapper<PhoneService>
-