1
14
15 package com.liferay.portlet.imagegallery.service;
16
17 import com.liferay.portal.kernel.annotation.Isolation;
18 import com.liferay.portal.kernel.annotation.Propagation;
19 import com.liferay.portal.kernel.annotation.Transactional;
20 import com.liferay.portal.kernel.exception.PortalException;
21 import com.liferay.portal.kernel.exception.SystemException;
22
23
47 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
48 PortalException.class, SystemException.class})
49 public interface IGFolderLocalService {
50 public com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
51 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
52 throws com.liferay.portal.kernel.exception.SystemException;
53
54 public com.liferay.portlet.imagegallery.model.IGFolder createIGFolder(
55 long folderId);
56
57 public void deleteIGFolder(long folderId)
58 throws com.liferay.portal.kernel.exception.PortalException,
59 com.liferay.portal.kernel.exception.SystemException;
60
61 public void deleteIGFolder(
62 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
63 throws com.liferay.portal.kernel.exception.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.kernel.exception.SystemException;
68
69 public java.util.List<Object> dynamicQuery(
70 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71 int end) throws com.liferay.portal.kernel.exception.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
75 int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.kernel.exception.SystemException;
78
79 public int dynamicQueryCount(
80 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
81 throws com.liferay.portal.kernel.exception.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
85 long folderId)
86 throws com.liferay.portal.kernel.exception.PortalException,
87 com.liferay.portal.kernel.exception.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
91 int start, int end)
92 throws com.liferay.portal.kernel.exception.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public int getIGFoldersCount()
96 throws com.liferay.portal.kernel.exception.SystemException;
97
98 public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
99 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
100 throws com.liferay.portal.kernel.exception.SystemException;
101
102 public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
103 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106 public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
107 java.lang.String uuid, long userId, long parentFolderId,
108 java.lang.String name, java.lang.String description,
109 com.liferay.portal.service.ServiceContext serviceContext)
110 throws com.liferay.portal.kernel.exception.PortalException,
111 com.liferay.portal.kernel.exception.SystemException;
112
113 public void addFolderResources(
114 com.liferay.portlet.imagegallery.model.IGFolder folder,
115 boolean addCommunityPermissions, boolean addGuestPermissions)
116 throws com.liferay.portal.kernel.exception.PortalException,
117 com.liferay.portal.kernel.exception.SystemException;
118
119 public void addFolderResources(
120 com.liferay.portlet.imagegallery.model.IGFolder folder,
121 java.lang.String[] communityPermissions,
122 java.lang.String[] guestPermissions)
123 throws com.liferay.portal.kernel.exception.PortalException,
124 com.liferay.portal.kernel.exception.SystemException;
125
126 public void addFolderResources(long folderId,
127 boolean addCommunityPermissions, boolean addGuestPermissions)
128 throws com.liferay.portal.kernel.exception.PortalException,
129 com.liferay.portal.kernel.exception.SystemException;
130
131 public void addFolderResources(long folderId,
132 java.lang.String[] communityPermissions,
133 java.lang.String[] guestPermissions)
134 throws com.liferay.portal.kernel.exception.PortalException,
135 com.liferay.portal.kernel.exception.SystemException;
136
137 public void deleteFolder(
138 com.liferay.portlet.imagegallery.model.IGFolder folder)
139 throws com.liferay.portal.kernel.exception.PortalException,
140 com.liferay.portal.kernel.exception.SystemException;
141
142 public void deleteFolder(long folderId)
143 throws com.liferay.portal.kernel.exception.PortalException,
144 com.liferay.portal.kernel.exception.SystemException;
145
146 public void deleteFolders(long groupId)
147 throws com.liferay.portal.kernel.exception.PortalException,
148 com.liferay.portal.kernel.exception.SystemException;
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getCompanyFolders(
152 long companyId, int start, int end)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
156 public int getCompanyFoldersCount(long companyId)
157 throws com.liferay.portal.kernel.exception.SystemException;
158
159 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
160 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
161 long folderId)
162 throws com.liferay.portal.kernel.exception.PortalException,
163 com.liferay.portal.kernel.exception.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
167 long groupId, long parentFolderId, java.lang.String name)
168 throws com.liferay.portal.kernel.exception.PortalException,
169 com.liferay.portal.kernel.exception.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
173 long groupId)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
178 long groupId, long parentFolderId)
179 throws com.liferay.portal.kernel.exception.SystemException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
183 long groupId, long parentFolderId, int start, int end)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
187 public int getFoldersCount(long groupId, long parentFolderId)
188 throws com.liferay.portal.kernel.exception.SystemException;
189
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public void getSubfolderIds(java.util.List<Long> folderIds, long groupId,
192 long folderId)
193 throws com.liferay.portal.kernel.exception.SystemException;
194
195 public com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
196 long folderId, long parentFolderId, java.lang.String name,
197 java.lang.String description, boolean mergeWithParentFolder,
198 com.liferay.portal.service.ServiceContext serviceContext)
199 throws com.liferay.portal.kernel.exception.PortalException,
200 com.liferay.portal.kernel.exception.SystemException;
201 }