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 java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
086 long companyId, long groupId, java.lang.String keywords, int scope,
087 int start, int end,
088 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService()
091 .search(companyId, groupId, keywords, scope, start, end,
092 orderByComparator);
093 }
094
095 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
096 long companyId, long groupId, java.lang.String name,
097 java.lang.String description, int scope, boolean andOperator,
098 int start, int end,
099 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService()
102 .search(companyId, groupId, name, description, scope,
103 andOperator, start, end, orderByComparator);
104 }
105
106 public static int searchCount(long companyId, long groupId,
107 java.lang.String keywords, int scope)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getService().searchCount(companyId, groupId, keywords, scope);
110 }
111
112 public static int searchCount(long companyId, long groupId,
113 java.lang.String name, java.lang.String description, int scope,
114 boolean andOperator)
115 throws com.liferay.portal.kernel.exception.SystemException {
116 return getService()
117 .searchCount(companyId, groupId, name, description, scope,
118 andOperator);
119 }
120
121 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
122 long recordSetId, int minDisplayRows,
123 com.liferay.portal.service.ServiceContext serviceContext)
124 throws com.liferay.portal.kernel.exception.PortalException,
125 com.liferay.portal.kernel.exception.SystemException {
126 return getService()
127 .updateMinDisplayRows(recordSetId, minDisplayRows,
128 serviceContext);
129 }
130
131 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
132 long recordSetId, long ddmStructureId,
133 java.util.Map<java.util.Locale, java.lang.String> nameMap,
134 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
135 int minDisplayRows,
136 com.liferay.portal.service.ServiceContext serviceContext)
137 throws com.liferay.portal.kernel.exception.PortalException,
138 com.liferay.portal.kernel.exception.SystemException {
139 return getService()
140 .updateRecordSet(recordSetId, ddmStructureId, nameMap,
141 descriptionMap, minDisplayRows, serviceContext);
142 }
143
144 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
145 long groupId, long ddmStructureId, java.lang.String recordSetKey,
146 java.util.Map<java.util.Locale, java.lang.String> nameMap,
147 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
148 int minDisplayRows,
149 com.liferay.portal.service.ServiceContext serviceContext)
150 throws com.liferay.portal.kernel.exception.PortalException,
151 com.liferay.portal.kernel.exception.SystemException {
152 return getService()
153 .updateRecordSet(groupId, ddmStructureId, recordSetKey,
154 nameMap, descriptionMap, minDisplayRows, serviceContext);
155 }
156
157 public static DDLRecordSetService getService() {
158 if (_service == null) {
159 _service = (DDLRecordSetService)PortalBeanLocatorUtil.locate(DDLRecordSetService.class.getName());
160
161 ReferenceRegistry.registerReference(DDLRecordSetServiceUtil.class,
162 "_service");
163 }
164
165 return _service;
166 }
167
168
171 public void setService(DDLRecordSetService service) {
172 }
173
174 private static DDLRecordSetService _service;
175 }