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
034 public class ContactServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059 public static com.liferay.portal.model.Contact getContact(long contactId)
060 throws com.liferay.portal.kernel.exception.PortalException,
061 com.liferay.portal.kernel.exception.SystemException {
062 return getService().getContact(contactId);
063 }
064
065 public static java.util.List<com.liferay.portal.model.Contact> getContacts(
066 long classNameId, long classPK, int start, int end,
067 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return getService()
071 .getContacts(classNameId, classPK, start, end,
072 orderByComparator);
073 }
074
075 public static int getContactsCount(long classNameId, long classPK)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException {
078 return getService().getContactsCount(classNameId, classPK);
079 }
080
081 public static ContactService getService() {
082 if (_service == null) {
083 _service = (ContactService)PortalBeanLocatorUtil.locate(ContactService.class.getName());
084
085 ReferenceRegistry.registerReference(ContactServiceUtil.class,
086 "_service");
087 }
088
089 return _service;
090 }
091
092
095 public void setService(ContactService service) {
096 }
097
098 private static ContactService _service;
099 }