001
014
015 package com.liferay.portlet.journal.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020 import com.liferay.portal.kernel.transaction.Isolation;
021 import com.liferay.portal.kernel.transaction.Propagation;
022 import com.liferay.portal.kernel.transaction.Transactional;
023 import com.liferay.portal.security.ac.AccessControlled;
024 import com.liferay.portal.service.BaseService;
025
026
039 @AccessControlled
040 @JSONWebService
041 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
042 PortalException.class, SystemException.class})
043 public interface JournalFolderService extends BaseService {
044
049
050
055 public java.lang.String getBeanIdentifier();
056
057
062 public void setBeanIdentifier(java.lang.String beanIdentifier);
063
064 public com.liferay.portlet.journal.model.JournalFolder addFolder(
065 long groupId, long parentFolderId, java.lang.String name,
066 java.lang.String description,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException;
070
071 public void deleteFolder(long folderId)
072 throws com.liferay.portal.kernel.exception.PortalException,
073 com.liferay.portal.kernel.exception.SystemException;
074
075 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
076 public com.liferay.portlet.journal.model.JournalFolder getFolder(
077 long folderId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
082 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
083 long groupId)
084 throws com.liferay.portal.kernel.exception.SystemException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
088 long groupId, long parentFolderId)
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
092 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
093 long groupId, long parentFolderId, int start, int end)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
097 public java.util.List<java.lang.Object> getFoldersAndArticles(
098 long groupId, long folderId, int start, int end,
099 com.liferay.portal.kernel.util.OrderByComparator obc)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
103 public int getFoldersAndArticlesCount(long groupId,
104 java.util.List<java.lang.Long> folderIds, int status)
105 throws com.liferay.portal.kernel.exception.SystemException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public int getFoldersAndArticlesCount(long groupId, long folderId)
109 throws com.liferay.portal.kernel.exception.SystemException;
110
111 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
112 public int getFoldersAndArticlesCount(long groupId, long folderId,
113 int status) throws com.liferay.portal.kernel.exception.SystemException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public int getFoldersCount(long groupId, long parentFolderId)
117 throws com.liferay.portal.kernel.exception.SystemException;
118
119 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
120 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
121 long groupId, long folderId)
122 throws com.liferay.portal.kernel.exception.SystemException;
123
124 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
125 public java.util.List<java.lang.Long> getSubfolderIds(long groupId,
126 long folderId, boolean recurse)
127 throws com.liferay.portal.kernel.exception.SystemException;
128
129 public com.liferay.portlet.journal.model.JournalFolder moveFolder(
130 long folderId, long parentFolderId,
131 com.liferay.portal.service.ServiceContext serviceContext)
132 throws com.liferay.portal.kernel.exception.PortalException,
133 com.liferay.portal.kernel.exception.SystemException;
134
135 public com.liferay.portlet.journal.model.JournalFolder updateFolder(
136 long folderId, long parentFolderId, java.lang.String name,
137 java.lang.String description, boolean mergeWithParentFolder,
138 com.liferay.portal.service.ServiceContext serviceContext)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException;
141 }