1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.kernel.exception.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.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.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.kernel.exception.SystemException {
60          getService().deleteIGFolder(igFolder);
61      }
62  
63      @SuppressWarnings("unchecked")
64      public static java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return getService().dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("unchecked")
71      public static java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException {
74          return getService().dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("unchecked")
78      public static java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException {
83          return getService()
84                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85      }
86  
87      public static long dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().dynamicQueryCount(dynamicQuery);
91      }
92  
93      public static com.liferay.portlet.imagegallery.model.IGFolder getIGFolder(
94          long folderId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getIGFolder(folderId);
98      }
99  
100     public static com.liferay.portlet.imagegallery.model.IGFolder getIGFolderByUuidAndGroupId(
101         java.lang.String uuid, long groupId)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException {
104         return getService().getIGFolderByUuidAndGroupId(uuid, groupId);
105     }
106 
107     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getIGFolders(
108         int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException {
110         return getService().getIGFolders(start, end);
111     }
112 
113     public static int getIGFoldersCount()
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getService().getIGFoldersCount();
116     }
117 
118     public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
119         com.liferay.portlet.imagegallery.model.IGFolder igFolder)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getService().updateIGFolder(igFolder);
122     }
123 
124     public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
125         com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
126         throws com.liferay.portal.kernel.exception.SystemException {
127         return getService().updateIGFolder(igFolder, merge);
128     }
129 
130     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
131         java.lang.String uuid, long userId, long parentFolderId,
132         java.lang.String name, java.lang.String description,
133         com.liferay.portal.service.ServiceContext serviceContext)
134         throws com.liferay.portal.kernel.exception.PortalException,
135             com.liferay.portal.kernel.exception.SystemException {
136         return getService()
137                    .addFolder(uuid, userId, parentFolderId, name, description,
138             serviceContext);
139     }
140 
141     public static void addFolderResources(
142         com.liferay.portlet.imagegallery.model.IGFolder folder,
143         boolean addCommunityPermissions, boolean addGuestPermissions)
144         throws com.liferay.portal.kernel.exception.PortalException,
145             com.liferay.portal.kernel.exception.SystemException {
146         getService()
147             .addFolderResources(folder, addCommunityPermissions,
148             addGuestPermissions);
149     }
150 
151     public static void addFolderResources(
152         com.liferay.portlet.imagegallery.model.IGFolder folder,
153         java.lang.String[] communityPermissions,
154         java.lang.String[] guestPermissions)
155         throws com.liferay.portal.kernel.exception.PortalException,
156             com.liferay.portal.kernel.exception.SystemException {
157         getService()
158             .addFolderResources(folder, communityPermissions, guestPermissions);
159     }
160 
161     public static void addFolderResources(long folderId,
162         boolean addCommunityPermissions, boolean addGuestPermissions)
163         throws com.liferay.portal.kernel.exception.PortalException,
164             com.liferay.portal.kernel.exception.SystemException {
165         getService()
166             .addFolderResources(folderId, addCommunityPermissions,
167             addGuestPermissions);
168     }
169 
170     public static void addFolderResources(long folderId,
171         java.lang.String[] communityPermissions,
172         java.lang.String[] guestPermissions)
173         throws com.liferay.portal.kernel.exception.PortalException,
174             com.liferay.portal.kernel.exception.SystemException {
175         getService()
176             .addFolderResources(folderId, communityPermissions, guestPermissions);
177     }
178 
179     public static void deleteFolder(
180         com.liferay.portlet.imagegallery.model.IGFolder folder)
181         throws com.liferay.portal.kernel.exception.PortalException,
182             com.liferay.portal.kernel.exception.SystemException {
183         getService().deleteFolder(folder);
184     }
185 
186     public static void deleteFolder(long folderId)
187         throws com.liferay.portal.kernel.exception.PortalException,
188             com.liferay.portal.kernel.exception.SystemException {
189         getService().deleteFolder(folderId);
190     }
191 
192     public static void deleteFolders(long groupId)
193         throws com.liferay.portal.kernel.exception.PortalException,
194             com.liferay.portal.kernel.exception.SystemException {
195         getService().deleteFolders(groupId);
196     }
197 
198     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getCompanyFolders(
199         long companyId, int start, int end)
200         throws com.liferay.portal.kernel.exception.SystemException {
201         return getService().getCompanyFolders(companyId, start, end);
202     }
203 
204     public static int getCompanyFoldersCount(long companyId)
205         throws com.liferay.portal.kernel.exception.SystemException {
206         return getService().getCompanyFoldersCount(companyId);
207     }
208 
209     public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
210         long folderId)
211         throws com.liferay.portal.kernel.exception.PortalException,
212             com.liferay.portal.kernel.exception.SystemException {
213         return getService().getFolder(folderId);
214     }
215 
216     public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
217         long groupId, long parentFolderId, java.lang.String name)
218         throws com.liferay.portal.kernel.exception.PortalException,
219             com.liferay.portal.kernel.exception.SystemException {
220         return getService().getFolder(groupId, parentFolderId, name);
221     }
222 
223     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
224         long groupId)
225         throws com.liferay.portal.kernel.exception.SystemException {
226         return getService().getFolders(groupId);
227     }
228 
229     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
230         long groupId, long parentFolderId)
231         throws com.liferay.portal.kernel.exception.SystemException {
232         return getService().getFolders(groupId, parentFolderId);
233     }
234 
235     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
236         long groupId, long parentFolderId, int start, int end)
237         throws com.liferay.portal.kernel.exception.SystemException {
238         return getService().getFolders(groupId, parentFolderId, start, end);
239     }
240 
241     public static int getFoldersCount(long groupId, long parentFolderId)
242         throws com.liferay.portal.kernel.exception.SystemException {
243         return getService().getFoldersCount(groupId, parentFolderId);
244     }
245 
246     public static void getSubfolderIds(
247         java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
248         throws com.liferay.portal.kernel.exception.SystemException {
249         getService().getSubfolderIds(folderIds, groupId, folderId);
250     }
251 
252     public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
253         long folderId, long parentFolderId, java.lang.String name,
254         java.lang.String description, boolean mergeWithParentFolder,
255         com.liferay.portal.service.ServiceContext serviceContext)
256         throws com.liferay.portal.kernel.exception.PortalException,
257             com.liferay.portal.kernel.exception.SystemException {
258         return getService()
259                    .updateFolder(folderId, parentFolderId, name, description,
260             mergeWithParentFolder, serviceContext);
261     }
262 
263     public static IGFolderLocalService getService() {
264         if (_service == null) {
265             _service = (IGFolderLocalService)PortalBeanLocatorUtil.locate(IGFolderLocalService.class.getName());
266         }
267 
268         return _service;
269     }
270 
271     public void setService(IGFolderLocalService service) {
272         _service = service;
273     }
274 
275     private static IGFolderLocalService _service;
276 }