001
014
015 package com.liferay.portlet.imagegallery.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class IGFolderLocalServiceUtil {
037
044 public static com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
045 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
046 throws com.liferay.portal.kernel.exception.SystemException {
047 return getService().addIGFolder(igFolder);
048 }
049
050
056 public static com.liferay.portlet.imagegallery.model.IGFolder createIGFolder(
057 long folderId) {
058 return getService().createIGFolder(folderId);
059 }
060
061
068 public static void deleteIGFolder(long folderId)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 getService().deleteIGFolder(folderId);
072 }
073
074
080 public static void deleteIGFolder(
081 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 getService().deleteIGFolder(igFolder);
084 }
085
086
093 @SuppressWarnings("rawtypes")
094 public static java.util.List dynamicQuery(
095 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096 throws com.liferay.portal.kernel.exception.SystemException {
097 return getService().dynamicQuery(dynamicQuery);
098 }
099
100
113 @SuppressWarnings("rawtypes")
114 public static java.util.List dynamicQuery(
115 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
116 int end) throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().dynamicQuery(dynamicQuery, start, end);
118 }
119
120
134 @SuppressWarnings("rawtypes")
135 public static java.util.List dynamicQuery(
136 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137 int end,
138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getService()
141 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
142 }
143
144
151 public static long dynamicQueryCount(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService().dynamicQueryCount(dynamicQuery);
155 }
156
157
165 public static com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
166 long folderId)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException {
169 return getService().getIGFolder(folderId);
170 }
171
172
181 public static com.liferay.portlet.imagegallery.model.IGFolder getIGFolderByUuidAndGroupId(
182 java.lang.String uuid, long groupId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getIGFolderByUuidAndGroupId(uuid, groupId);
186 }
187
188
200 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
201 int start, int end)
202 throws com.liferay.portal.kernel.exception.SystemException {
203 return getService().getIGFolders(start, end);
204 }
205
206
212 public static int getIGFoldersCount()
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getService().getIGFoldersCount();
215 }
216
217
224 public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
225 com.liferay.portlet.imagegallery.model.IGFolder igFolder)
226 throws com.liferay.portal.kernel.exception.SystemException {
227 return getService().updateIGFolder(igFolder);
228 }
229
230
238 public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
239 com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
240 throws com.liferay.portal.kernel.exception.SystemException {
241 return getService().updateIGFolder(igFolder, merge);
242 }
243
244 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
245 long userId, long parentFolderId, java.lang.String name,
246 java.lang.String description,
247 com.liferay.portal.service.ServiceContext serviceContext)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException {
250 return getService()
251 .addFolder(userId, parentFolderId, name, description,
252 serviceContext);
253 }
254
255 public static void addFolderResources(
256 com.liferay.portlet.imagegallery.model.IGFolder folder,
257 boolean addCommunityPermissions, boolean addGuestPermissions)
258 throws com.liferay.portal.kernel.exception.PortalException,
259 com.liferay.portal.kernel.exception.SystemException {
260 getService()
261 .addFolderResources(folder, addCommunityPermissions,
262 addGuestPermissions);
263 }
264
265 public static void addFolderResources(
266 com.liferay.portlet.imagegallery.model.IGFolder folder,
267 java.lang.String[] communityPermissions,
268 java.lang.String[] guestPermissions)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException {
271 getService()
272 .addFolderResources(folder, communityPermissions, guestPermissions);
273 }
274
275 public static void addFolderResources(long folderId,
276 boolean addCommunityPermissions, boolean addGuestPermissions)
277 throws com.liferay.portal.kernel.exception.PortalException,
278 com.liferay.portal.kernel.exception.SystemException {
279 getService()
280 .addFolderResources(folderId, addCommunityPermissions,
281 addGuestPermissions);
282 }
283
284 public static void addFolderResources(long folderId,
285 java.lang.String[] communityPermissions,
286 java.lang.String[] guestPermissions)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException {
289 getService()
290 .addFolderResources(folderId, communityPermissions, guestPermissions);
291 }
292
293 public static void deleteFolder(
294 com.liferay.portlet.imagegallery.model.IGFolder folder)
295 throws com.liferay.portal.kernel.exception.PortalException,
296 com.liferay.portal.kernel.exception.SystemException {
297 getService().deleteFolder(folder);
298 }
299
300 public static void deleteFolder(long folderId)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException {
303 getService().deleteFolder(folderId);
304 }
305
306 public static void deleteFolders(long groupId)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException {
309 getService().deleteFolders(groupId);
310 }
311
312 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getCompanyFolders(
313 long companyId, int start, int end)
314 throws com.liferay.portal.kernel.exception.SystemException {
315 return getService().getCompanyFolders(companyId, start, end);
316 }
317
318 public static int getCompanyFoldersCount(long companyId)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 return getService().getCompanyFoldersCount(companyId);
321 }
322
323 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
324 long folderId)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException {
327 return getService().getFolder(folderId);
328 }
329
330 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
331 long groupId, long parentFolderId, java.lang.String name)
332 throws com.liferay.portal.kernel.exception.PortalException,
333 com.liferay.portal.kernel.exception.SystemException {
334 return getService().getFolder(groupId, parentFolderId, name);
335 }
336
337 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
338 long groupId)
339 throws com.liferay.portal.kernel.exception.SystemException {
340 return getService().getFolders(groupId);
341 }
342
343 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
344 long groupId, long parentFolderId)
345 throws com.liferay.portal.kernel.exception.SystemException {
346 return getService().getFolders(groupId, parentFolderId);
347 }
348
349 public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
350 long groupId, long parentFolderId, int start, int end)
351 throws com.liferay.portal.kernel.exception.SystemException {
352 return getService().getFolders(groupId, parentFolderId, start, end);
353 }
354
355 public static int getFoldersCount(long groupId, long parentFolderId)
356 throws com.liferay.portal.kernel.exception.SystemException {
357 return getService().getFoldersCount(groupId, parentFolderId);
358 }
359
360 public static void getSubfolderIds(
361 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 getService().getSubfolderIds(folderIds, groupId, folderId);
364 }
365
366 public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
367 long folderId, long parentFolderId, java.lang.String name,
368 java.lang.String description, boolean mergeWithParentFolder,
369 com.liferay.portal.service.ServiceContext serviceContext)
370 throws com.liferay.portal.kernel.exception.PortalException,
371 com.liferay.portal.kernel.exception.SystemException {
372 return getService()
373 .updateFolder(folderId, parentFolderId, name, description,
374 mergeWithParentFolder, serviceContext);
375 }
376
377 public static IGFolderLocalService getService() {
378 if (_service == null) {
379 _service = (IGFolderLocalService)PortalBeanLocatorUtil.locate(IGFolderLocalService.class.getName());
380 }
381
382 return _service;
383 }
384
385 public void setService(IGFolderLocalService service) {
386 _service = service;
387 }
388
389 private static IGFolderLocalService _service;
390 }