com.liferay.portal.service
Interface PhoneService
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface PhoneService
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This interface defines the service. The default implementation is
com.liferay.portal.service.impl.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.
- Author:
- Brian Wing Shun Chan
- See Also:
PhoneServiceUtil
Method Summary |
Phone |
addPhone(java.lang.String className,
long classPK,
java.lang.String number,
java.lang.String extension,
int typeId,
boolean primary)
|
void |
deletePhone(long phoneId)
|
Phone |
getPhone(long phoneId)
|
java.util.List<Phone> |
getPhones(java.lang.String className,
long classPK)
|
Phone |
updatePhone(long phoneId,
java.lang.String number,
java.lang.String extension,
int typeId,
boolean primary)
|
addPhone
Phone addPhone(java.lang.String className,
long classPK,
java.lang.String number,
java.lang.String extension,
int typeId,
boolean primary)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deletePhone
void deletePhone(long phoneId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getPhone
@Transactional(propagation=SUPPORTS,
readOnly=true)
Phone getPhone(long phoneId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getPhones
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Phone> getPhones(java.lang.String className,
long classPK)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updatePhone
Phone updatePhone(long phoneId,
java.lang.String number,
java.lang.String extension,
int typeId,
boolean primary)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException