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.documentlibrary.service;
16  
17  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18  
19  /**
20   * <a href="DLFileShortcutLocalServiceUtil.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 DLFileShortcutLocalService} 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       DLFileShortcutLocalService
37   * @generated
38   */
39  public class DLFileShortcutLocalServiceUtil {
40      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
41          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
42          throws com.liferay.portal.kernel.exception.SystemException {
43          return getService().addDLFileShortcut(dlFileShortcut);
44      }
45  
46      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
47          long fileShortcutId) {
48          return getService().createDLFileShortcut(fileShortcutId);
49      }
50  
51      public static void deleteDLFileShortcut(long fileShortcutId)
52          throws com.liferay.portal.kernel.exception.PortalException,
53              com.liferay.portal.kernel.exception.SystemException {
54          getService().deleteDLFileShortcut(fileShortcutId);
55      }
56  
57      public static void deleteDLFileShortcut(
58          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
59          throws com.liferay.portal.kernel.exception.SystemException {
60          getService().deleteDLFileShortcut(dlFileShortcut);
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.documentlibrary.model.DLFileShortcut getDLFileShortcut(
76          long fileShortcutId)
77          throws com.liferay.portal.kernel.exception.PortalException,
78              com.liferay.portal.kernel.exception.SystemException {
79          return getService().getDLFileShortcut(fileShortcutId);
80      }
81  
82      public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
83          int start, int end)
84          throws com.liferay.portal.kernel.exception.SystemException {
85          return getService().getDLFileShortcuts(start, end);
86      }
87  
88      public static int getDLFileShortcutsCount()
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().getDLFileShortcutsCount();
91      }
92  
93      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
94          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
95          throws com.liferay.portal.kernel.exception.SystemException {
96          return getService().updateDLFileShortcut(dlFileShortcut);
97      }
98  
99      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
100         com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
101         boolean merge)
102         throws com.liferay.portal.kernel.exception.SystemException {
103         return getService().updateDLFileShortcut(dlFileShortcut, merge);
104     }
105 
106     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
107         java.lang.String uuid, long userId, long groupId, long folderId,
108         long toFolderId, java.lang.String toName,
109         com.liferay.portal.service.ServiceContext serviceContext)
110         throws com.liferay.portal.kernel.exception.PortalException,
111             com.liferay.portal.kernel.exception.SystemException {
112         return getService()
113                    .addFileShortcut(uuid, userId, groupId, folderId,
114             toFolderId, toName, serviceContext);
115     }
116 
117     public static void addFileShortcutResources(
118         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
119         boolean addCommunityPermissions, boolean addGuestPermissions)
120         throws com.liferay.portal.kernel.exception.PortalException,
121             com.liferay.portal.kernel.exception.SystemException {
122         getService()
123             .addFileShortcutResources(fileShortcut, addCommunityPermissions,
124             addGuestPermissions);
125     }
126 
127     public static void addFileShortcutResources(
128         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
129         java.lang.String[] communityPermissions,
130         java.lang.String[] guestPermissions)
131         throws com.liferay.portal.kernel.exception.PortalException,
132             com.liferay.portal.kernel.exception.SystemException {
133         getService()
134             .addFileShortcutResources(fileShortcut, communityPermissions,
135             guestPermissions);
136     }
137 
138     public static void addFileShortcutResources(long fileShortcutId,
139         boolean addCommunityPermissions, boolean addGuestPermissions)
140         throws com.liferay.portal.kernel.exception.PortalException,
141             com.liferay.portal.kernel.exception.SystemException {
142         getService()
143             .addFileShortcutResources(fileShortcutId, addCommunityPermissions,
144             addGuestPermissions);
145     }
146 
147     public static void addFileShortcutResources(long fileShortcutId,
148         java.lang.String[] communityPermissions,
149         java.lang.String[] guestPermissions)
150         throws com.liferay.portal.kernel.exception.PortalException,
151             com.liferay.portal.kernel.exception.SystemException {
152         getService()
153             .addFileShortcutResources(fileShortcutId, communityPermissions,
154             guestPermissions);
155     }
156 
157     public static void deleteFileShortcut(
158         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
159         throws com.liferay.portal.kernel.exception.PortalException,
160             com.liferay.portal.kernel.exception.SystemException {
161         getService().deleteFileShortcut(fileShortcut);
162     }
163 
164     public static void deleteFileShortcut(long fileShortcutId)
165         throws com.liferay.portal.kernel.exception.PortalException,
166             com.liferay.portal.kernel.exception.SystemException {
167         getService().deleteFileShortcut(fileShortcutId);
168     }
169 
170     public static void deleteFileShortcuts(long groupId, long toFolderId,
171         java.lang.String toName)
172         throws com.liferay.portal.kernel.exception.PortalException,
173             com.liferay.portal.kernel.exception.SystemException {
174         getService().deleteFileShortcuts(groupId, toFolderId, toName);
175     }
176 
177     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
178         long fileShortcutId)
179         throws com.liferay.portal.kernel.exception.PortalException,
180             com.liferay.portal.kernel.exception.SystemException {
181         return getService().getFileShortcut(fileShortcutId);
182     }
183 
184     public static void updateAsset(long userId,
185         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
186         long[] assetCategoryIds, java.lang.String[] assetTagNames)
187         throws com.liferay.portal.kernel.exception.PortalException,
188             com.liferay.portal.kernel.exception.SystemException {
189         getService()
190             .updateAsset(userId, fileShortcut, assetCategoryIds, assetTagNames);
191     }
192 
193     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
194         long userId, long fileShortcutId, long folderId, long toFolderId,
195         java.lang.String toName,
196         com.liferay.portal.service.ServiceContext serviceContext)
197         throws com.liferay.portal.kernel.exception.PortalException,
198             com.liferay.portal.kernel.exception.SystemException {
199         return getService()
200                    .updateFileShortcut(userId, fileShortcutId, folderId,
201             toFolderId, toName, serviceContext);
202     }
203 
204     public static void updateFileShortcuts(long groupId, long oldToFolderId,
205         java.lang.String oldToName, long newToFolderId,
206         java.lang.String newToName)
207         throws com.liferay.portal.kernel.exception.SystemException {
208         getService()
209             .updateFileShortcuts(groupId, oldToFolderId, oldToName,
210             newToFolderId, newToName);
211     }
212 
213     public static DLFileShortcutLocalService getService() {
214         if (_service == null) {
215             _service = (DLFileShortcutLocalService)PortalBeanLocatorUtil.locate(DLFileShortcutLocalService.class.getName());
216         }
217 
218         return _service;
219     }
220 
221     public void setService(DLFileShortcutLocalService service) {
222         _service = service;
223     }
224 
225     private static DLFileShortcutLocalService _service;
226 }