Class PhoneServiceUtil
Object
com.liferay.portal.kernel.service.PhoneServiceUtil
Provides the remote service utility for Phone. This utility wraps
com.liferay.portal.service.impl.PhoneServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Phone
addPhone
(String externalReferenceCode, String className, long classPK, String number, String extension, long typeId, boolean primary, ServiceContext serviceContext) static void
deletePhone
(long phoneId) static Phone
fetchPhoneByExternalReferenceCode
(String externalReferenceCode, long companyId) static String
Returns the OSGi service identifier.static Phone
getPhone
(long phoneId) static Phone
getPhoneByExternalReferenceCode
(String externalReferenceCode, long companyId) static PhoneService
static void
setService
(PhoneService service) static Phone
updatePhone
(String externalReferenceCode, long phoneId, String number, String extension, long typeId, boolean primary)
-
Constructor Details
-
PhoneServiceUtil
public PhoneServiceUtil()
-
-
Method Details
-
addPhone
public static Phone addPhone(String externalReferenceCode, String className, long classPK, String number, String extension, long typeId, boolean primary, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deletePhone
- Throws:
PortalException
-
fetchPhoneByExternalReferenceCode
public static Phone fetchPhoneByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPhone
- Throws:
PortalException
-
getPhoneByExternalReferenceCode
public static Phone getPhoneByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Throws:
PortalException
-
getPhones
- Throws:
PortalException
-
updatePhone
public static Phone updatePhone(String externalReferenceCode, long phoneId, String number, String extension, long typeId, boolean primary) throws PortalException - Throws:
PortalException
-
getService
-
setService
-