Liferay 6.0.4

com.liferay.portal.service
Interface PhoneService

All Known Implementing Classes:
PhoneServiceBaseImpl, PhoneServiceImpl, PhoneServiceWrapper

@Transactional(isolation=PORTAL,
               rollbackFor={PortalException.class,SystemException.class})
public interface PhoneService

This interface defines the service. The default implementation is PhoneServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a remote service. 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
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Method Summary
 Phone addPhone(String className, long classPK, String number, String extension, int typeId, boolean primary)
           
 void deletePhone(long phoneId)
           
 Phone getPhone(long phoneId)
           
 List<Phone> getPhones(String className, long classPK)
           
 Phone updatePhone(long phoneId, String number, String extension, int typeId, boolean primary)
           
 

Method Detail

addPhone

Phone addPhone(String className,
               long classPK,
               String number,
               String extension,
               int typeId,
               boolean primary)
               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.0.4