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