public class PhoneServiceUtil
extends Object
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.PhoneService| Constructor and Description |
|---|
PhoneServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Phone |
addPhone(String className,
long classPK,
String number,
String extension,
long typeId,
boolean primary,
ServiceContext serviceContext)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
static void |
deletePhone(long phoneId) |
static String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static Phone |
getPhone(long phoneId) |
static List<Phone> |
getPhones(String className,
long classPK) |
static PhoneService |
getService() |
static Phone |
updatePhone(long phoneId,
String number,
String extension,
long typeId,
boolean primary) |
public static Phone addPhone(String className, long classPK, String number, String extension, long typeId, boolean primary, ServiceContext serviceContext) throws PortalException
PhoneServiceUtil to access the phone remote service. Add custom service methods to com.liferay.portal.service.impl.PhoneServiceImpl and rerun ServiceBuilder to automatically copy the method declarations to this interface.PortalExceptionpublic static void deletePhone(long phoneId)
throws PortalException
PortalExceptionpublic static String getOSGiServiceIdentifier()
public static Phone getPhone(long phoneId) throws PortalException
PortalExceptionpublic static List<Phone> getPhones(String className, long classPK) throws PortalException
PortalExceptionpublic static Phone updatePhone(long phoneId, String number, String extension, long typeId, boolean primary) throws PortalException
PortalExceptionpublic static PhoneService getService()