Liferay 6.2.0

com.liferay.portal.service
Interface PhoneService

All Superinterfaces:
BaseService
All Known Implementing Classes:
PhoneServiceBaseImpl, PhoneServiceImpl, PhoneServiceWrapper

@ProviderType
@AccessControlled
@JSONWebService
@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface PhoneService
extends BaseService

Provides the remote service interface for Phone. 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:
PhoneServiceUtil, PhoneServiceBaseImpl, PhoneServiceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Method Summary
abstract  Phone addPhone(String className, long classPK, String number, String extension, int typeId, boolean primary)
          Deprecated. As of 6.2.0, replaced by addPhone( String, long, String, String, int, boolean, ServiceContext)
abstract  Phone addPhone(String className, long classPK, String number, String extension, int typeId, boolean primary, ServiceContext serviceContext)
           
abstract  void deletePhone(long phoneId)
           
abstract  String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
abstract  Phone getPhone(long phoneId)
           
abstract  List<Phone> getPhones(String className, long classPK)
           
abstract  void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
abstract  Phone updatePhone(long phoneId, String number, String extension, int typeId, boolean primary)
           
 

Method Detail

getBeanIdentifier

String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addPhone

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

Throws:
PortalException
SystemException

addPhone

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

deletePhone

void deletePhone(long phoneId)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

getPhone

@Transactional(propagation=SUPPORTS,
               readOnly=true)
Phone getPhone(long phoneId)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

getPhones

@Transactional(propagation=SUPPORTS,
               readOnly=true)
List<Phone> getPhones(String className,
                                                               long classPK)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

updatePhone

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

Liferay 6.2.0