1
14
15 package com.liferay.portlet.imagegallery.service;
16
17 import com.liferay.portal.PortalException;
18 import com.liferay.portal.SystemException;
19 import com.liferay.portal.kernel.annotation.Isolation;
20 import com.liferay.portal.kernel.annotation.Propagation;
21 import com.liferay.portal.kernel.annotation.Transactional;
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.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.PortalException,
59 com.liferay.portal.SystemException;
60
61 public void deleteIGFolder(
62 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
63 throws com.liferay.portal.SystemException;
64
65 public java.util.List<Object> dynamicQuery(
66 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
67 throws com.liferay.portal.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.SystemException;
72
73 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
74 public com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
75 long folderId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
81 int start, int end) throws com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public int getIGFoldersCount() throws com.liferay.portal.SystemException;
85
86 public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
87 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
88 throws com.liferay.portal.SystemException;
89
90 public com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
91 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
92 throws com.liferay.portal.SystemException;
93
94 public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
95 long userId, long plid, long parentFolderId, java.lang.String name,
96 java.lang.String description, boolean addCommunityPermissions,
97 boolean addGuestPermissions)
98 throws com.liferay.portal.PortalException,
99 com.liferay.portal.SystemException;
100
101 public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
102 long userId, long plid, long parentFolderId, java.lang.String name,
103 java.lang.String description, java.lang.String[] communityPermissions,
104 java.lang.String[] guestPermissions)
105 throws com.liferay.portal.PortalException,
106 com.liferay.portal.SystemException;
107
108 public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
109 java.lang.String uuid, long userId, long plid, long parentFolderId,
110 java.lang.String name, java.lang.String description,
111 boolean addCommunityPermissions, boolean addGuestPermissions)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException;
114
115 public com.liferay.portlet.imagegallery.model.IGFolder addFolder(
116 java.lang.String uuid, long userId, long plid, long parentFolderId,
117 java.lang.String name, java.lang.String description,
118 java.lang.Boolean addCommunityPermissions,
119 java.lang.Boolean addGuestPermissions,
120 java.lang.String[] communityPermissions,
121 java.lang.String[] guestPermissions)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException;
124
125 public void addFolderResources(
126 com.liferay.portlet.imagegallery.model.IGFolder folder,
127 boolean addCommunityPermissions, boolean addGuestPermissions)
128 throws com.liferay.portal.PortalException,
129 com.liferay.portal.SystemException;
130
131 public void addFolderResources(
132 com.liferay.portlet.imagegallery.model.IGFolder folder,
133 java.lang.String[] communityPermissions,
134 java.lang.String[] guestPermissions)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException;
137
138 public void addFolderResources(long folderId,
139 boolean addCommunityPermissions, boolean addGuestPermissions)
140 throws com.liferay.portal.PortalException,
141 com.liferay.portal.SystemException;
142
143 public void addFolderResources(long folderId,
144 java.lang.String[] communityPermissions,
145 java.lang.String[] guestPermissions)
146 throws com.liferay.portal.PortalException,
147 com.liferay.portal.SystemException;
148
149 public com.liferay.portlet.imagegallery.model.IGFolder addFolderToGroup(
150 java.lang.String uuid, long userId, long groupId, long parentFolderId,
151 java.lang.String name, java.lang.String description,
152 java.lang.Boolean addCommunityPermissions,
153 java.lang.Boolean addGuestPermissions,
154 java.lang.String[] communityPermissions,
155 java.lang.String[] guestPermissions)
156 throws com.liferay.portal.PortalException,
157 com.liferay.portal.SystemException;
158
159 public void deleteFolder(
160 com.liferay.portlet.imagegallery.model.IGFolder folder)
161 throws com.liferay.portal.PortalException,
162 com.liferay.portal.SystemException;
163
164 public void deleteFolder(long folderId)
165 throws com.liferay.portal.PortalException,
166 com.liferay.portal.SystemException;
167
168 public void deleteFolders(long groupId)
169 throws com.liferay.portal.PortalException,
170 com.liferay.portal.SystemException;
171
172 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
173 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
174 long folderId)
175 throws com.liferay.portal.PortalException,
176 com.liferay.portal.SystemException;
177
178 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
179 public com.liferay.portlet.imagegallery.model.IGFolder getFolder(
180 long groupId, long parentFolderId, java.lang.String name)
181 throws com.liferay.portal.PortalException,
182 com.liferay.portal.SystemException;
183
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
186 long groupId) throws com.liferay.portal.SystemException;
187
188 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
189 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
190 long groupId, long parentFolderId)
191 throws com.liferay.portal.SystemException;
192
193 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
194 public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
195 long groupId, long parentFolderId, int start, int end)
196 throws com.liferay.portal.SystemException;
197
198 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
199 public int getFoldersCount(long groupId, long parentFolderId)
200 throws com.liferay.portal.SystemException;
201
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public void getSubfolderIds(java.util.List<Long> folderIds, long groupId,
204 long folderId) throws com.liferay.portal.SystemException;
205
206 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
207 public void reIndex(java.lang.String[] ids)
208 throws com.liferay.portal.SystemException;
209
210 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
211 public com.liferay.portal.kernel.search.Hits search(long companyId,
212 long groupId, long[] folderIds, java.lang.String keywords, int start,
213 int end) throws com.liferay.portal.SystemException;
214
215 public com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
216 long folderId, long parentFolderId, java.lang.String name,
217 java.lang.String description, boolean mergeWithParentFolder)
218 throws com.liferay.portal.PortalException,
219 com.liferay.portal.SystemException;
220 }