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.jsonwebservice.JSONWebService;
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.security.ac.AccessControlled;
026 import com.liferay.portal.service.BaseService;
027
028
039 @ProviderType
040 @AccessControlled
041 @JSONWebService
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface JournalFolderService extends BaseService {
045
050
051
056 public java.lang.String getBeanIdentifier();
057
058
063 public void setBeanIdentifier(java.lang.String beanIdentifier);
064
065 public com.liferay.portlet.journal.model.JournalFolder addFolder(
066 long groupId, long parentFolderId, java.lang.String name,
067 java.lang.String description,
068 com.liferay.portal.service.ServiceContext serviceContext)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException;
071
072 public void deleteFolder(long folderId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException;
075
076 public void deleteFolder(long folderId, boolean includeTrashedEntries)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
081 public com.liferay.portlet.journal.model.JournalFolder fetchFolder(
082 long folderId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException;
085
086 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
087 public com.liferay.portlet.journal.model.JournalFolder getFolder(
088 long folderId)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException;
091
092 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
093 public java.util.List<java.lang.Long> getFolderIds(long groupId,
094 long folderId)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException;
097
098 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
099 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
100 long groupId)
101 throws com.liferay.portal.kernel.exception.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
105 long groupId, long parentFolderId)
106 throws com.liferay.portal.kernel.exception.SystemException;
107
108 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
109 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
110 long groupId, long parentFolderId, int status)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
114 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
115 long groupId, long parentFolderId, int start, int end)
116 throws com.liferay.portal.kernel.exception.SystemException;
117
118 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
119 public java.util.List<com.liferay.portlet.journal.model.JournalFolder> getFolders(
120 long groupId, long parentFolderId, int status, int start, int end)
121 throws com.liferay.portal.kernel.exception.SystemException;
122
123 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124 public java.util.List<java.lang.Object> getFoldersAndArticles(
125 long groupId, long folderId, int status, int start, int end,
126 com.liferay.portal.kernel.util.OrderByComparator obc)
127 throws com.liferay.portal.kernel.exception.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public java.util.List<java.lang.Object> getFoldersAndArticles(
131 long groupId, long folderId, int start, int end,
132 com.liferay.portal.kernel.util.OrderByComparator obc)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public java.util.List<java.lang.Object> getFoldersAndArticles(
137 long groupId, long userId, long folderId, int status, int start,
138 int end, com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.kernel.exception.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public int getFoldersAndArticlesCount(long groupId,
143 java.util.List<java.lang.Long> folderIds, int status)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
147 public int getFoldersAndArticlesCount(long groupId, long folderId)
148 throws com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public int getFoldersAndArticlesCount(long groupId, long folderId,
152 int status) throws com.liferay.portal.kernel.exception.SystemException;
153
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public int getFoldersAndArticlesCount(long groupId, long userId,
156 long folderId, int status)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public int getFoldersCount(long groupId, long parentFolderId)
161 throws com.liferay.portal.kernel.exception.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public int getFoldersCount(long groupId, long parentFolderId, int status)
165 throws com.liferay.portal.kernel.exception.SystemException;
166
167
171 @java.lang.Deprecated
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
174 long groupId, long folderId)
175 throws com.liferay.portal.kernel.exception.SystemException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
179 long groupId, long folderId, boolean recurse)
180 throws com.liferay.portal.kernel.exception.SystemException;
181
182 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
183 public java.util.List<java.lang.Long> getSubfolderIds(long groupId,
184 long folderId, boolean recurse)
185 throws com.liferay.portal.kernel.exception.SystemException;
186
187 public com.liferay.portlet.journal.model.JournalFolder moveFolder(
188 long folderId, long parentFolderId,
189 com.liferay.portal.service.ServiceContext serviceContext)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException;
192
193 public com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
194 long folderId, long parentFolderId,
195 com.liferay.portal.service.ServiceContext serviceContext)
196 throws com.liferay.portal.kernel.exception.PortalException,
197 com.liferay.portal.kernel.exception.SystemException;
198
199 public com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
200 long folderId)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException;
203
204 public void restoreFolderFromTrash(long folderId)
205 throws com.liferay.portal.kernel.exception.PortalException,
206 com.liferay.portal.kernel.exception.SystemException;
207
208 public com.liferay.portlet.journal.model.JournalFolder updateFolder(
209 long folderId, long parentFolderId, java.lang.String name,
210 java.lang.String description, boolean mergeWithParentFolder,
211 com.liferay.portal.service.ServiceContext serviceContext)
212 throws com.liferay.portal.kernel.exception.PortalException,
213 com.liferay.portal.kernel.exception.SystemException;
214 }