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 ListTypeServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053 public static com.liferay.portal.model.ListType getListType(int listTypeId)
054 throws com.liferay.portal.kernel.exception.PortalException {
055 return getService().getListType(listTypeId);
056 }
057
058 public static java.util.List<com.liferay.portal.model.ListType> getListTypes(
059 java.lang.String type) {
060 return getService().getListTypes(type);
061 }
062
063
068 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
069 getService().setBeanIdentifier(beanIdentifier);
070 }
071
072 public static void validate(int listTypeId, long classNameId,
073 java.lang.String type)
074 throws com.liferay.portal.kernel.exception.PortalException {
075 getService().validate(listTypeId, classNameId, type);
076 }
077
078 public static void validate(int listTypeId, java.lang.String type)
079 throws com.liferay.portal.kernel.exception.PortalException {
080 getService().validate(listTypeId, type);
081 }
082
083 public static ListTypeService getService() {
084 if (_service == null) {
085 _service = (ListTypeService)PortalBeanLocatorUtil.locate(ListTypeService.class.getName());
086
087 ReferenceRegistry.registerReference(ListTypeServiceUtil.class,
088 "_service");
089 }
090
091 return _service;
092 }
093
094
097 @Deprecated
098 public void setService(ListTypeService service) {
099 }
100
101 private static ListTypeService _service;
102 }