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 public static void addDDMStructureJournalFolder(long structureId,
044 long folderId) {
045 getService().addDDMStructureJournalFolder(structureId, folderId);
046 }
047
048 public static void addDDMStructureJournalFolder(long structureId,
049 com.liferay.portlet.journal.model.JournalFolder journalFolder) {
050 getService().addDDMStructureJournalFolder(structureId, journalFolder);
051 }
052
053 public static void addDDMStructureJournalFolders(long structureId,
054 java.util.List<com.liferay.portlet.journal.model.JournalFolder> JournalFolders) {
055 getService().addDDMStructureJournalFolders(structureId, JournalFolders);
056 }
057
058 public static void addDDMStructureJournalFolders(long structureId,
059 long[] folderIds) {
060 getService().addDDMStructureJournalFolders(structureId, folderIds);
061 }
062
063 public static com.liferay.portlet.journal.model.JournalFolder addFolder(
064 long userId, long groupId, long parentFolderId, java.lang.String name,
065 java.lang.String description,
066 com.liferay.portal.service.ServiceContext serviceContext)
067 throws com.liferay.portal.kernel.exception.PortalException {
068 return getService()
069 .addFolder(userId, groupId, parentFolderId, name,
070 description, serviceContext);
071 }
072
073
079 public static com.liferay.portlet.journal.model.JournalFolder addJournalFolder(
080 com.liferay.portlet.journal.model.JournalFolder journalFolder) {
081 return getService().addJournalFolder(journalFolder);
082 }
083
084 public static void clearDDMStructureJournalFolders(long structureId) {
085 getService().clearDDMStructureJournalFolders(structureId);
086 }
087
088
094 public static com.liferay.portlet.journal.model.JournalFolder createJournalFolder(
095 long folderId) {
096 return getService().createJournalFolder(folderId);
097 }
098
099 public static void deleteDDMStructureJournalFolder(long structureId,
100 long folderId) {
101 getService().deleteDDMStructureJournalFolder(structureId, folderId);
102 }
103
104 public static void deleteDDMStructureJournalFolder(long structureId,
105 com.liferay.portlet.journal.model.JournalFolder journalFolder) {
106 getService().deleteDDMStructureJournalFolder(structureId, journalFolder);
107 }
108
109 public static void deleteDDMStructureJournalFolders(long structureId,
110 java.util.List<com.liferay.portlet.journal.model.JournalFolder> JournalFolders) {
111 getService()
112 .deleteDDMStructureJournalFolders(structureId, JournalFolders);
113 }
114
115 public static void deleteDDMStructureJournalFolders(long structureId,
116 long[] folderIds) {
117 getService().deleteDDMStructureJournalFolders(structureId, folderIds);
118 }
119
120 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
121 com.liferay.portlet.journal.model.JournalFolder folder)
122 throws com.liferay.portal.kernel.exception.PortalException {
123 return getService().deleteFolder(folder);
124 }
125
126 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
127 com.liferay.portlet.journal.model.JournalFolder folder,
128 boolean includeTrashedEntries)
129 throws com.liferay.portal.kernel.exception.PortalException {
130 return getService().deleteFolder(folder, includeTrashedEntries);
131 }
132
133 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
134 long folderId)
135 throws com.liferay.portal.kernel.exception.PortalException {
136 return getService().deleteFolder(folderId);
137 }
138
139 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
140 long folderId, boolean includeTrashedEntries)
141 throws com.liferay.portal.kernel.exception.PortalException {
142 return getService().deleteFolder(folderId, includeTrashedEntries);
143 }
144
145 public static void deleteFolders(long groupId)
146 throws com.liferay.portal.kernel.exception.PortalException {
147 getService().deleteFolders(groupId);
148 }
149
150
157 public static com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
158 long folderId)
159 throws com.liferay.portal.kernel.exception.PortalException {
160 return getService().deleteJournalFolder(folderId);
161 }
162
163
169 public static com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
170 com.liferay.portlet.journal.model.JournalFolder journalFolder) {
171 return getService().deleteJournalFolder(journalFolder);
172 }
173
174
177 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
178 com.liferay.portal.model.PersistedModel persistedModel)
179 throws com.liferay.portal.kernel.exception.PortalException {
180 return getService().deletePersistedModel(persistedModel);
181 }
182
183 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
184 return getService().dynamicQuery();
185 }
186
187
193 public static <T> java.util.List<T> dynamicQuery(
194 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
195 return getService().dynamicQuery(dynamicQuery);
196 }
197
198
210 public static <T> java.util.List<T> dynamicQuery(
211 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
212 int end) {
213 return getService().dynamicQuery(dynamicQuery, start, end);
214 }
215
216
229 public static <T> java.util.List<T> dynamicQuery(
230 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
231 int end,
232 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
233 return getService()
234 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
235 }
236
237
243 public static long dynamicQueryCount(
244 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
245 return getService().dynamicQueryCount(dynamicQuery);
246 }
247
248
255 public static long dynamicQueryCount(
256 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
257 com.liferay.portal.kernel.dao.orm.Projection projection) {
258 return getService().dynamicQueryCount(dynamicQuery, projection);
259 }
260
261 public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
262 long folderId) {
263 return getService().fetchFolder(folderId);
264 }
265
266 public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
267 long groupId, java.lang.String name) {
268 return getService().fetchFolder(groupId, name);
269 }
270
271 public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
272 long groupId, long parentFolderId, java.lang.String name) {
273 return getService().fetchFolder(groupId, parentFolderId, name);
274 }
275
276 public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolder(
277 long folderId) {
278 return getService().fetchJournalFolder(folderId);
279 }
280
281
288 public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolderByUuidAndGroupId(
289 java.lang.String uuid, long groupId) {
290 return getService().fetchJournalFolderByUuidAndGroupId(uuid, groupId);
291 }
292
293 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
294 return getService().getActionableDynamicQuery();
295 }
296
297
302 public static java.lang.String getBeanIdentifier() {
303 return getService().getBeanIdentifier();
304 }
305
306 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getCompanyFolders(
307 long companyId, int start, int end) {
308 return getService().getCompanyFolders(companyId, start, end);
309 }
310
311 public static int getCompanyFoldersCount(long companyId) {
312 return getService().getCompanyFoldersCount(companyId);
313 }
314
315 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getDDMStructureJournalFolders(
316 long structureId) {
317 return getService().getDDMStructureJournalFolders(structureId);
318 }
319
320 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getDDMStructureJournalFolders(
321 long structureId, int start, int end) {
322 return getService()
323 .getDDMStructureJournalFolders(structureId, start, end);
324 }
325
326 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getDDMStructureJournalFolders(
327 long structureId, int start, int end,
328 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFolder> orderByComparator) {
329 return getService()
330 .getDDMStructureJournalFolders(structureId, start, end,
331 orderByComparator);
332 }
333
334 public static int getDDMStructureJournalFoldersCount(long structureId) {
335 return getService().getDDMStructureJournalFoldersCount(structureId);
336 }
337
338
344 public static long[] getDDMStructurePrimaryKeys(long folderId) {
345 return getService().getDDMStructurePrimaryKeys(folderId);
346 }
347
348 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
349 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
350 return getService().getExportActionableDynamicQuery(portletDataContext);
351 }
352
353 public static com.liferay.portlet.journal.model.JournalFolder getFolder(
354 long folderId)
355 throws com.liferay.portal.kernel.exception.PortalException {
356 return getService().getFolder(folderId);
357 }
358
359 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
360 long groupId) {
361 return getService().getFolders(groupId);
362 }
363
364 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
365 long groupId, long parentFolderId) {
366 return getService().getFolders(groupId, parentFolderId);
367 }
368
369 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
370 long groupId, long parentFolderId, int start, int end) {
371 return getService().getFolders(groupId, parentFolderId, start, end);
372 }
373
374 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
375 long groupId, long parentFolderId, int status) {
376 return getService().getFolders(groupId, parentFolderId, status);
377 }
378
379 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
380 long groupId, long parentFolderId, int status, int start, int end) {
381 return getService()
382 .getFolders(groupId, parentFolderId, status, start, end);
383 }
384
385 public static java.util.List<java.lang.Object> getFoldersAndArticles(
386 long groupId, long folderId) {
387 return getService().getFoldersAndArticles(groupId, folderId);
388 }
389
390 public static java.util.List<java.lang.Object> getFoldersAndArticles(
391 long groupId, long folderId, int start, int end,
392 com.liferay.portal.kernel.util.OrderByComparator<?> obc) {
393 return getService()
394 .getFoldersAndArticles(groupId, folderId, start, end, obc);
395 }
396
397 public static java.util.List<java.lang.Object> getFoldersAndArticles(
398 long groupId, long folderId, int status) {
399 return getService().getFoldersAndArticles(groupId, folderId, status);
400 }
401
402 public static int getFoldersAndArticlesCount(long groupId, long folderId) {
403 return getService().getFoldersAndArticlesCount(groupId, folderId);
404 }
405
406 public static int getFoldersAndArticlesCount(long groupId, long folderId,
407 int status) {
408 return getService().getFoldersAndArticlesCount(groupId, folderId, status);
409 }
410
411 public static int getFoldersAndArticlesCount(long groupId,
412 java.util.List<java.lang.Long> folderIds, int status) {
413 return getService()
414 .getFoldersAndArticlesCount(groupId, folderIds, status);
415 }
416
417 public static int getFoldersCount(long groupId, long parentFolderId) {
418 return getService().getFoldersCount(groupId, parentFolderId);
419 }
420
421 public static int getFoldersCount(long groupId, long parentFolderId,
422 int status) {
423 return getService().getFoldersCount(groupId, parentFolderId, status);
424 }
425
426 public static long getInheritedWorkflowFolderId(long folderId)
427 throws com.liferay.portlet.journal.NoSuchFolderException {
428 return getService().getInheritedWorkflowFolderId(folderId);
429 }
430
431
438 public static com.liferay.portlet.journal.model.JournalFolder getJournalFolder(
439 long folderId)
440 throws com.liferay.portal.kernel.exception.PortalException {
441 return getService().getJournalFolder(folderId);
442 }
443
444
452 public static com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndGroupId(
453 java.lang.String uuid, long groupId)
454 throws com.liferay.portal.kernel.exception.PortalException {
455 return getService().getJournalFolderByUuidAndGroupId(uuid, groupId);
456 }
457
458
469 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFolders(
470 int start, int end) {
471 return getService().getJournalFolders(start, end);
472 }
473
474
481 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFoldersByUuidAndCompanyId(
482 java.lang.String uuid, long companyId) {
483 return getService().getJournalFoldersByUuidAndCompanyId(uuid, companyId);
484 }
485
486
496 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFoldersByUuidAndCompanyId(
497 java.lang.String uuid, long companyId, int start, int end,
498 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFolder> orderByComparator) {
499 return getService()
500 .getJournalFoldersByUuidAndCompanyId(uuid, companyId, start,
501 end, orderByComparator);
502 }
503
504
509 public static int getJournalFoldersCount() {
510 return getService().getJournalFoldersCount();
511 }
512
513 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getNoAssetFolders() {
514 return getService().getNoAssetFolders();
515 }
516
517 public static long getOverridedDDMStructuresFolderId(long folderId)
518 throws com.liferay.portlet.journal.NoSuchFolderException {
519 return getService().getOverridedDDMStructuresFolderId(folderId);
520 }
521
522 public static com.liferay.portal.model.PersistedModel getPersistedModel(
523 java.io.Serializable primaryKeyObj)
524 throws com.liferay.portal.kernel.exception.PortalException {
525 return getService().getPersistedModel(primaryKeyObj);
526 }
527
528 public static void getSubfolderIds(
529 java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
530 getService().getSubfolderIds(folderIds, groupId, folderId);
531 }
532
533 public static boolean hasDDMStructureJournalFolder(long structureId,
534 long folderId) {
535 return getService().hasDDMStructureJournalFolder(structureId, folderId);
536 }
537
538 public static boolean hasDDMStructureJournalFolders(long structureId) {
539 return getService().hasDDMStructureJournalFolders(structureId);
540 }
541
542 public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
543 long folderId, long parentFolderId,
544 com.liferay.portal.service.ServiceContext serviceContext)
545 throws com.liferay.portal.kernel.exception.PortalException {
546 return getService().moveFolder(folderId, parentFolderId, serviceContext);
547 }
548
549 public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
550 long userId, long folderId, long parentFolderId,
551 com.liferay.portal.service.ServiceContext serviceContext)
552 throws com.liferay.portal.kernel.exception.PortalException {
553 return getService()
554 .moveFolderFromTrash(userId, folderId, parentFolderId,
555 serviceContext);
556 }
557
558 public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
559 long userId, long folderId)
560 throws com.liferay.portal.kernel.exception.PortalException {
561 return getService().moveFolderToTrash(userId, folderId);
562 }
563
564 public static void rebuildTree(long companyId)
565 throws com.liferay.portal.kernel.exception.PortalException {
566 getService().rebuildTree(companyId);
567 }
568
569 public static void rebuildTree(long companyId, long parentFolderId,
570 java.lang.String parentTreePath, boolean reindex)
571 throws com.liferay.portal.kernel.exception.PortalException {
572 getService()
573 .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
574 }
575
576 public static void restoreFolderFromTrash(long userId, long folderId)
577 throws com.liferay.portal.kernel.exception.PortalException {
578 getService().restoreFolderFromTrash(userId, folderId);
579 }
580
581
586 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
587 getService().setBeanIdentifier(beanIdentifier);
588 }
589
590 public static void setDDMStructureJournalFolders(long structureId,
591 long[] folderIds) {
592 getService().setDDMStructureJournalFolders(structureId, folderIds);
593 }
594
595 public static void subscribe(long userId, long groupId, long folderId)
596 throws com.liferay.portal.kernel.exception.PortalException {
597 getService().subscribe(userId, groupId, folderId);
598 }
599
600 public static void unsubscribe(long userId, long groupId, long folderId)
601 throws com.liferay.portal.kernel.exception.PortalException {
602 getService().unsubscribe(userId, groupId, folderId);
603 }
604
605 public static void updateAsset(long userId,
606 com.liferay.portlet.journal.model.JournalFolder folder,
607 long[] assetCategoryIds, java.lang.String[] assetTagNames,
608 long[] assetLinkEntryIds)
609 throws com.liferay.portal.kernel.exception.PortalException {
610 getService()
611 .updateAsset(userId, folder, assetCategoryIds, assetTagNames,
612 assetLinkEntryIds);
613 }
614
615 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
616 long userId, long folderId, long parentFolderId, java.lang.String name,
617 java.lang.String description, long[] ddmStructureIds,
618 int restrictionType, boolean mergeWithParentFolder,
619 com.liferay.portal.service.ServiceContext serviceContext)
620 throws com.liferay.portal.kernel.exception.PortalException {
621 return getService()
622 .updateFolder(userId, folderId, parentFolderId, name,
623 description, ddmStructureIds, restrictionType,
624 mergeWithParentFolder, serviceContext);
625 }
626
627 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
628 long userId, long folderId, long parentFolderId, java.lang.String name,
629 java.lang.String description, boolean mergeWithParentFolder,
630 com.liferay.portal.service.ServiceContext serviceContext)
631 throws com.liferay.portal.kernel.exception.PortalException {
632 return getService()
633 .updateFolder(userId, folderId, parentFolderId, name,
634 description, mergeWithParentFolder, serviceContext);
635 }
636
637 public static void updateFolderDDMStructures(
638 com.liferay.portlet.journal.model.JournalFolder folder,
639 long[] ddmStructureIdsArray) {
640 getService().updateFolderDDMStructures(folder, ddmStructureIdsArray);
641 }
642
643
649 public static com.liferay.portlet.journal.model.JournalFolder updateJournalFolder(
650 com.liferay.portlet.journal.model.JournalFolder journalFolder) {
651 return getService().updateJournalFolder(journalFolder);
652 }
653
654 public static com.liferay.portlet.journal.model.JournalFolder updateStatus(
655 long userId, com.liferay.portlet.journal.model.JournalFolder folder,
656 int status) throws com.liferay.portal.kernel.exception.PortalException {
657 return getService().updateStatus(userId, folder, status);
658 }
659
660 public static void validateFolderDDMStructures(long folderId,
661 long parentFolderId)
662 throws com.liferay.portal.kernel.exception.PortalException {
663 getService().validateFolderDDMStructures(folderId, parentFolderId);
664 }
665
666 public static JournalFolderLocalService getService() {
667 if (_service == null) {
668 _service = (JournalFolderLocalService)PortalBeanLocatorUtil.locate(JournalFolderLocalService.class.getName());
669
670 ReferenceRegistry.registerReference(JournalFolderLocalServiceUtil.class,
671 "_service");
672 }
673
674 return _service;
675 }
676
677
680 @Deprecated
681 public void setService(JournalFolderLocalService service) {
682 }
683
684 private static JournalFolderLocalService _service;
685 }