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 public static com.liferay.portal.model.ListType getListType(long listTypeId)
044 throws com.liferay.portal.kernel.exception.PortalException {
045 return getService().getListType(listTypeId);
046 }
047
048 public static java.util.List<com.liferay.portal.model.ListType> getListTypes(
049 java.lang.String type) {
050 return getService().getListTypes(type);
051 }
052
053
058 public static java.lang.String getOSGiServiceIdentifier() {
059 return getService().getOSGiServiceIdentifier();
060 }
061
062 public static void validate(long listTypeId, long classNameId,
063 java.lang.String type)
064 throws com.liferay.portal.kernel.exception.PortalException {
065 getService().validate(listTypeId, classNameId, type);
066 }
067
068 public static void validate(long listTypeId, java.lang.String type)
069 throws com.liferay.portal.kernel.exception.PortalException {
070 getService().validate(listTypeId, type);
071 }
072
073 public static ListTypeService getService() {
074 if (_service == null) {
075 _service = (ListTypeService)PortalBeanLocatorUtil.locate(ListTypeService.class.getName());
076
077 ReferenceRegistry.registerReference(ListTypeServiceUtil.class,
078 "_service");
079 }
080
081 return _service;
082 }
083
084
087 @Deprecated
088 public void setService(ListTypeService service) {
089 }
090
091 private static ListTypeService _service;
092 }