001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class ContactServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portal.model.Contact getContact(long contactId)
059 throws com.liferay.portal.kernel.exception.PortalException,
060 com.liferay.portal.kernel.exception.SystemException {
061 return getService().getContact(contactId);
062 }
063
064 public static java.util.List<com.liferay.portal.model.Contact> getContacts(
065 long classNameId, long classPK, int start, int end,
066 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException {
069 return getService()
070 .getContacts(classNameId, classPK, start, end,
071 orderByComparator);
072 }
073
074 public static int getContactsCount(long classNameId, long classPK)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().getContactsCount(classNameId, classPK);
078 }
079
080 public static ContactService getService() {
081 if (_service == null) {
082 _service = (ContactService)PortalBeanLocatorUtil.locate(ContactService.class.getName());
083
084 ReferenceRegistry.registerReference(ContactServiceUtil.class,
085 "_service");
086 }
087
088 return _service;
089 }
090
091
094 public void setService(ContactService service) {
095 }
096
097 private static ContactService _service;
098 }