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