Liferay 7.0-ce-m3

com.liferay.portal.service
Interface PhoneService

All Superinterfaces:
BaseService
All Known Implementing Classes:
PhoneServiceWrapper

@AccessControlled
@JSONWebService
@ProviderType
@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, com.liferay.portal.service.impl.PhoneServiceImpl

Method Summary
 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)
 Phone addPhone(String className, long classPK, String number, String extension, int typeId, boolean primary, ServiceContext serviceContext)
           
 void deletePhone(long phoneId)
           
 String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
 Phone getPhone(long phoneId)
           
 List<Phone> getPhones(String className, long classPK)
           
 void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 Phone updatePhone(long phoneId, String number, String extension, int typeId, boolean primary)
           
 

Method Detail

addPhone

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

Throws:
PortalException

addPhone

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

deletePhone

void deletePhone(long phoneId)
                 throws PortalException
Throws:
PortalException

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

getPhone

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

getPhones

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

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

updatePhone

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

Liferay 7.0-ce-m3