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 DDLRecordSetLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addDDLRecordSet(
049 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addDDLRecordSet(ddlRecordSet);
052 }
053
054
060 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet createDDLRecordSet(
061 long recordSetId) {
062 return getService().createDDLRecordSet(recordSetId);
063 }
064
065
073 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet deleteDDLRecordSet(
074 long recordSetId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().deleteDDLRecordSet(recordSetId);
078 }
079
080
087 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet deleteDDLRecordSet(
088 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService().deleteDDLRecordSet(ddlRecordSet);
091 }
092
093 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094 return getService().dynamicQuery();
095 }
096
097
104 @SuppressWarnings("rawtypes")
105 public static java.util.List dynamicQuery(
106 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107 throws com.liferay.portal.kernel.exception.SystemException {
108 return getService().dynamicQuery(dynamicQuery);
109 }
110
111
124 @SuppressWarnings("rawtypes")
125 public static java.util.List dynamicQuery(
126 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127 int end) throws com.liferay.portal.kernel.exception.SystemException {
128 return getService().dynamicQuery(dynamicQuery, start, end);
129 }
130
131
145 @SuppressWarnings("rawtypes")
146 public static java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException {
151 return getService()
152 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153 }
154
155
162 public static long dynamicQueryCount(
163 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getService().dynamicQueryCount(dynamicQuery);
166 }
167
168
176 public static long dynamicQueryCount(
177 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178 com.liferay.portal.kernel.dao.orm.Projection projection)
179 throws com.liferay.portal.kernel.exception.SystemException {
180 return getService().dynamicQueryCount(dynamicQuery, projection);
181 }
182
183 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchDDLRecordSet(
184 long recordSetId)
185 throws com.liferay.portal.kernel.exception.SystemException {
186 return getService().fetchDDLRecordSet(recordSetId);
187 }
188
189
197 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchDDLRecordSetByUuidAndCompanyId(
198 java.lang.String uuid, long companyId)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getService().fetchDDLRecordSetByUuidAndCompanyId(uuid, companyId);
201 }
202
203
211 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchDDLRecordSetByUuidAndGroupId(
212 java.lang.String uuid, long groupId)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getService().fetchDDLRecordSetByUuidAndGroupId(uuid, groupId);
215 }
216
217
225 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getDDLRecordSet(
226 long recordSetId)
227 throws com.liferay.portal.kernel.exception.PortalException,
228 com.liferay.portal.kernel.exception.SystemException {
229 return getService().getDDLRecordSet(recordSetId);
230 }
231
232 public static com.liferay.portal.model.PersistedModel getPersistedModel(
233 java.io.Serializable primaryKeyObj)
234 throws com.liferay.portal.kernel.exception.PortalException,
235 com.liferay.portal.kernel.exception.SystemException {
236 return getService().getPersistedModel(primaryKeyObj);
237 }
238
239
248 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getDDLRecordSetByUuidAndCompanyId(
249 java.lang.String uuid, long companyId)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException {
252 return getService().getDDLRecordSetByUuidAndCompanyId(uuid, companyId);
253 }
254
255
264 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getDDLRecordSetByUuidAndGroupId(
265 java.lang.String uuid, long groupId)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException {
268 return getService().getDDLRecordSetByUuidAndGroupId(uuid, groupId);
269 }
270
271
283 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> getDDLRecordSets(
284 int start, int end)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getService().getDDLRecordSets(start, end);
287 }
288
289
295 public static int getDDLRecordSetsCount()
296 throws com.liferay.portal.kernel.exception.SystemException {
297 return getService().getDDLRecordSetsCount();
298 }
299
300
307 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateDDLRecordSet(
308 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet ddlRecordSet)
309 throws com.liferay.portal.kernel.exception.SystemException {
310 return getService().updateDDLRecordSet(ddlRecordSet);
311 }
312
313
318 public static java.lang.String getBeanIdentifier() {
319 return getService().getBeanIdentifier();
320 }
321
322
327 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
328 getService().setBeanIdentifier(beanIdentifier);
329 }
330
331 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet addRecordSet(
332 long userId, long groupId, long ddmStructureId,
333 java.lang.String recordSetKey,
334 java.util.Map<java.util.Locale, java.lang.String> nameMap,
335 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
336 int minDisplayRows, int scope,
337 com.liferay.portal.service.ServiceContext serviceContext)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException {
340 return getService()
341 .addRecordSet(userId, groupId, ddmStructureId, recordSetKey,
342 nameMap, descriptionMap, minDisplayRows, scope, serviceContext);
343 }
344
345 public static void addRecordSetResources(
346 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet recordSet,
347 boolean addGroupPermissions, boolean addGuestPermissions)
348 throws com.liferay.portal.kernel.exception.PortalException,
349 com.liferay.portal.kernel.exception.SystemException {
350 getService()
351 .addRecordSetResources(recordSet, addGroupPermissions,
352 addGuestPermissions);
353 }
354
355 public static void addRecordSetResources(
356 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet recordSet,
357 java.lang.String[] groupPermissions, java.lang.String[] guestPermissions)
358 throws com.liferay.portal.kernel.exception.PortalException,
359 com.liferay.portal.kernel.exception.SystemException {
360 getService()
361 .addRecordSetResources(recordSet, groupPermissions, guestPermissions);
362 }
363
364 public static void deleteRecordSet(
365 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet recordSet)
366 throws com.liferay.portal.kernel.exception.PortalException,
367 com.liferay.portal.kernel.exception.SystemException {
368 getService().deleteRecordSet(recordSet);
369 }
370
371 public static void deleteRecordSet(long recordSetId)
372 throws com.liferay.portal.kernel.exception.PortalException,
373 com.liferay.portal.kernel.exception.SystemException {
374 getService().deleteRecordSet(recordSetId);
375 }
376
377 public static void deleteRecordSet(long groupId,
378 java.lang.String recordSetKey)
379 throws com.liferay.portal.kernel.exception.PortalException,
380 com.liferay.portal.kernel.exception.SystemException {
381 getService().deleteRecordSet(groupId, recordSetKey);
382 }
383
384 public static void deleteRecordSets(long groupId)
385 throws com.liferay.portal.kernel.exception.PortalException,
386 com.liferay.portal.kernel.exception.SystemException {
387 getService().deleteRecordSets(groupId);
388 }
389
390 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchRecordSet(
391 long recordSetId)
392 throws com.liferay.portal.kernel.exception.SystemException {
393 return getService().fetchRecordSet(recordSetId);
394 }
395
396 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet fetchRecordSet(
397 long groupId, java.lang.String recordSetKey)
398 throws com.liferay.portal.kernel.exception.SystemException {
399 return getService().fetchRecordSet(groupId, recordSetKey);
400 }
401
402 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
403 long recordSetId)
404 throws com.liferay.portal.kernel.exception.PortalException,
405 com.liferay.portal.kernel.exception.SystemException {
406 return getService().getRecordSet(recordSetId);
407 }
408
409 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet getRecordSet(
410 long groupId, java.lang.String recordSetKey)
411 throws com.liferay.portal.kernel.exception.PortalException,
412 com.liferay.portal.kernel.exception.SystemException {
413 return getService().getRecordSet(groupId, recordSetKey);
414 }
415
416 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> getRecordSets(
417 long groupId)
418 throws com.liferay.portal.kernel.exception.SystemException {
419 return getService().getRecordSets(groupId);
420 }
421
422 public static int getRecordSetsCount(long groupId)
423 throws com.liferay.portal.kernel.exception.SystemException {
424 return getService().getRecordSetsCount(groupId);
425 }
426
427 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
428 long companyId, long groupId, java.lang.String keywords, int scope,
429 int start, int end,
430 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
431 throws com.liferay.portal.kernel.exception.SystemException {
432 return getService()
433 .search(companyId, groupId, keywords, scope, start, end,
434 orderByComparator);
435 }
436
437 public static java.util.List<com.liferay.portlet.dynamicdatalists.model.DDLRecordSet> search(
438 long companyId, long groupId, java.lang.String name,
439 java.lang.String description, int scope, boolean andOperator,
440 int start, int end,
441 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 return getService()
444 .search(companyId, groupId, name, description, scope,
445 andOperator, start, end, orderByComparator);
446 }
447
448 public static int searchCount(long companyId, long groupId,
449 java.lang.String keywords, int scope)
450 throws com.liferay.portal.kernel.exception.SystemException {
451 return getService().searchCount(companyId, groupId, keywords, scope);
452 }
453
454 public static int searchCount(long companyId, long groupId,
455 java.lang.String name, java.lang.String description, int scope,
456 boolean andOperator)
457 throws com.liferay.portal.kernel.exception.SystemException {
458 return getService()
459 .searchCount(companyId, groupId, name, description, scope,
460 andOperator);
461 }
462
463 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateMinDisplayRows(
464 long recordSetId, int minDisplayRows,
465 com.liferay.portal.service.ServiceContext serviceContext)
466 throws com.liferay.portal.kernel.exception.PortalException,
467 com.liferay.portal.kernel.exception.SystemException {
468 return getService()
469 .updateMinDisplayRows(recordSetId, minDisplayRows,
470 serviceContext);
471 }
472
473 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
474 long recordSetId, long ddmStructureId,
475 java.util.Map<java.util.Locale, java.lang.String> nameMap,
476 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
477 int minDisplayRows,
478 com.liferay.portal.service.ServiceContext serviceContext)
479 throws com.liferay.portal.kernel.exception.PortalException,
480 com.liferay.portal.kernel.exception.SystemException {
481 return getService()
482 .updateRecordSet(recordSetId, ddmStructureId, nameMap,
483 descriptionMap, minDisplayRows, serviceContext);
484 }
485
486 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSet updateRecordSet(
487 long groupId, long ddmStructureId, java.lang.String recordSetKey,
488 java.util.Map<java.util.Locale, java.lang.String> nameMap,
489 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
490 int minDisplayRows,
491 com.liferay.portal.service.ServiceContext serviceContext)
492 throws com.liferay.portal.kernel.exception.PortalException,
493 com.liferay.portal.kernel.exception.SystemException {
494 return getService()
495 .updateRecordSet(groupId, ddmStructureId, recordSetKey,
496 nameMap, descriptionMap, minDisplayRows, serviceContext);
497 }
498
499 public static DDLRecordSetLocalService getService() {
500 if (_service == null) {
501 _service = (DDLRecordSetLocalService)PortalBeanLocatorUtil.locate(DDLRecordSetLocalService.class.getName());
502
503 ReferenceRegistry.registerReference(DDLRecordSetLocalServiceUtil.class,
504 "_service");
505 }
506
507 return _service;
508 }
509
510
513 public void setService(DDLRecordSetLocalService service) {
514 }
515
516 private static DDLRecordSetLocalService _service;
517 }