001
014
015 package com.liferay.portlet.dynamicdatalists.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class DDLRecordSetServiceUtil {
035
040 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addRecordSet(
041 long groupId, long ddmStructureId, java.lang.String recordSetKey,
042 java.util.Map<java.util.Locale, java.lang.String> nameMap,
043 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
044 int minDisplayRows, int scope,
045 com.liferay.portal.service.ServiceContext serviceContext)
046 throws com.liferay.portal.kernel.exception.PortalException,
047 com.liferay.portal.kernel.exception.SystemException {
048 return getService()
049 .addRecordSet(groupId, ddmStructureId, recordSetKey,
050 nameMap, descriptionMap, minDisplayRows, scope, serviceContext);
051 }
052
053 public static void deleteRecordSet(long recordSetId)
054 throws com.liferay.portal.kernel.exception.PortalException,
055 com.liferay.portal.kernel.exception.SystemException {
056 getService().deleteRecordSet(recordSetId);
057 }
058
059 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
060 long recordSetId)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 return getService().getRecordSet(recordSetId);
064 }
065
066 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
067 long recordSetId, int minDisplayRows,
068 com.liferay.portal.service.ServiceContext serviceContext)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 return getService()
072 .updateMinDisplayRows(recordSetId, minDisplayRows,
073 serviceContext);
074 }
075
076 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
077 long recordSetId, long ddmStructureId,
078 java.util.Map<java.util.Locale, java.lang.String> nameMap,
079 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
080 int minDisplayRows,
081 com.liferay.portal.service.ServiceContext serviceContext)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException {
084 return getService()
085 .updateRecordSet(recordSetId, ddmStructureId, nameMap,
086 descriptionMap, minDisplayRows, serviceContext);
087 }
088
089 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
090 long groupId, long ddmStructureId, java.lang.String recordSetKey,
091 java.util.Map<java.util.Locale, java.lang.String> nameMap,
092 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
093 int minDisplayRows,
094 com.liferay.portal.service.ServiceContext serviceContext)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService()
098 .updateRecordSet(groupId, ddmStructureId, recordSetKey,
099 nameMap, descriptionMap, minDisplayRows, serviceContext);
100 }
101
102 public static DDLRecordSetService getService() {
103 if (_service == null) {
104 _service = (DDLRecordSetService)PortalBeanLocatorUtil.locate(DDLRecordSetService.class.getName());
105
106 ReferenceRegistry.registerReference(DDLRecordSetServiceUtil.class,
107 "_service");
108 MethodCache.remove(DDLRecordSetService.class);
109 }
110
111 return _service;
112 }
113
114 public void setService(DDLRecordSetService service) {
115 MethodCache.remove(DDLRecordSetService.class);
116
117 _service = service;
118
119 ReferenceRegistry.registerReference(DDLRecordSetServiceUtil.class,
120 "_service");
121 MethodCache.remove(DDLRecordSetService.class);
122 }
123
124 private static DDLRecordSetService _service;
125 }