001
014
015 package com.liferay.portlet.imagegallery.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface IGFolderLocalService {
043
050 public com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
051 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portlet.imagegallery.model.IGFolder createIGFolder(
061 long folderId);
062
063
070 public void deleteIGFolder(long folderId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException;
073
074
080 public void deleteIGFolder(
081 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
082 throws com.liferay.portal.kernel.exception.SystemException;
083
084
091 @SuppressWarnings("rawtypes")
092 public java.util.List dynamicQuery(
093 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094 throws com.liferay.portal.kernel.exception.SystemException;
095
096
109 @SuppressWarnings("rawtypes")
110 public java.util.List dynamicQuery(
111 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
112 int end) throws com.liferay.portal.kernel.exception.SystemException;
113
114
128 @SuppressWarnings("rawtypes")
129 public java.util.List dynamicQuery(
130 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
131 int end,
132 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
133 throws com.liferay.portal.kernel.exception.SystemException;
134
135
142 public long dynamicQueryCount(
143 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
144 throws com.liferay.portal.kernel.exception.SystemException;
145
146
154 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
155 public com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
156 long folderId)
157 throws com.liferay.portal.kernel.exception.PortalException,
158 com.liferay.portal.kernel.exception.SystemException;
159
160
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.imagegallery.model.IGFolder getIGFolderByUuidAndGroupId(
171 java.lang.String uuid, long groupId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175
187 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
188 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
189 int start, int end)
190 throws com.liferay.portal.kernel.exception.SystemException;
191
192
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getIGFoldersCount()
200 throws com.liferay.portal.kernel.exception.SystemException;
201
202
209 public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
210 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
221 public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
222 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
223 throws com.liferay.portal.kernel.exception.SystemException;
224
225 public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
226 long userId, long parentFolderId, java.lang.String name,
227 java.lang.String description,
228 com.liferay.portal.service.ServiceContext serviceContext)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException;
231
232 public void addFolderResources(
233 com.liferay.portlet.imagegallery.model.IGFolder folder,
234 boolean addCommunityPermissions, boolean addGuestPermissions)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException;
237
238 public void addFolderResources(
239 com.liferay.portlet.imagegallery.model.IGFolder folder,
240 java.lang.String[] communityPermissions,
241 java.lang.String[] guestPermissions)
242 throws com.liferay.portal.kernel.exception.PortalException,
243 com.liferay.portal.kernel.exception.SystemException;
244
245 public void addFolderResources(long folderId,
246 boolean addCommunityPermissions, boolean addGuestPermissions)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250 public void addFolderResources(long folderId,
251 java.lang.String[] communityPermissions,
252 java.lang.String[] guestPermissions)
253 throws com.liferay.portal.kernel.exception.PortalException,
254 com.liferay.portal.kernel.exception.SystemException;
255
256 public void deleteFolder(
257 com.liferay.portlet.imagegallery.model.IGFolder folder)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException;
260
261 public void deleteFolder(long folderId)
262 throws com.liferay.portal.kernel.exception.PortalException,
263 com.liferay.portal.kernel.exception.SystemException;
264
265 public void deleteFolders(long groupId)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException;
268
269 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
270 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getCompanyFolders(
271 long companyId, int start, int end)
272 throws com.liferay.portal.kernel.exception.SystemException;
273
274 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
275 public int getCompanyFoldersCount(long companyId)
276 throws com.liferay.portal.kernel.exception.SystemException;
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
280 long folderId)
281 throws com.liferay.portal.kernel.exception.PortalException,
282 com.liferay.portal.kernel.exception.SystemException;
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
286 long groupId, long parentFolderId, java.lang.String name)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException;
289
290 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
291 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
292 long groupId)
293 throws com.liferay.portal.kernel.exception.SystemException;
294
295 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
296 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
297 long groupId, long parentFolderId)
298 throws com.liferay.portal.kernel.exception.SystemException;
299
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
302 long groupId, long parentFolderId, int start, int end)
303 throws com.liferay.portal.kernel.exception.SystemException;
304
305 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
306 public int getFoldersCount(long groupId, long parentFolderId)
307 throws com.liferay.portal.kernel.exception.SystemException;
308
309 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
310 public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
311 long groupId, long folderId)
312 throws com.liferay.portal.kernel.exception.SystemException;
313
314 public com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
315 long folderId, long parentFolderId, java.lang.String name,
316 java.lang.String description, boolean mergeWithParentFolder,
317 com.liferay.portal.service.ServiceContext serviceContext)
318 throws com.liferay.portal.kernel.exception.PortalException,
319 com.liferay.portal.kernel.exception.SystemException;
320 }