001
014
015 package com.liferay.portlet.dynamicdatalists.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class DDLRecordSetLocalServiceUtil {
038
043
044
050 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addDDLRecordSet(
051 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet) {
052 return getService().addDDLRecordSet(ddlRecordSet);
053 }
054
055 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addRecordSet(
056 long userId, long groupId, long ddmStructureId,
057 java.lang.String recordSetKey,
058 java.util.Map<java.util.Locale, java.lang.String> nameMap,
059 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
060 int minDisplayRows, int scope,
061 com.liferay.portal.service.ServiceContext serviceContext)
062 throws com.liferay.portal.kernel.exception.PortalException {
063 return getService()
064 .addRecordSet(userId, groupId, ddmStructureId, recordSetKey,
065 nameMap, descriptionMap, minDisplayRows, scope, serviceContext);
066 }
067
068 public static void addRecordSetResources(
069 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet recordSet,
070 boolean addGroupPermissions, boolean addGuestPermissions)
071 throws com.liferay.portal.kernel.exception.PortalException {
072 getService()
073 .addRecordSetResources(recordSet, addGroupPermissions,
074 addGuestPermissions);
075 }
076
077 public static void addRecordSetResources(
078 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet recordSet,
079 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
080 throws com.liferay.portal.kernel.exception.PortalException {
081 getService()
082 .addRecordSetResources(recordSet, groupPermissions, guestPermissions);
083 }
084
085
091 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet createDDLRecordSet(
092 long recordSetId) {
093 return getService().createDDLRecordSet(recordSetId);
094 }
095
096
102 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet deleteDDLRecordSet(
103 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet) {
104 return getService().deleteDDLRecordSet(ddlRecordSet);
105 }
106
107
114 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet deleteDDLRecordSet(
115 long recordSetId)
116 throws com.liferay.portal.kernel.exception.PortalException {
117 return getService().deleteDDLRecordSet(recordSetId);
118 }
119
120
123 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
124 com.liferay.portal.model.PersistedModel persistedModel)
125 throws com.liferay.portal.kernel.exception.PortalException {
126 return getService().deletePersistedModel(persistedModel);
127 }
128
129 public static void deleteRecordSet(long groupId,
130 java.lang.String recordSetKey)
131 throws com.liferay.portal.kernel.exception.PortalException {
132 getService().deleteRecordSet(groupId, recordSetKey);
133 }
134
135 public static void deleteRecordSet(
136 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet recordSet)
137 throws com.liferay.portal.kernel.exception.PortalException {
138 getService().deleteRecordSet(recordSet);
139 }
140
141 public static void deleteRecordSet(long recordSetId)
142 throws com.liferay.portal.kernel.exception.PortalException {
143 getService().deleteRecordSet(recordSetId);
144 }
145
146 public static void deleteRecordSets(long groupId)
147 throws com.liferay.portal.kernel.exception.PortalException {
148 getService().deleteRecordSets(groupId);
149 }
150
151 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
152 return getService().dynamicQuery();
153 }
154
155
161 public static <T> java.util.List<T> dynamicQuery(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
163 return getService().dynamicQuery(dynamicQuery);
164 }
165
166
178 public static <T> java.util.List<T> dynamicQuery(
179 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
180 int end) {
181 return getService().dynamicQuery(dynamicQuery, start, end);
182 }
183
184
197 public static <T> java.util.List<T> dynamicQuery(
198 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
199 int end,
200 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
201 return getService()
202 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
203 }
204
205
211 public static long dynamicQueryCount(
212 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
213 return getService().dynamicQueryCount(dynamicQuery);
214 }
215
216
223 public static long dynamicQueryCount(
224 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
225 com.liferay.portal.kernel.dao.orm.Projection projection) {
226 return getService().dynamicQueryCount(dynamicQuery, projection);
227 }
228
229 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchDDLRecordSet(
230 long recordSetId) {
231 return getService().fetchDDLRecordSet(recordSetId);
232 }
233
234
241 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchDDLRecordSetByUuidAndGroupId(
242 java.lang.String uuid, long groupId) {
243 return getService().fetchDDLRecordSetByUuidAndGroupId(uuid, groupId);
244 }
245
246 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchRecordSet(
247 long groupId, java.lang.String recordSetKey) {
248 return getService().fetchRecordSet(groupId, recordSetKey);
249 }
250
251 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchRecordSet(
252 long recordSetId) {
253 return getService().fetchRecordSet(recordSetId);
254 }
255
256 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
257 return getService().getActionableDynamicQuery();
258 }
259
260
265 public static java.lang.String getBeanIdentifier() {
266 return getService().getBeanIdentifier();
267 }
268
269
276 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getDDLRecordSet(
277 long recordSetId)
278 throws com.liferay.portal.kernel.exception.PortalException {
279 return getService().getDDLRecordSet(recordSetId);
280 }
281
282
290 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getDDLRecordSetByUuidAndGroupId(
291 java.lang.String uuid, long groupId)
292 throws com.liferay.portal.kernel.exception.PortalException {
293 return getService().getDDLRecordSetByUuidAndGroupId(uuid, groupId);
294 }
295
296
307 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> getDDLRecordSets(
308 int start, int end) {
309 return getService().getDDLRecordSets(start, end);
310 }
311
312
319 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> getDDLRecordSetsByUuidAndCompanyId(
320 java.lang.String uuid, long companyId) {
321 return getService().getDDLRecordSetsByUuidAndCompanyId(uuid, companyId);
322 }
323
324
334 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> getDDLRecordSetsByUuidAndCompanyId(
335 java.lang.String uuid, long companyId, int start, int end,
336 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
337 return getService()
338 .getDDLRecordSetsByUuidAndCompanyId(uuid, companyId, start,
339 end, orderByComparator);
340 }
341
342
347 public static int getDDLRecordSetsCount() {
348 return getService().getDDLRecordSetsCount();
349 }
350
351 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
352 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
353 return getService().getExportActionableDynamicQuery(portletDataContext);
354 }
355
356 public static com.liferay.portal.model.PersistedModel getPersistedModel(
357 java.io.Serializable primaryKeyObj)
358 throws com.liferay.portal.kernel.exception.PortalException {
359 return getService().getPersistedModel(primaryKeyObj);
360 }
361
362 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
363 long groupId, java.lang.String recordSetKey)
364 throws com.liferay.portal.kernel.exception.PortalException {
365 return getService().getRecordSet(groupId, recordSetKey);
366 }
367
368 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
369 long recordSetId)
370 throws com.liferay.portal.kernel.exception.PortalException {
371 return getService().getRecordSet(recordSetId);
372 }
373
374 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> getRecordSets(
375 long groupId) {
376 return getService().getRecordSets(groupId);
377 }
378
379 public static int getRecordSetsCount(long groupId) {
380 return getService().getRecordSetsCount(groupId);
381 }
382
383 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
384 long companyId, long groupId, java.lang.String keywords, int scope,
385 int start, int end,
386 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
387 return getService()
388 .search(companyId, groupId, keywords, scope, start, end,
389 orderByComparator);
390 }
391
392 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
393 long companyId, long groupId, java.lang.String name,
394 java.lang.String description, int scope, boolean andOperator,
395 int start, int end,
396 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> orderByComparator) {
397 return getService()
398 .search(companyId, groupId, name, description, scope,
399 andOperator, start, end, orderByComparator);
400 }
401
402 public static int searchCount(long companyId, long groupId,
403 java.lang.String keywords, int scope) {
404 return getService().searchCount(companyId, groupId, keywords, scope);
405 }
406
407 public static int searchCount(long companyId, long groupId,
408 java.lang.String name, java.lang.String description, int scope,
409 boolean andOperator) {
410 return getService()
411 .searchCount(companyId, groupId, name, description, scope,
412 andOperator);
413 }
414
415
420 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
421 getService().setBeanIdentifier(beanIdentifier);
422 }
423
424
430 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateDDLRecordSet(
431 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet) {
432 return getService().updateDDLRecordSet(ddlRecordSet);
433 }
434
435 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
436 long recordSetId, int minDisplayRows,
437 com.liferay.portal.service.ServiceContext serviceContext)
438 throws com.liferay.portal.kernel.exception.PortalException {
439 return getService()
440 .updateMinDisplayRows(recordSetId, minDisplayRows,
441 serviceContext);
442 }
443
444 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
445 long groupId, long ddmStructureId, java.lang.String recordSetKey,
446 java.util.Map<java.util.Locale, java.lang.String> nameMap,
447 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
448 int minDisplayRows,
449 com.liferay.portal.service.ServiceContext serviceContext)
450 throws com.liferay.portal.kernel.exception.PortalException {
451 return getService()
452 .updateRecordSet(groupId, ddmStructureId, recordSetKey,
453 nameMap, descriptionMap, minDisplayRows, serviceContext);
454 }
455
456 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
457 long recordSetId, long ddmStructureId,
458 java.util.Map<java.util.Locale, java.lang.String> nameMap,
459 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
460 int minDisplayRows,
461 com.liferay.portal.service.ServiceContext serviceContext)
462 throws com.liferay.portal.kernel.exception.PortalException {
463 return getService()
464 .updateRecordSet(recordSetId, ddmStructureId, nameMap,
465 descriptionMap, minDisplayRows, serviceContext);
466 }
467
468 public static DDLRecordSetLocalService getService() {
469 if (_service == null) {
470 _service = (DDLRecordSetLocalService)PortalBeanLocatorUtil.locate(DDLRecordSetLocalService.class.getName());
471
472 ReferenceRegistry.registerReference(DDLRecordSetLocalServiceUtil.class,
473 "_service");
474 }
475
476 return _service;
477 }
478
479
482 @Deprecated
483 public void setService(DDLRecordSetLocalService service) {
484 }
485
486 private static DDLRecordSetLocalService _service;
487 }