1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portlet.imagegallery.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="IGFolderLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * <p>
28   * This class provides static methods for the
29   * {@link IGFolderLocalService} bean. The static methods of
30   * this class calls the same methods of the bean instance. It's convenient to be
31   * able to just write one line to call a method on a bean instead of writing a
32   * lookup call and a method call.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       IGFolderLocalService
37   * @generated
38   */
39  public class IGFolderLocalServiceUtil {
40      public static com.liferay.portlet.imagegallery.model.IGFolder addIGFolder(
41          com.liferay.portlet.imagegallery.model.IGFolder igFolder)
42          throws com.liferay.portal.SystemException {
43          return getService().addIGFolder(igFolder);
44      }
45  
46      public static com.liferay.portlet.imagegallery.model.IGFolder createIGFolder(
47          long folderId) {
48          return getService().createIGFolder(folderId);
49      }
50  
51      public static void deleteIGFolder(long folderId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deleteIGFolder(folderId);
55      }
56  
57      public static void deleteIGFolder(
58          com.liferay.portlet.imagegallery.model.IGFolder igFolder)
59          throws com.liferay.portal.SystemException {
60          getService().deleteIGFolder(igFolder);
61      }
62  
63      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.SystemException {
66          return getService().dynamicQuery(dynamicQuery);
67      }
68  
69      public static java.util.List<Object> dynamicQuery(
70          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
71          int end) throws com.liferay.portal.SystemException {
72          return getService().dynamicQuery(dynamicQuery, start, end);
73      }
74  
75      public static com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
76          long folderId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return getService().getIGFolder(folderId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return getService().getIGFolders(start, end);
85      }
86  
87      public static int getIGFoldersCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getIGFoldersCount();
90      }
91  
92      public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
93          com.liferay.portlet.imagegallery.model.IGFolder igFolder)
94          throws com.liferay.portal.SystemException {
95          return getService().updateIGFolder(igFolder);
96      }
97  
98      public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
99          com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
100         throws com.liferay.portal.SystemException {
101         return getService().updateIGFolder(igFolder, merge);
102     }
103 
104     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
105         long userId, long plid, long parentFolderId, java.lang.String name,
106         java.lang.String description, boolean addCommunityPermissions,
107         boolean addGuestPermissions)
108         throws com.liferay.portal.PortalException,
109             com.liferay.portal.SystemException {
110         return getService()
111                    .addFolder(userId, plid, parentFolderId, name, description,
112             addCommunityPermissions, addGuestPermissions);
113     }
114 
115     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
116         long userId, long plid, long parentFolderId, java.lang.String name,
117         java.lang.String description, java.lang.String[] communityPermissions,
118         java.lang.String[] guestPermissions)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         return getService()
122                    .addFolder(userId, plid, parentFolderId, name, description,
123             communityPermissions, guestPermissions);
124     }
125 
126     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
127         java.lang.String uuid, long userId, long plid, long parentFolderId,
128         java.lang.String name, java.lang.String description,
129         boolean addCommunityPermissions, boolean addGuestPermissions)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException {
132         return getService()
133                    .addFolder(uuid, userId, plid, parentFolderId, name,
134             description, addCommunityPermissions, addGuestPermissions);
135     }
136 
137     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
138         java.lang.String uuid, long userId, long plid, long parentFolderId,
139         java.lang.String name, java.lang.String description,
140         java.lang.Boolean addCommunityPermissions,
141         java.lang.Boolean addGuestPermissions,
142         java.lang.String[] communityPermissions,
143         java.lang.String[] guestPermissions)
144         throws com.liferay.portal.PortalException,
145             com.liferay.portal.SystemException {
146         return getService()
147                    .addFolder(uuid, userId, plid, parentFolderId, name,
148             description, addCommunityPermissions, addGuestPermissions,
149             communityPermissions, guestPermissions);
150     }
151 
152     public static void addFolderResources(
153         com.liferay.portlet.imagegallery.model.IGFolder folder,
154         boolean addCommunityPermissions, boolean addGuestPermissions)
155         throws com.liferay.portal.PortalException,
156             com.liferay.portal.SystemException {
157         getService()
158             .addFolderResources(folder, addCommunityPermissions,
159             addGuestPermissions);
160     }
161 
162     public static void addFolderResources(
163         com.liferay.portlet.imagegallery.model.IGFolder folder,
164         java.lang.String[] communityPermissions,
165         java.lang.String[] guestPermissions)
166         throws com.liferay.portal.PortalException,
167             com.liferay.portal.SystemException {
168         getService()
169             .addFolderResources(folder, communityPermissions, guestPermissions);
170     }
171 
172     public static void addFolderResources(long folderId,
173         boolean addCommunityPermissions, boolean addGuestPermissions)
174         throws com.liferay.portal.PortalException,
175             com.liferay.portal.SystemException {
176         getService()
177             .addFolderResources(folderId, addCommunityPermissions,
178             addGuestPermissions);
179     }
180 
181     public static void addFolderResources(long folderId,
182         java.lang.String[] communityPermissions,
183         java.lang.String[] guestPermissions)
184         throws com.liferay.portal.PortalException,
185             com.liferay.portal.SystemException {
186         getService()
187             .addFolderResources(folderId, communityPermissions, guestPermissions);
188     }
189 
190     public static com.liferay.portlet.imagegallery.model.IGFolder addFolderToGroup(
191         java.lang.String uuid, long userId, long groupId, long parentFolderId,
192         java.lang.String name, java.lang.String description,
193         java.lang.Boolean addCommunityPermissions,
194         java.lang.Boolean addGuestPermissions,
195         java.lang.String[] communityPermissions,
196         java.lang.String[] guestPermissions)
197         throws com.liferay.portal.PortalException,
198             com.liferay.portal.SystemException {
199         return getService()
200                    .addFolderToGroup(uuid, userId, groupId, parentFolderId,
201             name, description, addCommunityPermissions, addGuestPermissions,
202             communityPermissions, guestPermissions);
203     }
204 
205     public static void deleteFolder(
206         com.liferay.portlet.imagegallery.model.IGFolder folder)
207         throws com.liferay.portal.PortalException,
208             com.liferay.portal.SystemException {
209         getService().deleteFolder(folder);
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 deleteFolders(long groupId)
219         throws com.liferay.portal.PortalException,
220             com.liferay.portal.SystemException {
221         getService().deleteFolders(groupId);
222     }
223 
224     public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
225         long folderId)
226         throws com.liferay.portal.PortalException,
227             com.liferay.portal.SystemException {
228         return getService().getFolder(folderId);
229     }
230 
231     public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
232         long groupId, long parentFolderId, java.lang.String name)
233         throws com.liferay.portal.PortalException,
234             com.liferay.portal.SystemException {
235         return getService().getFolder(groupId, parentFolderId, name);
236     }
237 
238     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
239         long groupId) throws com.liferay.portal.SystemException {
240         return getService().getFolders(groupId);
241     }
242 
243     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
244         long groupId, long parentFolderId)
245         throws com.liferay.portal.SystemException {
246         return getService().getFolders(groupId, parentFolderId);
247     }
248 
249     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
250         long groupId, long parentFolderId, int start, int end)
251         throws com.liferay.portal.SystemException {
252         return getService().getFolders(groupId, parentFolderId, start, end);
253     }
254 
255     public static int getFoldersCount(long groupId, long parentFolderId)
256         throws com.liferay.portal.SystemException {
257         return getService().getFoldersCount(groupId, parentFolderId);
258     }
259 
260     public static void getSubfolderIds(java.util.List<Long> folderIds,
261         long groupId, long folderId) throws com.liferay.portal.SystemException {
262         getService().getSubfolderIds(folderIds, groupId, folderId);
263     }
264 
265     public static void reIndex(java.lang.String[] ids)
266         throws com.liferay.portal.SystemException {
267         getService().reIndex(ids);
268     }
269 
270     public static com.liferay.portal.kernel.search.Hits search(long companyId,
271         long groupId, long[] folderIds, java.lang.String keywords, int start,
272         int end) throws com.liferay.portal.SystemException {
273         return getService()
274                    .search(companyId, groupId, folderIds, keywords, start, end);
275     }
276 
277     public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
278         long folderId, long parentFolderId, java.lang.String name,
279         java.lang.String description, boolean mergeWithParentFolder)
280         throws com.liferay.portal.PortalException,
281             com.liferay.portal.SystemException {
282         return getService()
283                    .updateFolder(folderId, parentFolderId, name, description,
284             mergeWithParentFolder);
285     }
286 
287     public static IGFolderLocalService getService() {
288         if (_service == null) {
289             _service = (IGFolderLocalService)PortalBeanLocatorUtil.locate(IGFolderLocalService.class.getName());
290         }
291 
292         return _service;
293     }
294 
295     public void setService(IGFolderLocalService service) {
296         _service = service;
297     }
298 
299     private static IGFolderLocalService _service;
300 }