Liferay 7.0-ce-b4

com.liferay.portal.service
Class PhoneServiceUtil

java.lang.Object
  extended by com.liferay.portal.service.PhoneServiceUtil

@ProviderType
public class PhoneServiceUtil
extends Object

Provides the remote service utility for Phone. This utility wraps com.liferay.portal.service.impl.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.

See Also:
PhoneService, PhoneServiceBaseImpl, com.liferay.portal.service.impl.PhoneServiceImpl

Constructor Summary
PhoneServiceUtil()
           
 
Method Summary
static Phone addPhone(String className, long classPK, String number, String extension, long typeId, boolean primary)
          Deprecated. As of 6.2.0, replaced by #addPhone(String, long, String, String, int, boolean, ServiceContext)
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhoneServiceUtil

public PhoneServiceUtil()
Method Detail

addPhone

@Deprecated
public static Phone addPhone(String className,
                                        long classPK,
                                        String number,
                                        String extension,
                                        long typeId,
                                        boolean primary)
                      throws PortalException
Deprecated. As of 6.2.0, replaced by #addPhone(String, long, String, String, int, boolean, ServiceContext)

Throws:
PortalException

addPhone

public static Phone addPhone(String className,
                             long classPK,
                             String number,
                             String extension,
                             long typeId,
                             boolean primary,
                             ServiceContext serviceContext)
                      throws PortalException
Throws:
PortalException

deletePhone

public static void deletePhone(long phoneId)
                        throws PortalException
Throws:
PortalException

getOSGiServiceIdentifier

public static String getOSGiServiceIdentifier()
Returns the OSGi service identifier.

Returns:
the OSGi service identifier

getPhone

public static Phone getPhone(long phoneId)
                      throws PortalException
Throws:
PortalException

getPhones

public static List<Phone> getPhones(String className,
                                    long classPK)
                             throws PortalException
Throws:
PortalException

updatePhone

public static Phone updatePhone(long phoneId,
                                String number,
                                String extension,
                                long typeId,
                                boolean primary)
                         throws PortalException
Throws:
PortalException

getService

public static PhoneService getService()

Liferay 7.0-ce-b4