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 int getFoldersAndArticlesCount(long groupId,
137 java.util.List<java.lang.Long> folderIds, int status)
138 throws com.liferay.portal.kernel.exception.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public int getFoldersAndArticlesCount(long groupId, long folderId)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
145 public int getFoldersAndArticlesCount(long groupId, long folderId,
146 int status) throws com.liferay.portal.kernel.exception.SystemException;
147
148 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
149 public int getFoldersCount(long groupId, long parentFolderId)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public int getFoldersCount(long groupId, long parentFolderId, int status)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156
160 @java.lang.Deprecated
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
163 long groupId, long folderId)
164 throws com.liferay.portal.kernel.exception.SystemException;
165
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
168 long groupId, long folderId, boolean recurse)
169 throws com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<java.lang.Long> getSubfolderIds(long groupId,
173 long folderId, boolean recurse)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 public com.liferay.portlet.journal.model.JournalFolder moveFolder(
177 long folderId, long parentFolderId,
178 com.liferay.portal.service.ServiceContext serviceContext)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException;
181
182 public com.liferay.portlet.journal.model.JournalFolder moveFolderFromTrash(
183 long folderId, long parentFolderId,
184 com.liferay.portal.service.ServiceContext serviceContext)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException;
187
188 public com.liferay.portlet.journal.model.JournalFolder moveFolderToTrash(
189 long folderId)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException;
192
193 public void restoreFolderFromTrash(long folderId)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException;
196
197 public com.liferay.portlet.journal.model.JournalFolder updateFolder(
198 long folderId, long parentFolderId, java.lang.String name,
199 java.lang.String description, boolean mergeWithParentFolder,
200 com.liferay.portal.service.ServiceContext serviceContext)
201 throws com.liferay.portal.kernel.exception.PortalException,
202 com.liferay.portal.kernel.exception.SystemException;
203 }