@ProviderType
public class PhoneServiceUtil
extends Object
PhoneServiceImpl
and is the
primary 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
,
PhoneServiceBaseImpl
,
PhoneServiceImpl
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) |
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
PortalException
public static void deletePhone(long phoneId) throws PortalException
PortalException
public static String getOSGiServiceIdentifier()
public static Phone getPhone(long phoneId) throws PortalException
PortalException
public static List<Phone> getPhones(String className, long classPK) throws PortalException
PortalException
public static Phone updatePhone(long phoneId, String number, String extension, long typeId, boolean primary) throws PortalException
PortalException
public static PhoneService getService()