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 com.liferay.portlet.journal.model.JournalFolder addFolder(
044 long userId, long groupId, long parentFolderId, java.lang.String name,
045 java.lang.String description,
046 com.liferay.portal.service.ServiceContext serviceContext)
047 throws com.liferay.portal.kernel.exception.PortalException {
048 return getService()
049 .addFolder(userId, groupId, parentFolderId, name,
050 description, serviceContext);
051 }
052
053
059 public static com.liferay.portlet.journal.model.JournalFolder addJournalFolder(
060 com.liferay.portlet.journal.model.JournalFolder journalFolder) {
061 return getService().addJournalFolder(journalFolder);
062 }
063
064
070 public static com.liferay.portlet.journal.model.JournalFolder createJournalFolder(
071 long folderId) {
072 return getService().createJournalFolder(folderId);
073 }
074
075 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
076 com.liferay.portlet.journal.model.JournalFolder folder)
077 throws com.liferay.portal.kernel.exception.PortalException {
078 return getService().deleteFolder(folder);
079 }
080
081 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
082 com.liferay.portlet.journal.model.JournalFolder folder,
083 boolean includeTrashedEntries)
084 throws com.liferay.portal.kernel.exception.PortalException {
085 return getService().deleteFolder(folder, includeTrashedEntries);
086 }
087
088 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
089 long folderId)
090 throws com.liferay.portal.kernel.exception.PortalException {
091 return getService().deleteFolder(folderId);
092 }
093
094 public static com.liferay.portlet.journal.model.JournalFolder deleteFolder(
095 long folderId, boolean includeTrashedEntries)
096 throws com.liferay.portal.kernel.exception.PortalException {
097 return getService().deleteFolder(folderId, includeTrashedEntries);
098 }
099
100 public static void deleteFolders(long groupId)
101 throws com.liferay.portal.kernel.exception.PortalException {
102 getService().deleteFolders(groupId);
103 }
104
105
112 public static com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
113 long folderId)
114 throws com.liferay.portal.kernel.exception.PortalException {
115 return getService().deleteJournalFolder(folderId);
116 }
117
118
124 public static com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
125 com.liferay.portlet.journal.model.JournalFolder journalFolder) {
126 return getService().deleteJournalFolder(journalFolder);
127 }
128
129
132 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
133 com.liferay.portal.model.PersistedModel persistedModel)
134 throws com.liferay.portal.kernel.exception.PortalException {
135 return getService().deletePersistedModel(persistedModel);
136 }
137
138 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
139 return getService().dynamicQuery();
140 }
141
142
148 public static <T> java.util.List<T> dynamicQuery(
149 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
150 return getService().dynamicQuery(dynamicQuery);
151 }
152
153
165 public static <T> java.util.List<T> dynamicQuery(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
167 int end) {
168 return getService().dynamicQuery(dynamicQuery, start, end);
169 }
170
171
184 public static <T> java.util.List<T> dynamicQuery(
185 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
186 int end,
187 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
188 return getService()
189 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
190 }
191
192
198 public static long dynamicQueryCount(
199 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
200 return getService().dynamicQueryCount(dynamicQuery);
201 }
202
203
210 public static long dynamicQueryCount(
211 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
212 com.liferay.portal.kernel.dao.orm.Projection projection) {
213 return getService().dynamicQueryCount(dynamicQuery, projection);
214 }
215
216 public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
217 long folderId) {
218 return getService().fetchFolder(folderId);
219 }
220
221 public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
222 long groupId, java.lang.String name) {
223 return getService().fetchFolder(groupId, name);
224 }
225
226 public static com.liferay.portlet.journal.model.JournalFolder fetchFolder(
227 long groupId, long parentFolderId, java.lang.String name) {
228 return getService().fetchFolder(groupId, parentFolderId, name);
229 }
230
231 public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolder(
232 long folderId) {
233 return getService().fetchJournalFolder(folderId);
234 }
235
236
243 public static com.liferay.portlet.journal.model.JournalFolder fetchJournalFolderByUuidAndGroupId(
244 java.lang.String uuid, long groupId) {
245 return getService().fetchJournalFolderByUuidAndGroupId(uuid, groupId);
246 }
247
248 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
249 return getService().getActionableDynamicQuery();
250 }
251
252
257 public static java.lang.String getBeanIdentifier() {
258 return getService().getBeanIdentifier();
259 }
260
261 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getCompanyFolders(
262 long companyId, int start, int end) {
263 return getService().getCompanyFolders(companyId, start, end);
264 }
265
266 public static int getCompanyFoldersCount(long companyId) {
267 return getService().getCompanyFoldersCount(companyId);
268 }
269
270 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> getDDMStructures(
271 long[] groupIds, long folderId, int restrictionType)
272 throws com.liferay.portal.kernel.exception.PortalException {
273 return getService().getDDMStructures(groupIds, folderId, restrictionType);
274 }
275
276 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
277 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
278 return getService().getExportActionableDynamicQuery(portletDataContext);
279 }
280
281 public static com.liferay.portlet.journal.model.JournalFolder getFolder(
282 long folderId)
283 throws com.liferay.portal.kernel.exception.PortalException {
284 return getService().getFolder(folderId);
285 }
286
287 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
288 long groupId) {
289 return getService().getFolders(groupId);
290 }
291
292 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
293 long groupId, long parentFolderId) {
294 return getService().getFolders(groupId, parentFolderId);
295 }
296
297 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
298 long groupId, long parentFolderId, int start, int end) {
299 return getService().getFolders(groupId, parentFolderId, start, end);
300 }
301
302 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
303 long groupId, long parentFolderId, int status) {
304 return getService().getFolders(groupId, parentFolderId, status);
305 }
306
307 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
308 long groupId, long parentFolderId, int status, int start, int end) {
309 return getService()
310 .getFolders(groupId, parentFolderId, status, start, end);
311 }
312
313 public static java.util.List<java.lang.Object> getFoldersAndArticles(
314 long groupId, long folderId) {
315 return getService().getFoldersAndArticles(groupId, folderId);
316 }
317
318 public static java.util.List<java.lang.Object> getFoldersAndArticles(
319 long groupId, long folderId, int start, int end,
320 com.liferay.portal.kernel.util.OrderByComparator<?> obc) {
321 return getService()
322 .getFoldersAndArticles(groupId, folderId, start, end, obc);
323 }
324
325 public static java.util.List<java.lang.Object> getFoldersAndArticles(
326 long groupId, long folderId, int status) {
327 return getService().getFoldersAndArticles(groupId, folderId, status);
328 }
329
330 public static int getFoldersAndArticlesCount(long groupId, long folderId) {
331 return getService().getFoldersAndArticlesCount(groupId, folderId);
332 }
333
334 public static int getFoldersAndArticlesCount(long groupId, long folderId,
335 int status) {
336 return getService().getFoldersAndArticlesCount(groupId, folderId, status);
337 }
338
339 public static int getFoldersAndArticlesCount(long groupId,
340 java.util.List<java.lang.Long> folderIds, int status) {
341 return getService()
342 .getFoldersAndArticlesCount(groupId, folderIds, status);
343 }
344
345 public static int getFoldersCount(long groupId, long parentFolderId) {
346 return getService().getFoldersCount(groupId, parentFolderId);
347 }
348
349 public static int getFoldersCount(long groupId, long parentFolderId,
350 int status) {
351 return getService().getFoldersCount(groupId, parentFolderId, status);
352 }
353
354 public static long getInheritedWorkflowFolderId(long folderId)
355 throws com.liferay.portlet.journal.NoSuchFolderException {
356 return getService().getInheritedWorkflowFolderId(folderId);
357 }
358
359
366 public static com.liferay.portlet.journal.model.JournalFolder getJournalFolder(
367 long folderId)
368 throws com.liferay.portal.kernel.exception.PortalException {
369 return getService().getJournalFolder(folderId);
370 }
371
372
380 public static com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndGroupId(
381 java.lang.String uuid, long groupId)
382 throws com.liferay.portal.kernel.exception.PortalException {
383 return getService().getJournalFolderByUuidAndGroupId(uuid, groupId);
384 }
385
386
397 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFolders(
398 int start, int end) {
399 return getService().getJournalFolders(start, end);
400 }
401
402
409 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFoldersByUuidAndCompanyId(
410 java.lang.String uuid, long companyId) {
411 return getService().getJournalFoldersByUuidAndCompanyId(uuid, companyId);
412 }
413
414
424 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFoldersByUuidAndCompanyId(
425 java.lang.String uuid, long companyId, int start, int end,
426 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalFolder> orderByComparator) {
427 return getService()
428 .getJournalFoldersByUuidAndCompanyId(uuid, companyId, start,
429 end, orderByComparator);
430 }
431
432
437 public static int getJournalFoldersCount() {
438 return getService().getJournalFoldersCount();
439 }
440
441 public static java.util.List<com.liferay.portlet.journal.model.JournalFolder> getNoAssetFolders() {
442 return getService().getNoAssetFolders();
443 }
444
445 public static long getOverridedDDMStructuresFolderId(long folderId)
446 throws com.liferay.portlet.journal.NoSuchFolderException {
447 return getService().getOverridedDDMStructuresFolderId(folderId);
448 }
449
450 public static com.liferay.portal.model.PersistedModel getPersistedModel(
451 java.io.Serializable primaryKeyObj)
452 throws com.liferay.portal.kernel.exception.PortalException {
453 return getService().getPersistedModel(primaryKeyObj);
454 }
455
456 public static void getSubfolderIds(
457 java.util.List<java.lang.Long> folderIds, long groupId, long folderId) {
458 getService().getSubfolderIds(folderIds, groupId, folderId);
459 }
460
461 public static com.liferay.portlet.journal.model.JournalFolder moveFolder(
462 long folderId, long parentFolderId,
463 com.liferay.portal.service.ServiceContext serviceContext)
464 throws com.liferay.portal.kernel.exception.PortalException {
465 return getService().moveFolder(folderId, parentFolderId, serviceContext);
466 }
467
468 public static com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
469 long userId, long folderId, long parentFolderId,
470 com.liferay.portal.service.ServiceContext serviceContext)
471 throws com.liferay.portal.kernel.exception.PortalException {
472 return getService()
473 .moveFolderFromTrash(userId, folderId, parentFolderId,
474 serviceContext);
475 }
476
477 public static com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
478 long userId, long folderId)
479 throws com.liferay.portal.kernel.exception.PortalException {
480 return getService().moveFolderToTrash(userId, folderId);
481 }
482
483 public static void rebuildTree(long companyId)
484 throws com.liferay.portal.kernel.exception.PortalException {
485 getService().rebuildTree(companyId);
486 }
487
488 public static void rebuildTree(long companyId, long parentFolderId,
489 java.lang.String parentTreePath, boolean reindex)
490 throws com.liferay.portal.kernel.exception.PortalException {
491 getService()
492 .rebuildTree(companyId, parentFolderId, parentTreePath, reindex);
493 }
494
495 public static void restoreFolderFromTrash(long userId, long folderId)
496 throws com.liferay.portal.kernel.exception.PortalException {
497 getService().restoreFolderFromTrash(userId, folderId);
498 }
499
500
505 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
506 getService().setBeanIdentifier(beanIdentifier);
507 }
508
509 public static void subscribe(long userId, long groupId, long folderId)
510 throws com.liferay.portal.kernel.exception.PortalException {
511 getService().subscribe(userId, groupId, folderId);
512 }
513
514 public static void unsubscribe(long userId, long groupId, long folderId)
515 throws com.liferay.portal.kernel.exception.PortalException {
516 getService().unsubscribe(userId, groupId, folderId);
517 }
518
519 public static void updateAsset(long userId,
520 com.liferay.portlet.journal.model.JournalFolder folder,
521 long[] assetCategoryIds, java.lang.String[] assetTagNames,
522 long[] assetLinkEntryIds)
523 throws com.liferay.portal.kernel.exception.PortalException {
524 getService()
525 .updateAsset(userId, folder, assetCategoryIds, assetTagNames,
526 assetLinkEntryIds);
527 }
528
529 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
530 long userId, long groupId, long folderId, long parentFolderId,
531 java.lang.String name, java.lang.String description,
532 long[] ddmStructureIds, int restrictionType,
533 boolean mergeWithParentFolder,
534 com.liferay.portal.service.ServiceContext serviceContext)
535 throws com.liferay.portal.kernel.exception.PortalException {
536 return getService()
537 .updateFolder(userId, groupId, folderId, parentFolderId,
538 name, description, ddmStructureIds, restrictionType,
539 mergeWithParentFolder, serviceContext);
540 }
541
542 public static com.liferay.portlet.journal.model.JournalFolder updateFolder(
543 long userId, long groupId, long folderId, long parentFolderId,
544 java.lang.String name, java.lang.String description,
545 boolean mergeWithParentFolder,
546 com.liferay.portal.service.ServiceContext serviceContext)
547 throws com.liferay.portal.kernel.exception.PortalException {
548 return getService()
549 .updateFolder(userId, groupId, folderId, parentFolderId,
550 name, description, mergeWithParentFolder, serviceContext);
551 }
552
553 public static void updateFolderDDMStructures(
554 com.liferay.portlet.journal.model.JournalFolder folder,
555 long[] ddmStructureIdsArray)
556 throws com.liferay.portal.kernel.exception.PortalException {
557 getService().updateFolderDDMStructures(folder, ddmStructureIdsArray);
558 }
559
560
566 public static com.liferay.portlet.journal.model.JournalFolder updateJournalFolder(
567 com.liferay.portlet.journal.model.JournalFolder journalFolder) {
568 return getService().updateJournalFolder(journalFolder);
569 }
570
571 public static com.liferay.portlet.journal.model.JournalFolder updateStatus(
572 long userId, com.liferay.portlet.journal.model.JournalFolder folder,
573 int status) throws com.liferay.portal.kernel.exception.PortalException {
574 return getService().updateStatus(userId, folder, status);
575 }
576
577 public static void validateFolderDDMStructures(long folderId,
578 long parentFolderId)
579 throws com.liferay.portal.kernel.exception.PortalException {
580 getService().validateFolderDDMStructures(folderId, parentFolderId);
581 }
582
583 public static JournalFolderLocalService getService() {
584 if (_service == null) {
585 _service = (JournalFolderLocalService)PortalBeanLocatorUtil.locate(JournalFolderLocalService.class.getName());
586
587 ReferenceRegistry.registerReference(JournalFolderLocalServiceUtil.class,
588 "_service");
589 }
590
591 return _service;
592 }
593
594
597 @Deprecated
598 public void setService(JournalFolderLocalService service) {
599 }
600
601 private static JournalFolderLocalService _service;
602 }