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.transaction.Isolation;
022 import com.liferay.portal.kernel.transaction.Propagation;
023 import com.liferay.portal.kernel.transaction.Transactional;
024 import com.liferay.portal.service.BaseLocalService;
025 import com.liferay.portal.service.PersistedModelLocalService;
026
027
039 @ProviderType
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface JournalFolderLocalService extends BaseLocalService,
043 PersistedModelLocalService {
044
049
050
057 public com.liferay.portlet.journal.model.JournalFolder addJournalFolder(
058 com.liferay.portlet.journal.model.JournalFolder journalFolder)
059 throws com.liferay.portal.kernel.exception.SystemException;
060
061
067 public com.liferay.portlet.journal.model.JournalFolder createJournalFolder(
068 long folderId);
069
070
078 public com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
079 long folderId)
080 throws com.liferay.portal.kernel.exception.PortalException,
081 com.liferay.portal.kernel.exception.SystemException;
082
083
090 public com.liferay.portlet.journal.model.JournalFolder deleteJournalFolder(
091 com.liferay.portlet.journal.model.JournalFolder journalFolder)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
095
096
103 @SuppressWarnings("rawtypes")
104 public java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108
121 @SuppressWarnings("rawtypes")
122 public java.util.List dynamicQuery(
123 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
124 int end) throws com.liferay.portal.kernel.exception.SystemException;
125
126
140 @SuppressWarnings("rawtypes")
141 public java.util.List dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException;
146
147
154 public long dynamicQueryCount(
155 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
156 throws com.liferay.portal.kernel.exception.SystemException;
157
158
166 public long dynamicQueryCount(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
168 com.liferay.portal.kernel.dao.orm.Projection projection)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public com.liferay.portlet.journal.model.JournalFolder fetchJournalFolder(
173 long folderId)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public com.liferay.portlet.journal.model.JournalFolder fetchJournalFolderByUuidAndCompanyId(
186 java.lang.String uuid, long companyId)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189
197 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
198 public com.liferay.portlet.journal.model.JournalFolder fetchJournalFolderByUuidAndGroupId(
199 java.lang.String uuid, long groupId)
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public com.liferay.portlet.journal.model.JournalFolder getJournalFolder(
212 long folderId)
213 throws com.liferay.portal.kernel.exception.PortalException,
214 com.liferay.portal.kernel.exception.SystemException;
215
216 @Override
217 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
218 public com.liferay.portal.model.PersistedModel getPersistedModel(
219 java.io.Serializable primaryKeyObj)
220 throws com.liferay.portal.kernel.exception.PortalException,
221 com.liferay.portal.kernel.exception.SystemException;
222
223
232 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
233 public com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndCompanyId(
234 java.lang.String uuid, long companyId)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238
247 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
248 public com.liferay.portlet.journal.model.JournalFolder getJournalFolderByUuidAndGroupId(
249 java.lang.String uuid, long groupId)
250 throws com.liferay.portal.kernel.exception.PortalException,
251 com.liferay.portal.kernel.exception.SystemException;
252
253
265 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
266 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getJournalFolders(
267 int start, int end)
268 throws com.liferay.portal.kernel.exception.SystemException;
269
270
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public int getJournalFoldersCount()
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280
287 public com.liferay.portlet.journal.model.JournalFolder updateJournalFolder(
288 com.liferay.portlet.journal.model.JournalFolder journalFolder)
289 throws com.liferay.portal.kernel.exception.SystemException;
290
291
296 public java.lang.String getBeanIdentifier();
297
298
303 public void setBeanIdentifier(java.lang.String beanIdentifier);
304
305 public com.liferay.portlet.journal.model.JournalFolder addFolder(
306 long userId, long groupId, long parentFolderId, java.lang.String name,
307 java.lang.String description,
308 com.liferay.portal.service.ServiceContext serviceContext)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException;
311
312 public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
313 com.liferay.portlet.journal.model.JournalFolder folder)
314 throws com.liferay.portal.kernel.exception.PortalException,
315 com.liferay.portal.kernel.exception.SystemException;
316
317 public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
318 com.liferay.portlet.journal.model.JournalFolder folder,
319 boolean includeTrashedEntries)
320 throws com.liferay.portal.kernel.exception.PortalException,
321 com.liferay.portal.kernel.exception.SystemException;
322
323 public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
324 long folderId)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException;
327
328 public com.liferay.portlet.journal.model.JournalFolder deleteFolder(
329 long folderId, boolean includeTrashedEntries)
330 throws com.liferay.portal.kernel.exception.PortalException,
331 com.liferay.portal.kernel.exception.SystemException;
332
333 public void deleteFolders(long groupId)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException;
336
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public com.liferay.portlet.journal.model.JournalFolder fetchFolder(
339 long folderId)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343 public com.liferay.portlet.journal.model.JournalFolder fetchFolder(
344 long groupId, long parentFolderId, java.lang.String name)
345 throws com.liferay.portal.kernel.exception.SystemException;
346
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public com.liferay.portlet.journal.model.JournalFolder fetchFolder(
349 long groupId, java.lang.String name)
350 throws com.liferay.portal.kernel.exception.SystemException;
351
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getCompanyFolders(
354 long companyId, int start, int end)
355 throws com.liferay.portal.kernel.exception.SystemException;
356
357 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358 public int getCompanyFoldersCount(long companyId)
359 throws com.liferay.portal.kernel.exception.SystemException;
360
361 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362 public com.liferay.portlet.journal.model.JournalFolder getFolder(
363 long folderId)
364 throws com.liferay.portal.kernel.exception.PortalException,
365 com.liferay.portal.kernel.exception.SystemException;
366
367 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
368 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
369 long groupId)
370 throws com.liferay.portal.kernel.exception.SystemException;
371
372 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
373 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
374 long groupId, long parentFolderId)
375 throws com.liferay.portal.kernel.exception.SystemException;
376
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
379 long groupId, long parentFolderId, int status)
380 throws com.liferay.portal.kernel.exception.SystemException;
381
382 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
383 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
384 long groupId, long parentFolderId, int start, int end)
385 throws com.liferay.portal.kernel.exception.SystemException;
386
387 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
388 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
389 long groupId, long parentFolderId, int status, int start, int end)
390 throws com.liferay.portal.kernel.exception.SystemException;
391
392 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393 public java.util.List<java.lang.Object> getFoldersAndArticles(
394 long groupId, long folderId)
395 throws com.liferay.portal.kernel.exception.SystemException;
396
397 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
398 public java.util.List<java.lang.Object> getFoldersAndArticles(
399 long groupId, long folderId, int status)
400 throws com.liferay.portal.kernel.exception.SystemException;
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public java.util.List<java.lang.Object> getFoldersAndArticles(
404 long groupId, long folderId, int start, int end,
405 com.liferay.portal.kernel.util.OrderByComparator obc)
406 throws com.liferay.portal.kernel.exception.SystemException;
407
408 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
409 public int getFoldersAndArticlesCount(long groupId,
410 java.util.List<java.lang.Long> folderIds, int status)
411 throws com.liferay.portal.kernel.exception.SystemException;
412
413 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414 public int getFoldersAndArticlesCount(long groupId, long folderId)
415 throws com.liferay.portal.kernel.exception.SystemException;
416
417 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
418 public int getFoldersAndArticlesCount(long groupId, long folderId,
419 int status) throws com.liferay.portal.kernel.exception.SystemException;
420
421 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
422 public int getFoldersCount(long groupId, long parentFolderId)
423 throws com.liferay.portal.kernel.exception.SystemException;
424
425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426 public int getFoldersCount(long groupId, long parentFolderId, int status)
427 throws com.liferay.portal.kernel.exception.SystemException;
428
429 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getNoAssetFolders()
431 throws com.liferay.portal.kernel.exception.SystemException;
432
433 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
435 long groupId, long folderId)
436 throws com.liferay.portal.kernel.exception.SystemException;
437
438 public com.liferay.portlet.journal.model.JournalFolder moveFolder(
439 long folderId, long parentFolderId,
440 com.liferay.portal.service.ServiceContext serviceContext)
441 throws com.liferay.portal.kernel.exception.PortalException,
442 com.liferay.portal.kernel.exception.SystemException;
443
444 public com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
445 long userId, long folderId, long parentFolderId,
446 com.liferay.portal.service.ServiceContext serviceContext)
447 throws com.liferay.portal.kernel.exception.PortalException,
448 com.liferay.portal.kernel.exception.SystemException;
449
450 public com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
451 long userId, long folderId)
452 throws com.liferay.portal.kernel.exception.PortalException,
453 com.liferay.portal.kernel.exception.SystemException;
454
455 public void rebuildTree(long companyId)
456 throws com.liferay.portal.kernel.exception.SystemException;
457
458 public void restoreFolderFromTrash(long userId, long folderId)
459 throws com.liferay.portal.kernel.exception.PortalException,
460 com.liferay.portal.kernel.exception.SystemException;
461
462 public void updateAsset(long userId,
463 com.liferay.portlet.journal.model.JournalFolder folder,
464 long[] assetCategoryIds, java.lang.String[] assetTagNames,
465 long[] assetLinkEntryIds)
466 throws com.liferay.portal.kernel.exception.PortalException,
467 com.liferay.portal.kernel.exception.SystemException;
468
469 public com.liferay.portlet.journal.model.JournalFolder updateFolder(
470 long userId, long folderId, long parentFolderId, java.lang.String name,
471 java.lang.String description, boolean mergeWithParentFolder,
472 com.liferay.portal.service.ServiceContext serviceContext)
473 throws com.liferay.portal.kernel.exception.PortalException,
474 com.liferay.portal.kernel.exception.SystemException;
475
476 public com.liferay.portlet.journal.model.JournalFolder updateStatus(
477 long userId, com.liferay.portlet.journal.model.JournalFolder folder,
478 int status)
479 throws com.liferay.portal.kernel.exception.PortalException,
480 com.liferay.portal.kernel.exception.SystemException;
481 }