001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class ListTypeServiceUtil {
033 public static com.liferay.portal.model.ListType getListType(int listTypeId)
034 throws com.liferay.portal.kernel.exception.PortalException,
035 com.liferay.portal.kernel.exception.SystemException {
036 return getService().getListType(listTypeId);
037 }
038
039 public static java.util.List<com.liferay.portal.model.ListType> getListTypes(
040 java.lang.String type)
041 throws com.liferay.portal.kernel.exception.SystemException {
042 return getService().getListTypes(type);
043 }
044
045 public static void validate(int listTypeId, java.lang.String type)
046 throws com.liferay.portal.kernel.exception.PortalException,
047 com.liferay.portal.kernel.exception.SystemException {
048 getService().validate(listTypeId, type);
049 }
050
051 public static void validate(int listTypeId, long classNameId,
052 java.lang.String type)
053 throws com.liferay.portal.kernel.exception.PortalException,
054 com.liferay.portal.kernel.exception.SystemException {
055 getService().validate(listTypeId, classNameId, type);
056 }
057
058 public static ListTypeService getService() {
059 if (_service == null) {
060 _service = (ListTypeService)PortalBeanLocatorUtil.locate(ListTypeService.class.getName());
061 }
062
063 return _service;
064 }
065
066 public void setService(ListTypeService service) {
067 _service = service;
068 }
069
070 private static ListTypeService _service;
071 }