1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.imagegallery.service;
24  
25  
26  /**
27   * <a href="IGFolderLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * <p>
35   * This class provides static methods for the
36   * <code>com.liferay.portlet.imagegallery.service.IGFolderLocalService</code>
37   * bean. The static methods of this class calls the same methods of the bean
38   * instance. It's convenient to be able to just write one line to call a method
39   * on a bean instead of writing a lookup call and a method call.
40   * </p>
41   *
42   * <p>
43   * <code>com.liferay.portlet.imagegallery.service.IGFolderLocalServiceFactory</code>
44   * is responsible for the lookup of the bean.
45   * </p>
46   *
47   * @author Brian Wing Shun Chan
48   *
49   * @see com.liferay.portlet.imagegallery.service.IGFolderLocalService
50   * @see com.liferay.portlet.imagegallery.service.IGFolderLocalServiceFactory
51   *
52   */
53  public class IGFolderLocalServiceUtil {
54      public static com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
55          com.liferay.portlet.imagegallery.model.IGFolder model)
56          throws com.liferay.portal.SystemException {
57          IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
58  
59          return igFolderLocalService.addIGFolder(model);
60      }
61  
62      public static java.util.List dynamicQuery(
63          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
64          throws com.liferay.portal.SystemException {
65          IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
66  
67          return igFolderLocalService.dynamicQuery(queryInitializer);
68      }
69  
70      public static java.util.List dynamicQuery(
71          com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
72          int begin, int end) throws com.liferay.portal.SystemException {
73          IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
74  
75          return igFolderLocalService.dynamicQuery(queryInitializer, begin, end);
76      }
77  
78      public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
79          com.liferay.portlet.imagegallery.model.IGFolder model)
80          throws com.liferay.portal.SystemException {
81          IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
82  
83          return igFolderLocalService.updateIGFolder(model);
84      }
85  
86      public static com.liferay.portlet.imagegallery.service.persistence.IGFolderPersistence getIGFolderPersistence() {
87          IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
88  
89          return igFolderLocalService.getIGFolderPersistence();
90      }
91  
92      public static void setIGFolderPersistence(
93          com.liferay.portlet.imagegallery.service.persistence.IGFolderPersistence igFolderPersistence) {
94          IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
95  
96          igFolderLocalService.setIGFolderPersistence(igFolderPersistence);
97      }
98  
99      public static com.liferay.portlet.imagegallery.service.persistence.IGImagePersistence getIGImagePersistence() {
100         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
101 
102         return igFolderLocalService.getIGImagePersistence();
103     }
104 
105     public static void setIGImagePersistence(
106         com.liferay.portlet.imagegallery.service.persistence.IGImagePersistence igImagePersistence) {
107         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
108 
109         igFolderLocalService.setIGImagePersistence(igImagePersistence);
110     }
111 
112     public static com.liferay.portlet.imagegallery.service.persistence.IGImageFinder getIGImageFinder() {
113         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
114 
115         return igFolderLocalService.getIGImageFinder();
116     }
117 
118     public static void setIGImageFinder(
119         com.liferay.portlet.imagegallery.service.persistence.IGImageFinder igImageFinder) {
120         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
121 
122         igFolderLocalService.setIGImageFinder(igImageFinder);
123     }
124 
125     public static com.liferay.portal.service.persistence.ResourcePersistence getResourcePersistence() {
126         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
127 
128         return igFolderLocalService.getResourcePersistence();
129     }
130 
131     public static void setResourcePersistence(
132         com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence) {
133         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
134 
135         igFolderLocalService.setResourcePersistence(resourcePersistence);
136     }
137 
138     public static com.liferay.portal.service.persistence.ResourceFinder getResourceFinder() {
139         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
140 
141         return igFolderLocalService.getResourceFinder();
142     }
143 
144     public static void setResourceFinder(
145         com.liferay.portal.service.persistence.ResourceFinder resourceFinder) {
146         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
147 
148         igFolderLocalService.setResourceFinder(resourceFinder);
149     }
150 
151     public static com.liferay.portal.service.persistence.UserPersistence getUserPersistence() {
152         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
153 
154         return igFolderLocalService.getUserPersistence();
155     }
156 
157     public static void setUserPersistence(
158         com.liferay.portal.service.persistence.UserPersistence userPersistence) {
159         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
160 
161         igFolderLocalService.setUserPersistence(userPersistence);
162     }
163 
164     public static com.liferay.portal.service.persistence.UserFinder getUserFinder() {
165         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
166 
167         return igFolderLocalService.getUserFinder();
168     }
169 
170     public static void setUserFinder(
171         com.liferay.portal.service.persistence.UserFinder userFinder) {
172         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
173 
174         igFolderLocalService.setUserFinder(userFinder);
175     }
176 
177     public static com.liferay.portlet.tags.service.persistence.TagsEntryPersistence getTagsEntryPersistence() {
178         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
179 
180         return igFolderLocalService.getTagsEntryPersistence();
181     }
182 
183     public static void setTagsEntryPersistence(
184         com.liferay.portlet.tags.service.persistence.TagsEntryPersistence tagsEntryPersistence) {
185         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
186 
187         igFolderLocalService.setTagsEntryPersistence(tagsEntryPersistence);
188     }
189 
190     public static com.liferay.portlet.tags.service.persistence.TagsEntryFinder getTagsEntryFinder() {
191         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
192 
193         return igFolderLocalService.getTagsEntryFinder();
194     }
195 
196     public static void setTagsEntryFinder(
197         com.liferay.portlet.tags.service.persistence.TagsEntryFinder tagsEntryFinder) {
198         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
199 
200         igFolderLocalService.setTagsEntryFinder(tagsEntryFinder);
201     }
202 
203     public static void afterPropertiesSet() {
204         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
205 
206         igFolderLocalService.afterPropertiesSet();
207     }
208 
209     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
210         long userId, long plid, long parentFolderId, java.lang.String name,
211         java.lang.String description, boolean addCommunityPermissions,
212         boolean addGuestPermissions)
213         throws com.liferay.portal.PortalException, 
214             com.liferay.portal.SystemException {
215         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
216 
217         return igFolderLocalService.addFolder(userId, plid, parentFolderId,
218             name, description, addCommunityPermissions, addGuestPermissions);
219     }
220 
221     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
222         java.lang.String uuid, long userId, long plid, long parentFolderId,
223         java.lang.String name, java.lang.String description,
224         boolean addCommunityPermissions, boolean addGuestPermissions)
225         throws com.liferay.portal.PortalException, 
226             com.liferay.portal.SystemException {
227         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
228 
229         return igFolderLocalService.addFolder(uuid, userId, plid,
230             parentFolderId, name, description, addCommunityPermissions,
231             addGuestPermissions);
232     }
233 
234     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
235         long userId, long plid, long parentFolderId, java.lang.String name,
236         java.lang.String description, java.lang.String[] communityPermissions,
237         java.lang.String[] guestPermissions)
238         throws com.liferay.portal.PortalException, 
239             com.liferay.portal.SystemException {
240         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
241 
242         return igFolderLocalService.addFolder(userId, plid, parentFolderId,
243             name, description, communityPermissions, guestPermissions);
244     }
245 
246     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
247         java.lang.String uuid, long userId, long plid, long parentFolderId,
248         java.lang.String name, java.lang.String description,
249         java.lang.Boolean addCommunityPermissions,
250         java.lang.Boolean addGuestPermissions,
251         java.lang.String[] communityPermissions,
252         java.lang.String[] guestPermissions)
253         throws com.liferay.portal.PortalException, 
254             com.liferay.portal.SystemException {
255         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
256 
257         return igFolderLocalService.addFolder(uuid, userId, plid,
258             parentFolderId, name, description, addCommunityPermissions,
259             addGuestPermissions, communityPermissions, guestPermissions);
260     }
261 
262     public static com.liferay.portlet.imagegallery.model.IGFolder addFolderToGroup(
263         java.lang.String uuid, long userId, long groupId, long parentFolderId,
264         java.lang.String name, java.lang.String description,
265         java.lang.Boolean addCommunityPermissions,
266         java.lang.Boolean addGuestPermissions,
267         java.lang.String[] communityPermissions,
268         java.lang.String[] guestPermissions)
269         throws com.liferay.portal.PortalException, 
270             com.liferay.portal.SystemException {
271         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
272 
273         return igFolderLocalService.addFolderToGroup(uuid, userId, groupId,
274             parentFolderId, name, description, addCommunityPermissions,
275             addGuestPermissions, communityPermissions, guestPermissions);
276     }
277 
278     public static void addFolderResources(long folderId,
279         boolean addCommunityPermissions, boolean addGuestPermissions)
280         throws com.liferay.portal.PortalException, 
281             com.liferay.portal.SystemException {
282         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
283 
284         igFolderLocalService.addFolderResources(folderId,
285             addCommunityPermissions, addGuestPermissions);
286     }
287 
288     public static void addFolderResources(
289         com.liferay.portlet.imagegallery.model.IGFolder folder,
290         boolean addCommunityPermissions, boolean addGuestPermissions)
291         throws com.liferay.portal.PortalException, 
292             com.liferay.portal.SystemException {
293         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
294 
295         igFolderLocalService.addFolderResources(folder,
296             addCommunityPermissions, addGuestPermissions);
297     }
298 
299     public static void addFolderResources(long folderId,
300         java.lang.String[] communityPermissions,
301         java.lang.String[] guestPermissions)
302         throws com.liferay.portal.PortalException, 
303             com.liferay.portal.SystemException {
304         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
305 
306         igFolderLocalService.addFolderResources(folderId, communityPermissions,
307             guestPermissions);
308     }
309 
310     public static void addFolderResources(
311         com.liferay.portlet.imagegallery.model.IGFolder folder,
312         java.lang.String[] communityPermissions,
313         java.lang.String[] guestPermissions)
314         throws com.liferay.portal.PortalException, 
315             com.liferay.portal.SystemException {
316         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
317 
318         igFolderLocalService.addFolderResources(folder, communityPermissions,
319             guestPermissions);
320     }
321 
322     public static void deleteFolder(long folderId)
323         throws com.liferay.portal.PortalException, 
324             com.liferay.portal.SystemException {
325         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
326 
327         igFolderLocalService.deleteFolder(folderId);
328     }
329 
330     public static void deleteFolder(
331         com.liferay.portlet.imagegallery.model.IGFolder folder)
332         throws com.liferay.portal.PortalException, 
333             com.liferay.portal.SystemException {
334         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
335 
336         igFolderLocalService.deleteFolder(folder);
337     }
338 
339     public static void deleteFolders(long groupId)
340         throws com.liferay.portal.PortalException, 
341             com.liferay.portal.SystemException {
342         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
343 
344         igFolderLocalService.deleteFolders(groupId);
345     }
346 
347     public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
348         long folderId)
349         throws com.liferay.portal.PortalException, 
350             com.liferay.portal.SystemException {
351         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
352 
353         return igFolderLocalService.getFolder(folderId);
354     }
355 
356     public static java.util.List getFolders(long groupId)
357         throws com.liferay.portal.SystemException {
358         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
359 
360         return igFolderLocalService.getFolders(groupId);
361     }
362 
363     public static java.util.List getFolders(long groupId, long parentFolderId)
364         throws com.liferay.portal.SystemException {
365         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
366 
367         return igFolderLocalService.getFolders(groupId, parentFolderId);
368     }
369 
370     public static java.util.List getFolders(long groupId, long parentFolderId,
371         int begin, int end) throws com.liferay.portal.SystemException {
372         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
373 
374         return igFolderLocalService.getFolders(groupId, parentFolderId, begin,
375             end);
376     }
377 
378     public static int getFoldersCount(long groupId, long parentFolderId)
379         throws com.liferay.portal.SystemException {
380         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
381 
382         return igFolderLocalService.getFoldersCount(groupId, parentFolderId);
383     }
384 
385     public static void getSubfolderIds(java.util.List folderIds, long groupId,
386         long folderId) throws com.liferay.portal.SystemException {
387         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
388 
389         igFolderLocalService.getSubfolderIds(folderIds, groupId, folderId);
390     }
391 
392     public static void reIndex(java.lang.String[] ids)
393         throws com.liferay.portal.SystemException {
394         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
395 
396         igFolderLocalService.reIndex(ids);
397     }
398 
399     public static com.liferay.portal.kernel.search.Hits search(long companyId,
400         long groupId, long[] folderIds, java.lang.String keywords)
401         throws com.liferay.portal.SystemException {
402         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
403 
404         return igFolderLocalService.search(companyId, groupId, folderIds,
405             keywords);
406     }
407 
408     public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
409         long folderId, long parentFolderId, java.lang.String name,
410         java.lang.String description, boolean mergeWithParentFolder)
411         throws com.liferay.portal.PortalException, 
412             com.liferay.portal.SystemException {
413         IGFolderLocalService igFolderLocalService = IGFolderLocalServiceFactory.getService();
414 
415         return igFolderLocalService.updateFolder(folderId, parentFolderId,
416             name, description, mergeWithParentFolder);
417     }
418 }