1
22
23 package com.liferay.portlet.imagegallery.service;
24
25
51 public class IGFolderServiceUtil {
52 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
53 long plid, long parentFolderId, java.lang.String name,
54 java.lang.String description, boolean addCommunityPermissions,
55 boolean addGuestPermissions)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException, java.rmi.RemoteException {
58 IGFolderService igFolderService = IGFolderServiceFactory.getService();
59
60 return igFolderService.addFolder(plid, parentFolderId, name,
61 description, addCommunityPermissions, addGuestPermissions);
62 }
63
64 public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
65 long plid, long parentFolderId, java.lang.String name,
66 java.lang.String description, java.lang.String[] communityPermissions,
67 java.lang.String[] guestPermissions)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException, java.rmi.RemoteException {
70 IGFolderService igFolderService = IGFolderServiceFactory.getService();
71
72 return igFolderService.addFolder(plid, parentFolderId, name,
73 description, communityPermissions, guestPermissions);
74 }
75
76 public static void deleteFolder(long folderId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException, java.rmi.RemoteException {
79 IGFolderService igFolderService = IGFolderServiceFactory.getService();
80 igFolderService.deleteFolder(folderId);
81 }
82
83 public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
84 long folderId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException, java.rmi.RemoteException {
87 IGFolderService igFolderService = IGFolderServiceFactory.getService();
88
89 return igFolderService.getFolder(folderId);
90 }
91
92 public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
93 long folderId, long parentFolderId, java.lang.String name,
94 java.lang.String description, boolean mergeWithParentFolder)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException, java.rmi.RemoteException {
97 IGFolderService igFolderService = IGFolderServiceFactory.getService();
98
99 return igFolderService.updateFolder(folderId, parentFolderId, name,
100 description, mergeWithParentFolder);
101 }
102 }