001
014
015 package com.liferay.portlet.journal.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 JournalFolderLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.journal.model.JournalFolder addJournalFolder(
052 com.liferay.portlet.journal.model.JournalFolder journalFolder)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addJournalFolder(journalFolder);
055 }
056
057
063 public static com.liferay.portlet.journal.model.JournalFolder createJournalFolder(
064 long folderId) {
065 return getService().createJournalFolder(folderId);
066 }
067
068
076 public static com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
077 long folderId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteJournalFolder(folderId);
081 }
082
083
090 public static com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
091 com.liferay.portlet.journal.model.JournalFolder journalFolder)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteJournalFolder(journalFolder);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolder(
187 long folderId)
188 throws com.liferay.portal.kernel.exception.SystemException {
189 return getService().fetchJournalFolder(folderId);
190 }
191
192
200 public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolderByUuidAndCompanyId(
201 java.lang.String uuid, long companyId)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService().fetchJournalFolderByUuidAndCompanyId(uuid, companyId);
204 }
205
206
214 public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolderByUuidAndGroupId(
215 java.lang.String uuid, long groupId)
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().fetchJournalFolderByUuidAndGroupId(uuid, groupId);
218 }
219
220
228 public static com.liferay.portlet.journal.model.JournalFolder getJournalFolder(
229 long folderId)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException {
232 return getService().getJournalFolder(folderId);
233 }
234
235 public static com.liferay.portal.model.PersistedModel getPersistedModel(
236 java.io.Serializable primaryKeyObj)
237 throws com.liferay.portal.kernel.exception.PortalException,
238 com.liferay.portal.kernel.exception.SystemException {
239 return getService().getPersistedModel(primaryKeyObj);
240 }
241
242
251 public static com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndCompanyId(
252 java.lang.String uuid, long companyId)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException {
255 return getService().getJournalFolderByUuidAndCompanyId(uuid, companyId);
256 }
257
258
267 public static com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndGroupId(
268 java.lang.String uuid, long groupId)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException {
271 return getService().getJournalFolderByUuidAndGroupId(uuid, groupId);
272 }
273
274
286 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFolders(
287 int start, int end)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 return getService().getJournalFolders(start, end);
290 }
291
292
298 public static int getJournalFoldersCount()
299 throws com.liferay.portal.kernel.exception.SystemException {
300 return getService().getJournalFoldersCount();
301 }
302
303
310 public static com.liferay.portlet.journal.model.JournalFolder updateJournalFolder(
311 com.liferay.portlet.journal.model.JournalFolder journalFolder)
312 throws com.liferay.portal.kernel.exception.SystemException {
313 return getService().updateJournalFolder(journalFolder);
314 }
315
316
321 public static java.lang.String getBeanIdentifier() {
322 return getService().getBeanIdentifier();
323 }
324
325
330 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
331 getService().setBeanIdentifier(beanIdentifier);
332 }
333
334 public static com.liferay.portlet.journal.model.JournalFolder addFolder(
335 long userId, long groupId, long parentFolderId, java.lang.String name,
336 java.lang.String description,
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 .addFolder(userId, groupId, parentFolderId, name,
342 description, serviceContext);
343 }
344
345 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
346 com.liferay.portlet.journal.model.JournalFolder folder)
347 throws com.liferay.portal.kernel.exception.PortalException,
348 com.liferay.portal.kernel.exception.SystemException {
349 return getService().deleteFolder(folder);
350 }
351
352 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
353 com.liferay.portlet.journal.model.JournalFolder folder,
354 boolean includeTrashedEntries)
355 throws com.liferay.portal.kernel.exception.PortalException,
356 com.liferay.portal.kernel.exception.SystemException {
357 return getService().deleteFolder(folder, includeTrashedEntries);
358 }
359
360 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
361 long folderId)
362 throws com.liferay.portal.kernel.exception.PortalException,
363 com.liferay.portal.kernel.exception.SystemException {
364 return getService().deleteFolder(folderId);
365 }
366
367 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
368 long folderId, boolean includeTrashedEntries)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException {
371 return getService().deleteFolder(folderId, includeTrashedEntries);
372 }
373
374 public static void deleteFolders(long groupId)
375 throws com.liferay.portal.kernel.exception.PortalException,
376 com.liferay.portal.kernel.exception.SystemException {
377 getService().deleteFolders(groupId);
378 }
379
380 public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
381 long folderId)
382 throws com.liferay.portal.kernel.exception.SystemException {
383 return getService().fetchFolder(folderId);
384 }
385
386 public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
387 long groupId, long parentFolderId, java.lang.String name)
388 throws com.liferay.portal.kernel.exception.SystemException {
389 return getService().fetchFolder(groupId, parentFolderId, name);
390 }
391
392 public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
393 long groupId, java.lang.String name)
394 throws com.liferay.portal.kernel.exception.SystemException {
395 return getService().fetchFolder(groupId, name);
396 }
397
398 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getCompanyFolders(
399 long companyId, int start, int end)
400 throws com.liferay.portal.kernel.exception.SystemException {
401 return getService().getCompanyFolders(companyId, start, end);
402 }
403
404 public static int getCompanyFoldersCount(long companyId)
405 throws com.liferay.portal.kernel.exception.SystemException {
406 return getService().getCompanyFoldersCount(companyId);
407 }
408
409 public static com.liferay.portlet.journal.model.JournalFolder getFolder(
410 long folderId)
411 throws com.liferay.portal.kernel.exception.PortalException,
412 com.liferay.portal.kernel.exception.SystemException {
413 return getService().getFolder(folderId);
414 }
415
416 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
417 long groupId)
418 throws com.liferay.portal.kernel.exception.SystemException {
419 return getService().getFolders(groupId);
420 }
421
422 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
423 long groupId, long parentFolderId)
424 throws com.liferay.portal.kernel.exception.SystemException {
425 return getService().getFolders(groupId, parentFolderId);
426 }
427
428 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
429 long groupId, long parentFolderId, int status)
430 throws com.liferay.portal.kernel.exception.SystemException {
431 return getService().getFolders(groupId, parentFolderId, status);
432 }
433
434 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
435 long groupId, long parentFolderId, int start, int end)
436 throws com.liferay.portal.kernel.exception.SystemException {
437 return getService().getFolders(groupId, parentFolderId, start, end);
438 }
439
440 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
441 long groupId, long parentFolderId, int status, int start, int end)
442 throws com.liferay.portal.kernel.exception.SystemException {
443 return getService()
444 .getFolders(groupId, parentFolderId, status, start, end);
445 }
446
447 public static java.util.List<java.lang.Object> getFoldersAndArticles(
448 long groupId, long folderId)
449 throws com.liferay.portal.kernel.exception.SystemException {
450 return getService().getFoldersAndArticles(groupId, folderId);
451 }
452
453 public static java.util.List<java.lang.Object> getFoldersAndArticles(
454 long groupId, long folderId, int status)
455 throws com.liferay.portal.kernel.exception.SystemException {
456 return getService().getFoldersAndArticles(groupId, folderId, status);
457 }
458
459 public static java.util.List<java.lang.Object> getFoldersAndArticles(
460 long groupId, long folderId, int start, int end,
461 com.liferay.portal.kernel.util.OrderByComparator obc)
462 throws com.liferay.portal.kernel.exception.SystemException {
463 return getService()
464 .getFoldersAndArticles(groupId, folderId, start, end, obc);
465 }
466
467 public static int getFoldersAndArticlesCount(long groupId,
468 java.util.List<java.lang.Long> folderIds, int status)
469 throws com.liferay.portal.kernel.exception.SystemException {
470 return getService()
471 .getFoldersAndArticlesCount(groupId, folderIds, status);
472 }
473
474 public static int getFoldersAndArticlesCount(long groupId, long folderId)
475 throws com.liferay.portal.kernel.exception.SystemException {
476 return getService().getFoldersAndArticlesCount(groupId, folderId);
477 }
478
479 public static int getFoldersAndArticlesCount(long groupId, long folderId,
480 int status) throws com.liferay.portal.kernel.exception.SystemException {
481 return getService().getFoldersAndArticlesCount(groupId, folderId, status);
482 }
483
484 public static int getFoldersCount(long groupId, long parentFolderId)
485 throws com.liferay.portal.kernel.exception.SystemException {
486 return getService().getFoldersCount(groupId, parentFolderId);
487 }
488
489 public static int getFoldersCount(long groupId, long parentFolderId,
490 int status) throws com.liferay.portal.kernel.exception.SystemException {
491 return getService().getFoldersCount(groupId, parentFolderId, status);
492 }
493
494 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getNoAssetFolders()
495 throws com.liferay.portal.kernel.exception.SystemException {
496 return getService().getNoAssetFolders();
497 }
498
499 public static void getSubfolderIds(
500 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
501 throws com.liferay.portal.kernel.exception.SystemException {
502 getService().getSubfolderIds(folderIds, groupId, folderId);
503 }
504
505 public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
506 long folderId, long parentFolderId,
507 com.liferay.portal.service.ServiceContext serviceContext)
508 throws com.liferay.portal.kernel.exception.PortalException,
509 com.liferay.portal.kernel.exception.SystemException {
510 return getService().moveFolder(folderId, parentFolderId, serviceContext);
511 }
512
513 public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
514 long userId, long folderId, long parentFolderId,
515 com.liferay.portal.service.ServiceContext serviceContext)
516 throws com.liferay.portal.kernel.exception.PortalException,
517 com.liferay.portal.kernel.exception.SystemException {
518 return getService()
519 .moveFolderFromTrash(userId, folderId, parentFolderId,
520 serviceContext);
521 }
522
523 public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
524 long userId, long folderId)
525 throws com.liferay.portal.kernel.exception.PortalException,
526 com.liferay.portal.kernel.exception.SystemException {
527 return getService().moveFolderToTrash(userId, folderId);
528 }
529
530 public static void rebuildTree(long companyId)
531 throws com.liferay.portal.kernel.exception.PortalException,
532 com.liferay.portal.kernel.exception.SystemException {
533 getService().rebuildTree(companyId);
534 }
535
536 public static void rebuildTree(long companyId, long parentFolderId,
537 java.lang.String parentTreePath, boolean reindex)
538 throws com.liferay.portal.kernel.exception.PortalException,
539 com.liferay.portal.kernel.exception.SystemException {
540 getService()
541 .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
542 }
543
544 public static void restoreFolderFromTrash(long userId, long folderId)
545 throws com.liferay.portal.kernel.exception.PortalException,
546 com.liferay.portal.kernel.exception.SystemException {
547 getService().restoreFolderFromTrash(userId, folderId);
548 }
549
550 public static void updateAsset(long userId,
551 com.liferay.portlet.journal.model.JournalFolder folder,
552 long[] assetCategoryIds, java.lang.String[] assetTagNames,
553 long[] assetLinkEntryIds)
554 throws com.liferay.portal.kernel.exception.PortalException,
555 com.liferay.portal.kernel.exception.SystemException {
556 getService()
557 .updateAsset(userId, folder, assetCategoryIds, assetTagNames,
558 assetLinkEntryIds);
559 }
560
561 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
562 long userId, long folderId, long parentFolderId, java.lang.String name,
563 java.lang.String description, boolean mergeWithParentFolder,
564 com.liferay.portal.service.ServiceContext serviceContext)
565 throws com.liferay.portal.kernel.exception.PortalException,
566 com.liferay.portal.kernel.exception.SystemException {
567 return getService()
568 .updateFolder(userId, folderId, parentFolderId, name,
569 description, mergeWithParentFolder, serviceContext);
570 }
571
572 public static com.liferay.portlet.journal.model.JournalFolder updateStatus(
573 long userId, com.liferay.portlet.journal.model.JournalFolder folder,
574 int status)
575 throws com.liferay.portal.kernel.exception.PortalException,
576 com.liferay.portal.kernel.exception.SystemException {
577 return getService().updateStatus(userId, folder, status);
578 }
579
580 public static JournalFolderLocalService getService() {
581 if (_service == null) {
582 _service = (JournalFolderLocalService)PortalBeanLocatorUtil.locate(JournalFolderLocalService.class.getName());
583
584 ReferenceRegistry.registerReference(JournalFolderLocalServiceUtil.class,
585 "_service");
586 }
587
588 return _service;
589 }
590
591
594 public void setService(JournalFolderLocalService service) {
595 }
596
597 private static JournalFolderLocalService _service;
598 }