Interface ContactService
- All Superinterfaces:
BaseService
- All Known Implementing Classes:
ContactServiceWrapper
@AccessControlled
@JSONWebService
@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={PortalException.class,SystemException.class})
public interface ContactService
extends BaseService
Provides the remote service interface for Contact. 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 TypeMethodDescriptionaddContact
(long userId, String className, long classPK, String emailAddress, String firstName, String middleName, String lastName, long prefixListTypeId, long suffixListTypeId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String smsSn, String facebookSn, String jabberSn, String skypeSn, String twitterSn, String jobTitle) getCompanyContacts
(long companyId, int start, int end) int
getCompanyContactsCount
(long companyId) getContact
(long contactId) getContacts
(long classNameId, long classPK, int start, int end, OrderByComparator<Contact> orderByComparator) int
getContactsCount
(long classNameId, long classPK) Returns the OSGi service identifier.updateContact
(long contactId, String emailAddress, String firstName, String middleName, String lastName, long prefixListTypeId, long suffixListTypeId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String smsSn, String facebookSn, String jabberSn, String skypeSn, String twitterSn, String jobTitle)
-
Method Details
-
addContact
Contact addContact(long userId, String className, long classPK, String emailAddress, String firstName, String middleName, String lastName, long prefixListTypeId, long suffixListTypeId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String smsSn, String facebookSn, String jabberSn, String skypeSn, String twitterSn, String jobTitle) throws PortalException - Throws:
PortalException
-
getCompanyContacts
@Transactional(propagation=SUPPORTS, readOnly=true) List<Contact> getCompanyContacts(long companyId, int start, int end) throws PortalException - Throws:
PortalException
-
getCompanyContactsCount
-
getContact
@Transactional(propagation=SUPPORTS, readOnly=true) Contact getContact(long contactId) throws PortalException - Throws:
PortalException
-
getContacts
@Transactional(propagation=SUPPORTS, readOnly=true) List<Contact> getContacts(long classNameId, long classPK, int start, int end, OrderByComparator<Contact> orderByComparator) throws PortalException - Throws:
PortalException
-
getContactsCount
@Transactional(propagation=SUPPORTS, readOnly=true) int getContactsCount(long classNameId, long classPK) throws PortalException - Throws:
PortalException
-
getOSGiServiceIdentifier
String getOSGiServiceIdentifier()Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
updateContact
Contact updateContact(long contactId, String emailAddress, String firstName, String middleName, String lastName, long prefixListTypeId, long suffixListTypeId, boolean male, int birthdayMonth, int birthdayDay, int birthdayYear, String smsSn, String facebookSn, String jabberSn, String skypeSn, String twitterSn, String jobTitle) throws PortalException - Throws:
PortalException
-