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.ReferenceRegistry;
019
020
034 public class DDLRecordSetServiceUtil {
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.portlet.dynamicdatalists.model.DDLRecordSet addRecordSet(
060 long groupId, long ddmStructureId, java.lang.String recordSetKey,
061 java.util.Map<java.util.Locale, java.lang.String> nameMap,
062 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063 int minDisplayRows, int scope,
064 com.liferay.portal.service.ServiceContext serviceContext)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException {
067 return getService()
068 .addRecordSet(groupId, ddmStructureId, recordSetKey,
069 nameMap, descriptionMap, minDisplayRows, scope, serviceContext);
070 }
071
072 public static void deleteRecordSet(long recordSetId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteRecordSet(recordSetId);
076 }
077
078 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
079 long recordSetId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException {
082 return getService().getRecordSet(recordSetId);
083 }
084
085 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
086 long recordSetId, int minDisplayRows,
087 com.liferay.portal.service.ServiceContext serviceContext)
088 throws com.liferay.portal.kernel.exception.PortalException,
089 com.liferay.portal.kernel.exception.SystemException {
090 return getService()
091 .updateMinDisplayRows(recordSetId, minDisplayRows,
092 serviceContext);
093 }
094
095 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
096 long recordSetId, long ddmStructureId,
097 java.util.Map<java.util.Locale, java.lang.String> nameMap,
098 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
099 int minDisplayRows,
100 com.liferay.portal.service.ServiceContext serviceContext)
101 throws com.liferay.portal.kernel.exception.PortalException,
102 com.liferay.portal.kernel.exception.SystemException {
103 return getService()
104 .updateRecordSet(recordSetId, ddmStructureId, nameMap,
105 descriptionMap, minDisplayRows, serviceContext);
106 }
107
108 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
109 long groupId, long ddmStructureId, java.lang.String recordSetKey,
110 java.util.Map<java.util.Locale, java.lang.String> nameMap,
111 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
112 int minDisplayRows,
113 com.liferay.portal.service.ServiceContext serviceContext)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 return getService()
117 .updateRecordSet(groupId, ddmStructureId, recordSetKey,
118 nameMap, descriptionMap, minDisplayRows, serviceContext);
119 }
120
121 public static DDLRecordSetService getService() {
122 if (_service == null) {
123 _service = (DDLRecordSetService)PortalBeanLocatorUtil.locate(DDLRecordSetService.class.getName());
124
125 ReferenceRegistry.registerReference(DDLRecordSetServiceUtil.class,
126 "_service");
127 }
128
129 return _service;
130 }
131
132
135 public void setService(DDLRecordSetService service) {
136 }
137
138 private static DDLRecordSetService _service;
139 }