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      public static java.util.List<Object> dynamicQuery(
64          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
65          throws com.liferay.portal.kernel.exception.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.kernel.exception.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.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.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)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getIGFolders(start, end);
86      }
87  
88      public static int getIGFoldersCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getIGFoldersCount();
91      }
92  
93      public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
94          com.liferay.portlet.imagegallery.model.IGFolder igFolder)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateIGFolder(igFolder);
97      }
98  
99      public static com.liferay.portlet.imagegallery.model.IGFolder updateIGFolder(
100         com.liferay.portlet.imagegallery.model.IGFolder igFolder, boolean merge)
101         throws com.liferay.portal.kernel.exception.SystemException {
102         return getService().updateIGFolder(igFolder, merge);
103     }
104 
105     public static com.liferay.portlet.imagegallery.model.IGFolder addFolder(
106         java.lang.String uuid, long userId, long parentFolderId,
107         java.lang.String name, java.lang.String description,
108         com.liferay.portal.service.ServiceContext serviceContext)
109         throws com.liferay.portal.kernel.exception.PortalException,
110             com.liferay.portal.kernel.exception.SystemException {
111         return getService()
112                    .addFolder(uuid, userId, parentFolderId, name, description,
113             serviceContext);
114     }
115 
116     public static void addFolderResources(
117         com.liferay.portlet.imagegallery.model.IGFolder folder,
118         boolean addCommunityPermissions, boolean addGuestPermissions)
119         throws com.liferay.portal.kernel.exception.PortalException,
120             com.liferay.portal.kernel.exception.SystemException {
121         getService()
122             .addFolderResources(folder, addCommunityPermissions,
123             addGuestPermissions);
124     }
125 
126     public static void addFolderResources(
127         com.liferay.portlet.imagegallery.model.IGFolder folder,
128         java.lang.String[] communityPermissions,
129         java.lang.String[] guestPermissions)
130         throws com.liferay.portal.kernel.exception.PortalException,
131             com.liferay.portal.kernel.exception.SystemException {
132         getService()
133             .addFolderResources(folder, communityPermissions, guestPermissions);
134     }
135 
136     public static void addFolderResources(long folderId,
137         boolean addCommunityPermissions, boolean addGuestPermissions)
138         throws com.liferay.portal.kernel.exception.PortalException,
139             com.liferay.portal.kernel.exception.SystemException {
140         getService()
141             .addFolderResources(folderId, addCommunityPermissions,
142             addGuestPermissions);
143     }
144 
145     public static void addFolderResources(long folderId,
146         java.lang.String[] communityPermissions,
147         java.lang.String[] guestPermissions)
148         throws com.liferay.portal.kernel.exception.PortalException,
149             com.liferay.portal.kernel.exception.SystemException {
150         getService()
151             .addFolderResources(folderId, communityPermissions, guestPermissions);
152     }
153 
154     public static void deleteFolder(
155         com.liferay.portlet.imagegallery.model.IGFolder folder)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException {
158         getService().deleteFolder(folder);
159     }
160 
161     public static void deleteFolder(long folderId)
162         throws com.liferay.portal.kernel.exception.PortalException,
163             com.liferay.portal.kernel.exception.SystemException {
164         getService().deleteFolder(folderId);
165     }
166 
167     public static void deleteFolders(long groupId)
168         throws com.liferay.portal.kernel.exception.PortalException,
169             com.liferay.portal.kernel.exception.SystemException {
170         getService().deleteFolders(groupId);
171     }
172 
173     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getCompanyFolders(
174         long companyId, int start, int end)
175         throws com.liferay.portal.kernel.exception.SystemException {
176         return getService().getCompanyFolders(companyId, start, end);
177     }
178 
179     public static int getCompanyFoldersCount(long companyId)
180         throws com.liferay.portal.kernel.exception.SystemException {
181         return getService().getCompanyFoldersCount(companyId);
182     }
183 
184     public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
185         long folderId)
186         throws com.liferay.portal.kernel.exception.PortalException,
187             com.liferay.portal.kernel.exception.SystemException {
188         return getService().getFolder(folderId);
189     }
190 
191     public static com.liferay.portlet.imagegallery.model.IGFolder getFolder(
192         long groupId, long parentFolderId, java.lang.String name)
193         throws com.liferay.portal.kernel.exception.PortalException,
194             com.liferay.portal.kernel.exception.SystemException {
195         return getService().getFolder(groupId, parentFolderId, name);
196     }
197 
198     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
199         long groupId)
200         throws com.liferay.portal.kernel.exception.SystemException {
201         return getService().getFolders(groupId);
202     }
203 
204     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
205         long groupId, long parentFolderId)
206         throws com.liferay.portal.kernel.exception.SystemException {
207         return getService().getFolders(groupId, parentFolderId);
208     }
209 
210     public static java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(
211         long groupId, long parentFolderId, int start, int end)
212         throws com.liferay.portal.kernel.exception.SystemException {
213         return getService().getFolders(groupId, parentFolderId, start, end);
214     }
215 
216     public static int getFoldersCount(long groupId, long parentFolderId)
217         throws com.liferay.portal.kernel.exception.SystemException {
218         return getService().getFoldersCount(groupId, parentFolderId);
219     }
220 
221     public static void getSubfolderIds(java.util.List<Long> folderIds,
222         long groupId, long folderId)
223         throws com.liferay.portal.kernel.exception.SystemException {
224         getService().getSubfolderIds(folderIds, groupId, folderId);
225     }
226 
227     public static com.liferay.portlet.imagegallery.model.IGFolder updateFolder(
228         long folderId, long parentFolderId, java.lang.String name,
229         java.lang.String description, boolean mergeWithParentFolder,
230         com.liferay.portal.service.ServiceContext serviceContext)
231         throws com.liferay.portal.kernel.exception.PortalException,
232             com.liferay.portal.kernel.exception.SystemException {
233         return getService()
234                    .updateFolder(folderId, parentFolderId, name, description,
235             mergeWithParentFolder, serviceContext);
236     }
237 
238     public static IGFolderLocalService getService() {
239         if (_service == null) {
240             _service = (IGFolderLocalService)PortalBeanLocatorUtil.locate(IGFolderLocalService.class.getName());
241         }
242 
243         return _service;
244     }
245 
246     public void setService(IGFolderLocalService service) {
247         _service = service;
248     }
249 
250     private static IGFolderLocalService _service;
251 }