Interface PhoneService
- All Superinterfaces:
BaseService
- All Known Implementing Classes:
PhoneServiceWrapper
@AccessControlled
@CTAware
@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.
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionaddPhone
(String externalReferenceCode, String className, long classPK, String number, String extension, long typeId, boolean primary, ServiceContext serviceContext) void
deletePhone
(long phoneId) fetchPhoneByExternalReferenceCode
(String externalReferenceCode, long companyId) Returns the OSGi service identifier.getPhone
(long phoneId) getPhoneByExternalReferenceCode
(String externalReferenceCode, long companyId) updatePhone
(String externalReferenceCode, long phoneId, String number, String extension, long typeId, boolean primary)
-
Method Details
-
addPhone
Phone addPhone(String externalReferenceCode, String className, long classPK, String number, String extension, long typeId, boolean primary, ServiceContext serviceContext) throws PortalException - Throws:
PortalException
-
deletePhone
- Throws:
PortalException
-
fetchPhoneByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) Phone fetchPhoneByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Throws:
PortalException
-
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
getPhone
@Transactional(propagation=SUPPORTS, readOnly=true) Phone getPhone(long phoneId) throws PortalException - Throws:
PortalException
-
getPhoneByExternalReferenceCode
@Transactional(propagation=SUPPORTS, readOnly=true) Phone getPhoneByExternalReferenceCode(String externalReferenceCode, long companyId) throws PortalException - Throws:
PortalException
-
getPhones
@Transactional(propagation=SUPPORTS, readOnly=true) List<Phone> getPhones(String className, long classPK) throws PortalException - Throws:
PortalException
-
updatePhone
Phone updatePhone(String externalReferenceCode, long phoneId, String number, String extension, long typeId, boolean primary) throws PortalException - Throws:
PortalException
-