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 plid, long parentFolderId, java.lang.String name,
60 java.lang.String description, boolean addCommunityPermissions,
61 boolean addGuestPermissions)
62 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException;
64
65 public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
66 long plid, long parentFolderId, java.lang.String name,
67 java.lang.String description, java.lang.String[] communityPermissions,
68 java.lang.String[] guestPermissions)
69 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
70 com.liferay.portal.SystemException;
71
72 public com.liferay.portlet.imagegallery.model.IGFolder copyFolder(
73 long plid, long sourceFolderId, long parentFolderId,
74 java.lang.String name, java.lang.String description,
75 boolean addCommunityPermissions, boolean addGuestPermissions)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException, java.rmi.RemoteException;
78
79 public void deleteFolder(long folderId)
80 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
85 long folderId)
86 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
91 long groupId, long parentFolderId, java.lang.String name)
92 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException;
94
95 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
96 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
97 long groupId, long parentFolderId)
98 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException;
100
101 public com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
102 long folderId, long parentFolderId, java.lang.String name,
103 java.lang.String description, boolean mergeWithParentFolder)
104 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
105 com.liferay.portal.SystemException;
106 }