@AccessControlled @JSONWebService @ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface PhoneService extends BaseService
PhoneServiceUtil
Modifier and Type | Method and Description |
---|---|
Phone |
addPhone(String className,
long classPK,
String number,
String extension,
long typeId,
boolean primary,
ServiceContext serviceContext)
NOTE FOR DEVELOPERS:
Never modify or reference this interface directly.
|
void |
deletePhone(long phoneId) |
String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
Phone |
getPhone(long phoneId) |
List<Phone> |
getPhones(String className,
long classPK) |
Phone |
updatePhone(long phoneId,
String number,
String extension,
long typeId,
boolean primary) |
Phone addPhone(String className, long classPK, String number, String extension, long typeId, boolean primary, ServiceContext serviceContext) throws PortalException
PhoneServiceUtil
to access the phone remote service. Add custom service methods to com.liferay.portal.service.impl.PhoneServiceImpl
and rerun ServiceBuilder to automatically copy the method declarations to this interface.PortalException
void deletePhone(long phoneId) throws PortalException
PortalException
String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) Phone getPhone(long phoneId) throws PortalException
PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) List<Phone> getPhones(String className, long classPK) throws PortalException
PortalException
Phone updatePhone(long phoneId, String number, String extension, long typeId, boolean primary) throws PortalException
PortalException