1
19
20 package com.liferay.portlet.imagegallery.service;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Isolation;
25 import com.liferay.portal.kernel.annotation.Propagation;
26 import com.liferay.portal.kernel.annotation.Transactional;
27
28
52 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
53 PortalException.class, SystemException.class})
54 public interface IGFolderService {
55 public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
56 long parentFolderId, java.lang.String name,
57 java.lang.String description,
58 com.liferay.portal.service.ServiceContext serviceContext)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.imagegallery.model.IGFolder copyFolder(
63 long sourceFolderId, long parentFolderId, java.lang.String name,
64 java.lang.String description,
65 com.liferay.portal.service.ServiceContext serviceContext)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException;
68
69 public void deleteFolder(long folderId)
70 throws com.liferay.portal.PortalException,
71 com.liferay.portal.SystemException;
72
73 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
75 long folderId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
81 long groupId, long parentFolderId, java.lang.String name)
82 throws com.liferay.portal.PortalException,
83 com.liferay.portal.SystemException;
84
85 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
86 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
87 long groupId, long parentFolderId)
88 throws com.liferay.portal.PortalException,
89 com.liferay.portal.SystemException;
90
91 public com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
92 long folderId, long parentFolderId, java.lang.String name,
93 java.lang.String description, boolean mergeWithParentFolder,
94 com.liferay.portal.service.ServiceContext serviceContext)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException;
97 }