001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class ContactServiceUtil {
038
043 public static com.liferay.portal.model.Contact getContact(long contactId)
044 throws com.liferay.portal.kernel.exception.PortalException {
045 return getService().getContact(contactId);
046 }
047
048 public static java.util.List<com.liferay.portal.model.Contact> getContacts(
049 long classNameId, long classPK, int start, int end,
050 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Contact> orderByComparator)
051 throws com.liferay.portal.kernel.exception.PortalException {
052 return getService()
053 .getContacts(classNameId, classPK, start, end,
054 orderByComparator);
055 }
056
057 public static int getContactsCount(long classNameId, long classPK)
058 throws com.liferay.portal.kernel.exception.PortalException {
059 return getService().getContactsCount(classNameId, classPK);
060 }
061
062
067 public static java.lang.String getOSGiServiceIdentifier() {
068 return getService().getOSGiServiceIdentifier();
069 }
070
071 public static ContactService getService() {
072 if (_service == null) {
073 _service = (ContactService)PortalBeanLocatorUtil.locate(ContactService.class.getName());
074
075 ReferenceRegistry.registerReference(ContactServiceUtil.class,
076 "_service");
077 }
078
079 return _service;
080 }
081
082 private static ContactService _service;
083 }