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