Class ContactServiceUtil
Object
com.liferay.portal.kernel.service.ContactServiceUtil
Provides the remote service utility for Contact. This utility wraps
com.liferay.portal.service.impl.ContactServiceImpl
and is an
access point for service operations in application layer code running on a
remote server. 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}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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) getCompanyContacts
(long companyId, int start, int end) static int
getCompanyContactsCount
(long companyId) static Contact
getContact
(long contactId) getContacts
(long classNameId, long classPK, int start, int end, OrderByComparator<Contact> orderByComparator) static int
getContactsCount
(long classNameId, long classPK) static String
Returns the OSGi service identifier.static ContactService
static void
setService
(ContactService service) static 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)
-
Constructor Details
-
ContactServiceUtil
public ContactServiceUtil()
-
-
Method Details
-
addContact
public static 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
public static List<Contact> getCompanyContacts(long companyId, int start, int end) throws PortalException - Throws:
PortalException
-
getCompanyContactsCount
public static int getCompanyContactsCount(long companyId) -
getContact
- Throws:
PortalException
-
getContacts
public static List<Contact> getContacts(long classNameId, long classPK, int start, int end, OrderByComparator<Contact> orderByComparator) throws PortalException - Throws:
PortalException
-
getContactsCount
- Throws:
PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
updateContact
public static 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
-
getService
-
setService
-