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.documentlibrary.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="DLFolderLocalServiceUtil.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 DLFolderLocalService} 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       DLFolderLocalService
37   * @generated
38   */
39  public class DLFolderLocalServiceUtil {
40      public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
41          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
42          throws com.liferay.portal.SystemException {
43          return getService().addDLFolder(dlFolder);
44      }
45  
46      public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
47          long folderId) {
48          return getService().createDLFolder(folderId);
49      }
50  
51      public static void deleteDLFolder(long folderId)
52          throws com.liferay.portal.PortalException,
53              com.liferay.portal.SystemException {
54          getService().deleteDLFolder(folderId);
55      }
56  
57      public static void deleteDLFolder(
58          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
59          throws com.liferay.portal.SystemException {
60          getService().deleteDLFolder(dlFolder);
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.documentlibrary.model.DLFolder getDLFolder(
76          long folderId)
77          throws com.liferay.portal.PortalException,
78              com.liferay.portal.SystemException {
79          return getService().getDLFolder(folderId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
83          int start, int end) throws com.liferay.portal.SystemException {
84          return getService().getDLFolders(start, end);
85      }
86  
87      public static int getDLFoldersCount()
88          throws com.liferay.portal.SystemException {
89          return getService().getDLFoldersCount();
90      }
91  
92      public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
93          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
94          throws com.liferay.portal.SystemException {
95          return getService().updateDLFolder(dlFolder);
96      }
97  
98      public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
99          com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
100         boolean merge) throws com.liferay.portal.SystemException {
101         return getService().updateDLFolder(dlFolder, merge);
102     }
103 
104     public static com.liferay.portlet.documentlibrary.model.DLFolder 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.documentlibrary.model.DLFolder addFolder(
116         java.lang.String uuid, long userId, long plid, long parentFolderId,
117         java.lang.String name, java.lang.String description,
118         boolean addCommunityPermissions, boolean addGuestPermissions)
119         throws com.liferay.portal.PortalException,
120             com.liferay.portal.SystemException {
121         return getService()
122                    .addFolder(uuid, userId, plid, parentFolderId, name,
123             description, addCommunityPermissions, addGuestPermissions);
124     }
125 
126     public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
127         long userId, long plid, long parentFolderId, java.lang.String name,
128         java.lang.String description, java.lang.String[] communityPermissions,
129         java.lang.String[] guestPermissions)
130         throws com.liferay.portal.PortalException,
131             com.liferay.portal.SystemException {
132         return getService()
133                    .addFolder(userId, plid, parentFolderId, name, description,
134             communityPermissions, guestPermissions);
135     }
136 
137     public static com.liferay.portlet.documentlibrary.model.DLFolder 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 com.liferay.portlet.documentlibrary.model.DLFolder addFolderToGroup(
153         java.lang.String uuid, long userId, long groupId, long parentFolderId,
154         java.lang.String name, java.lang.String description,
155         java.lang.Boolean addCommunityPermissions,
156         java.lang.Boolean addGuestPermissions,
157         java.lang.String[] communityPermissions,
158         java.lang.String[] guestPermissions)
159         throws com.liferay.portal.PortalException,
160             com.liferay.portal.SystemException {
161         return getService()
162                    .addFolderToGroup(uuid, userId, groupId, parentFolderId,
163             name, description, addCommunityPermissions, addGuestPermissions,
164             communityPermissions, guestPermissions);
165     }
166 
167     public static void addFolderResources(long folderId,
168         boolean addCommunityPermissions, boolean addGuestPermissions)
169         throws com.liferay.portal.PortalException,
170             com.liferay.portal.SystemException {
171         getService()
172             .addFolderResources(folderId, addCommunityPermissions,
173             addGuestPermissions);
174     }
175 
176     public static void addFolderResources(
177         com.liferay.portlet.documentlibrary.model.DLFolder folder,
178         boolean addCommunityPermissions, boolean addGuestPermissions)
179         throws com.liferay.portal.PortalException,
180             com.liferay.portal.SystemException {
181         getService()
182             .addFolderResources(folder, addCommunityPermissions,
183             addGuestPermissions);
184     }
185 
186     public static void addFolderResources(long folderId,
187         java.lang.String[] communityPermissions,
188         java.lang.String[] guestPermissions)
189         throws com.liferay.portal.PortalException,
190             com.liferay.portal.SystemException {
191         getService()
192             .addFolderResources(folderId, communityPermissions, guestPermissions);
193     }
194 
195     public static void addFolderResources(
196         com.liferay.portlet.documentlibrary.model.DLFolder folder,
197         java.lang.String[] communityPermissions,
198         java.lang.String[] guestPermissions)
199         throws com.liferay.portal.PortalException,
200             com.liferay.portal.SystemException {
201         getService()
202             .addFolderResources(folder, communityPermissions, guestPermissions);
203     }
204 
205     public static void deleteFolder(long folderId)
206         throws com.liferay.portal.PortalException,
207             com.liferay.portal.SystemException {
208         getService().deleteFolder(folderId);
209     }
210 
211     public static void deleteFolder(
212         com.liferay.portlet.documentlibrary.model.DLFolder folder)
213         throws com.liferay.portal.PortalException,
214             com.liferay.portal.SystemException {
215         getService().deleteFolder(folder);
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.documentlibrary.model.DLFolder 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.documentlibrary.model.DLFolder 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.documentlibrary.model.DLFolder> getFolders(
239         long companyId) throws com.liferay.portal.SystemException {
240         return getService().getFolders(companyId);
241     }
242 
243     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder> 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.documentlibrary.model.DLFolder updateFolder(
278         long folderId, long parentFolderId, java.lang.String name,
279         java.lang.String description)
280         throws com.liferay.portal.PortalException,
281             com.liferay.portal.SystemException {
282         return getService()
283                    .updateFolder(folderId, parentFolderId, name, description);
284     }
285 
286     public static DLFolderLocalService getService() {
287         if (_service == null) {
288             _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
289         }
290 
291         return _service;
292     }
293 
294     public void setService(DLFolderLocalService service) {
295         _service = service;
296     }
297 
298     private static DLFolderLocalService _service;
299 }