001
014
015 package com.liferay.portlet.journal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.model.SystemEventConstants;
026 import com.liferay.portal.service.BaseLocalService;
027 import com.liferay.portal.service.PersistedModelLocalService;
028
029
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface JournalFolderLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051
052
059 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
060 public com.liferay.portlet.journal.model.JournalFolder addJournalFolder(
061 com.liferay.portlet.journal.model.JournalFolder journalFolder)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064
070 public com.liferay.portlet.journal.model.JournalFolder createJournalFolder(
071 long folderId);
072
073
081 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
082 public com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
083 long folderId)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087
094 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
095 public com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
096 com.liferay.portlet.journal.model.JournalFolder journalFolder)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
100
101
108 @SuppressWarnings("rawtypes")
109 public java.util.List dynamicQuery(
110 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end) throws com.liferay.portal.kernel.exception.SystemException;
130
131
145 @SuppressWarnings("rawtypes")
146 public 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
152
159 public long dynamicQueryCount(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
161 throws com.liferay.portal.kernel.exception.SystemException;
162
163
171 public long dynamicQueryCount(
172 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
173 com.liferay.portal.kernel.dao.orm.Projection projection)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public com.liferay.portlet.journal.model.JournalFolder fetchJournalFolder(
178 long folderId)
179 throws com.liferay.portal.kernel.exception.SystemException;
180
181
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portlet.journal.model.JournalFolder fetchJournalFolderByUuidAndCompanyId(
191 java.lang.String uuid, long companyId)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public com.liferay.portlet.journal.model.JournalFolder fetchJournalFolderByUuidAndGroupId(
204 java.lang.String uuid, long groupId)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public com.liferay.portlet.journal.model.JournalFolder getJournalFolder(
217 long folderId)
218 throws com.liferay.portal.kernel.exception.PortalException,
219 com.liferay.portal.kernel.exception.SystemException;
220
221 @Override
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public com.liferay.portal.model.PersistedModel getPersistedModel(
224 java.io.Serializable primaryKeyObj)
225 throws com.liferay.portal.kernel.exception.PortalException,
226 com.liferay.portal.kernel.exception.SystemException;
227
228
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndCompanyId(
239 java.lang.String uuid, long companyId)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException;
242
243
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndGroupId(
254 java.lang.String uuid, long groupId)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException;
257
258
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFolders(
272 int start, int end)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getJournalFoldersCount()
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285
292 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
293 public com.liferay.portlet.journal.model.JournalFolder updateJournalFolder(
294 com.liferay.portlet.journal.model.JournalFolder journalFolder)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297
302 public java.lang.String getBeanIdentifier();
303
304
309 public void setBeanIdentifier(java.lang.String beanIdentifier);
310
311 public com.liferay.portlet.journal.model.JournalFolder addFolder(
312 long userId, long groupId, long parentFolderId, java.lang.String name,
313 java.lang.String description,
314 com.liferay.portal.service.ServiceContext serviceContext)
315 throws com.liferay.portal.kernel.exception.PortalException,
316 com.liferay.portal.kernel.exception.SystemException;
317
318 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
319 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, send = false, type = SystemEventConstants.TYPE_DELETE)
320 public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
321 com.liferay.portlet.journal.model.JournalFolder folder)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
326 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, send = false, type = SystemEventConstants.TYPE_DELETE)
327 public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
328 com.liferay.portlet.journal.model.JournalFolder folder,
329 boolean includeTrashedEntries)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException;
332
333 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
334 public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
335 long folderId)
336 throws com.liferay.portal.kernel.exception.PortalException,
337 com.liferay.portal.kernel.exception.SystemException;
338
339 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
340 public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
341 long folderId, boolean includeTrashedEntries)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException;
344
345 public void deleteFolders(long groupId)
346 throws com.liferay.portal.kernel.exception.PortalException,
347 com.liferay.portal.kernel.exception.SystemException;
348
349 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
350 public com.liferay.portlet.journal.model.JournalFolder fetchFolder(
351 long folderId)
352 throws com.liferay.portal.kernel.exception.SystemException;
353
354 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355 public com.liferay.portlet.journal.model.JournalFolder fetchFolder(
356 long groupId, long parentFolderId, java.lang.String name)
357 throws com.liferay.portal.kernel.exception.SystemException;
358
359 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
360 public com.liferay.portlet.journal.model.JournalFolder fetchFolder(
361 long groupId, java.lang.String name)
362 throws com.liferay.portal.kernel.exception.SystemException;
363
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getCompanyFolders(
366 long companyId, int start, int end)
367 throws com.liferay.portal.kernel.exception.SystemException;
368
369 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370 public int getCompanyFoldersCount(long companyId)
371 throws com.liferay.portal.kernel.exception.SystemException;
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public com.liferay.portlet.journal.model.JournalFolder getFolder(
375 long folderId)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException;
378
379 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
381 long groupId)
382 throws com.liferay.portal.kernel.exception.SystemException;
383
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
386 long groupId, long parentFolderId)
387 throws com.liferay.portal.kernel.exception.SystemException;
388
389 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
391 long groupId, long parentFolderId, int status)
392 throws com.liferay.portal.kernel.exception.SystemException;
393
394 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
395 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
396 long groupId, long parentFolderId, int start, int end)
397 throws com.liferay.portal.kernel.exception.SystemException;
398
399 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
401 long groupId, long parentFolderId, int status, int start, int end)
402 throws com.liferay.portal.kernel.exception.SystemException;
403
404 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
405 public java.util.List<java.lang.Object> getFoldersAndArticles(
406 long groupId, long folderId)
407 throws com.liferay.portal.kernel.exception.SystemException;
408
409 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
410 public java.util.List<java.lang.Object> getFoldersAndArticles(
411 long groupId, long folderId, int status)
412 throws com.liferay.portal.kernel.exception.SystemException;
413
414 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
415 public java.util.List<java.lang.Object> getFoldersAndArticles(
416 long groupId, long folderId, int start, int end,
417 com.liferay.portal.kernel.util.OrderByComparator obc)
418 throws com.liferay.portal.kernel.exception.SystemException;
419
420 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421 public int getFoldersAndArticlesCount(long groupId,
422 java.util.List<java.lang.Long> folderIds, int status)
423 throws com.liferay.portal.kernel.exception.SystemException;
424
425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426 public int getFoldersAndArticlesCount(long groupId, long folderId)
427 throws com.liferay.portal.kernel.exception.SystemException;
428
429 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430 public int getFoldersAndArticlesCount(long groupId, long folderId,
431 int status) throws com.liferay.portal.kernel.exception.SystemException;
432
433 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434 public int getFoldersCount(long groupId, long parentFolderId)
435 throws com.liferay.portal.kernel.exception.SystemException;
436
437 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
438 public int getFoldersCount(long groupId, long parentFolderId, int status)
439 throws com.liferay.portal.kernel.exception.SystemException;
440
441 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
442 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getNoAssetFolders()
443 throws com.liferay.portal.kernel.exception.SystemException;
444
445 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
446 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
447 long groupId, long folderId)
448 throws com.liferay.portal.kernel.exception.SystemException;
449
450 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
451 public com.liferay.portlet.journal.model.JournalFolder moveFolder(
452 long folderId, long parentFolderId,
453 com.liferay.portal.service.ServiceContext serviceContext)
454 throws com.liferay.portal.kernel.exception.PortalException,
455 com.liferay.portal.kernel.exception.SystemException;
456
457 public com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
458 long userId, long folderId, long parentFolderId,
459 com.liferay.portal.service.ServiceContext serviceContext)
460 throws com.liferay.portal.kernel.exception.PortalException,
461 com.liferay.portal.kernel.exception.SystemException;
462
463 public com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
464 long userId, long folderId)
465 throws com.liferay.portal.kernel.exception.PortalException,
466 com.liferay.portal.kernel.exception.SystemException;
467
468 public void rebuildTree(long companyId)
469 throws com.liferay.portal.kernel.exception.PortalException,
470 com.liferay.portal.kernel.exception.SystemException;
471
472 public void rebuildTree(long companyId, long parentFolderId,
473 java.lang.String parentTreePath, boolean reindex)
474 throws com.liferay.portal.kernel.exception.PortalException,
475 com.liferay.portal.kernel.exception.SystemException;
476
477 public void restoreFolderFromTrash(long userId, long folderId)
478 throws com.liferay.portal.kernel.exception.PortalException,
479 com.liferay.portal.kernel.exception.SystemException;
480
481 public void updateAsset(long userId,
482 com.liferay.portlet.journal.model.JournalFolder folder,
483 long[] assetCategoryIds, java.lang.String[] assetTagNames,
484 long[] assetLinkEntryIds)
485 throws com.liferay.portal.kernel.exception.PortalException,
486 com.liferay.portal.kernel.exception.SystemException;
487
488 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
489 public com.liferay.portlet.journal.model.JournalFolder updateFolder(
490 long userId, long folderId, long parentFolderId, java.lang.String name,
491 java.lang.String description, boolean mergeWithParentFolder,
492 com.liferay.portal.service.ServiceContext serviceContext)
493 throws com.liferay.portal.kernel.exception.PortalException,
494 com.liferay.portal.kernel.exception.SystemException;
495
496 public com.liferay.portlet.journal.model.JournalFolder updateStatus(
497 long userId, com.liferay.portlet.journal.model.JournalFolder folder,
498 int status)
499 throws com.liferay.portal.kernel.exception.PortalException,
500 com.liferay.portal.kernel.exception.SystemException;
501 }