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