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