1
22
23 package com.liferay.portlet.imagegallery.service;
24
25
26
46 public class IGFolderLocalServiceUtil {
47 public static com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
48 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
49 throws com.liferay.portal.SystemException {
50 return getService().addIGFolder(igFolder);
51 }
52
53 public static com.liferay.portlet.imagegallery.model.IGFolder createIGFolder(
54 long folderId) {
55 return getService().createIGFolder(folderId);
56 }
57
58 public static void deleteIGFolder(long folderId)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException {
61 getService().deleteIGFolder(folderId);
62 }
63
64 public static void deleteIGFolder(
65 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
66 throws com.liferay.portal.SystemException {
67 getService().deleteIGFolder(igFolder);
68 }
69
70 public static java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72 throws com.liferay.portal.SystemException {
73 return getService().dynamicQuery(dynamicQuery);
74 }
75
76 public static java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException {
79 return getService().dynamicQuery(dynamicQuery, start, end);
80 }
81
82 public static com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
83 long folderId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException {
86 return getService().getIGFolder(folderId);
87 }
88
89 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
90 int start, int end) throws com.liferay.portal.SystemException {
91 return getService().getIGFolders(start, end);
92 }
93
94 public static int getIGFoldersCount()
95 throws com.liferay.portal.SystemException {
96 return getService().getIGFoldersCount();
97 }
98
99 public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
100 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
101 throws com.liferay.portal.SystemException {
102 return getService().updateIGFolder(igFolder);
103 }
104
105 public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
106 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
107 throws com.liferay.portal.SystemException {
108 return getService().updateIGFolder(igFolder, merge);
109 }
110
111 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
112 long userId, long plid, long parentFolderId, java.lang.String name,
113 java.lang.String description, boolean addCommunityPermissions,
114 boolean addGuestPermissions)
115 throws com.liferay.portal.PortalException,
116 com.liferay.portal.SystemException {
117 return getService()
118 .addFolder(userId, plid, parentFolderId, name, description,
119 addCommunityPermissions, addGuestPermissions);
120 }
121
122 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
123 java.lang.String uuid, long userId, long plid, long parentFolderId,
124 java.lang.String name, java.lang.String description,
125 boolean addCommunityPermissions, boolean addGuestPermissions)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException {
128 return getService()
129 .addFolder(uuid, userId, plid, parentFolderId, name,
130 description, addCommunityPermissions, addGuestPermissions);
131 }
132
133 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
134 long userId, long plid, long parentFolderId, java.lang.String name,
135 java.lang.String description, java.lang.String[] communityPermissions,
136 java.lang.String[] guestPermissions)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException {
139 return getService()
140 .addFolder(userId, plid, parentFolderId, name, description,
141 communityPermissions, guestPermissions);
142 }
143
144 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
145 java.lang.String uuid, long userId, long plid, long parentFolderId,
146 java.lang.String name, java.lang.String description,
147 java.lang.Boolean addCommunityPermissions,
148 java.lang.Boolean addGuestPermissions,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 return getService()
154 .addFolder(uuid, userId, plid, parentFolderId, name,
155 description, addCommunityPermissions, addGuestPermissions,
156 communityPermissions, guestPermissions);
157 }
158
159 public static com.liferay.portlet.imagegallery.model.IGFolder addFolderToGroup(
160 java.lang.String uuid, long userId, long groupId, long parentFolderId,
161 java.lang.String name, java.lang.String description,
162 java.lang.Boolean addCommunityPermissions,
163 java.lang.Boolean addGuestPermissions,
164 java.lang.String[] communityPermissions,
165 java.lang.String[] guestPermissions)
166 throws com.liferay.portal.PortalException,
167 com.liferay.portal.SystemException {
168 return getService()
169 .addFolderToGroup(uuid, userId, groupId, parentFolderId,
170 name, description, addCommunityPermissions, addGuestPermissions,
171 communityPermissions, guestPermissions);
172 }
173
174 public static void addFolderResources(long folderId,
175 boolean addCommunityPermissions, boolean addGuestPermissions)
176 throws com.liferay.portal.PortalException,
177 com.liferay.portal.SystemException {
178 getService()
179 .addFolderResources(folderId, addCommunityPermissions,
180 addGuestPermissions);
181 }
182
183 public static void addFolderResources(
184 com.liferay.portlet.imagegallery.model.IGFolder folder,
185 boolean addCommunityPermissions, boolean addGuestPermissions)
186 throws com.liferay.portal.PortalException,
187 com.liferay.portal.SystemException {
188 getService()
189 .addFolderResources(folder, addCommunityPermissions,
190 addGuestPermissions);
191 }
192
193 public static void addFolderResources(long folderId,
194 java.lang.String[] communityPermissions,
195 java.lang.String[] guestPermissions)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException {
198 getService()
199 .addFolderResources(folderId, communityPermissions, guestPermissions);
200 }
201
202 public static void addFolderResources(
203 com.liferay.portlet.imagegallery.model.IGFolder folder,
204 java.lang.String[] communityPermissions,
205 java.lang.String[] guestPermissions)
206 throws com.liferay.portal.PortalException,
207 com.liferay.portal.SystemException {
208 getService()
209 .addFolderResources(folder, communityPermissions, guestPermissions);
210 }
211
212 public static void deleteFolder(long folderId)
213 throws com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException {
215 getService().deleteFolder(folderId);
216 }
217
218 public static void deleteFolder(
219 com.liferay.portlet.imagegallery.model.IGFolder folder)
220 throws com.liferay.portal.PortalException,
221 com.liferay.portal.SystemException {
222 getService().deleteFolder(folder);
223 }
224
225 public static void deleteFolders(long groupId)
226 throws com.liferay.portal.PortalException,
227 com.liferay.portal.SystemException {
228 getService().deleteFolders(groupId);
229 }
230
231 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
232 long folderId)
233 throws com.liferay.portal.PortalException,
234 com.liferay.portal.SystemException {
235 return getService().getFolder(folderId);
236 }
237
238 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
239 long groupId, long parentFolderId, java.lang.String name)
240 throws com.liferay.portal.PortalException,
241 com.liferay.portal.SystemException {
242 return getService().getFolder(groupId, parentFolderId, name);
243 }
244
245 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
246 long groupId) throws com.liferay.portal.SystemException {
247 return getService().getFolders(groupId);
248 }
249
250 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
251 long groupId, long parentFolderId)
252 throws com.liferay.portal.SystemException {
253 return getService().getFolders(groupId, parentFolderId);
254 }
255
256 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
257 long groupId, long parentFolderId, int start, int end)
258 throws com.liferay.portal.SystemException {
259 return getService().getFolders(groupId, parentFolderId, start, end);
260 }
261
262 public static int getFoldersCount(long groupId, long parentFolderId)
263 throws com.liferay.portal.SystemException {
264 return getService().getFoldersCount(groupId, parentFolderId);
265 }
266
267 public static void getSubfolderIds(java.util.List<Long> folderIds,
268 long groupId, long folderId) throws com.liferay.portal.SystemException {
269 getService().getSubfolderIds(folderIds, groupId, folderId);
270 }
271
272 public static void reIndex(java.lang.String[] ids)
273 throws com.liferay.portal.SystemException {
274 getService().reIndex(ids);
275 }
276
277 public static com.liferay.portal.kernel.search.Hits search(long companyId,
278 long groupId, long[] folderIds, java.lang.String keywords, int start,
279 int end) throws com.liferay.portal.SystemException {
280 return getService()
281 .search(companyId, groupId, folderIds, keywords, start, end);
282 }
283
284 public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
285 long folderId, long parentFolderId, java.lang.String name,
286 java.lang.String description, boolean mergeWithParentFolder)
287 throws com.liferay.portal.PortalException,
288 com.liferay.portal.SystemException {
289 return getService()
290 .updateFolder(folderId, parentFolderId, name, description,
291 mergeWithParentFolder);
292 }
293
294 public static IGFolderLocalService getService() {
295 if (_service == null) {
296 throw new RuntimeException("IGFolderLocalService is not set");
297 }
298
299 return _service;
300 }
301
302 public void setService(IGFolderLocalService service) {
303 _service = service;
304 }
305
306 private static IGFolderLocalService _service;
307 }