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.documentlibrary.service;
24  
25  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26  
27  /**
28   * <a href="DLFileShortcutLocalServiceUtil.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This class provides static methods for the
37   * {@link DLFileShortcutLocalService} bean. The static methods of
38   * this class calls the same methods of the bean instance. It's convenient to be
39   * able to just write one line to call a method on a bean instead of writing a
40   * lookup call and a method call.
41   * </p>
42   *
43   * @author    Brian Wing Shun Chan
44   * @see       DLFileShortcutLocalService
45   * @generated
46   */
47  public class DLFileShortcutLocalServiceUtil {
48      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addDLFileShortcut(
49          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
50          throws com.liferay.portal.SystemException {
51          return getService().addDLFileShortcut(dlFileShortcut);
52      }
53  
54      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut createDLFileShortcut(
55          long fileShortcutId) {
56          return getService().createDLFileShortcut(fileShortcutId);
57      }
58  
59      public static void deleteDLFileShortcut(long fileShortcutId)
60          throws com.liferay.portal.PortalException,
61              com.liferay.portal.SystemException {
62          getService().deleteDLFileShortcut(fileShortcutId);
63      }
64  
65      public static void deleteDLFileShortcut(
66          com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
67          throws com.liferay.portal.SystemException {
68          getService().deleteDLFileShortcut(dlFileShortcut);
69      }
70  
71      public static java.util.List<Object> dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
73          throws com.liferay.portal.SystemException {
74          return getService().dynamicQuery(dynamicQuery);
75      }
76  
77      public static java.util.List<Object> dynamicQuery(
78          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79          int end) throws com.liferay.portal.SystemException {
80          return getService().dynamicQuery(dynamicQuery, start, end);
81      }
82  
83      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
84          long fileShortcutId)
85          throws com.liferay.portal.PortalException,
86              com.liferay.portal.SystemException {
87          return getService().getDLFileShortcut(fileShortcutId);
88      }
89  
90      public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
91          int start, int end) throws com.liferay.portal.SystemException {
92          return getService().getDLFileShortcuts(start, end);
93      }
94  
95      public static int getDLFileShortcutsCount()
96          throws com.liferay.portal.SystemException {
97          return getService().getDLFileShortcutsCount();
98      }
99  
100     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
101         com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
102         throws com.liferay.portal.SystemException {
103         return getService().updateDLFileShortcut(dlFileShortcut);
104     }
105 
106     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
107         com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
108         boolean merge) throws com.liferay.portal.SystemException {
109         return getService().updateDLFileShortcut(dlFileShortcut, merge);
110     }
111 
112     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
113         long userId, long folderId, long toFolderId, java.lang.String toName,
114         boolean addCommunityPermissions, boolean addGuestPermissions)
115         throws com.liferay.portal.PortalException,
116             com.liferay.portal.SystemException {
117         return getService()
118                    .addFileShortcut(userId, folderId, toFolderId, toName,
119             addCommunityPermissions, addGuestPermissions);
120     }
121 
122     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
123         long userId, long folderId, long toFolderId, java.lang.String toName,
124         com.liferay.portal.service.ServiceContext serviceContext)
125         throws com.liferay.portal.PortalException,
126             com.liferay.portal.SystemException {
127         return getService()
128                    .addFileShortcut(userId, folderId, toFolderId, toName,
129             serviceContext);
130     }
131 
132     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
133         long userId, long folderId, long toFolderId, java.lang.String toName,
134         java.lang.String[] communityPermissions,
135         java.lang.String[] guestPermissions)
136         throws com.liferay.portal.PortalException,
137             com.liferay.portal.SystemException {
138         return getService()
139                    .addFileShortcut(userId, folderId, toFolderId, toName,
140             communityPermissions, guestPermissions);
141     }
142 
143     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
144         java.lang.String uuid, long userId, long folderId, long toFolderId,
145         java.lang.String toName, boolean addCommunityPermissions,
146         boolean addGuestPermissions)
147         throws com.liferay.portal.PortalException,
148             com.liferay.portal.SystemException {
149         return getService()
150                    .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
151             addCommunityPermissions, addGuestPermissions);
152     }
153 
154     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
155         java.lang.String uuid, long userId, long folderId, long toFolderId,
156         java.lang.String toName, java.lang.Boolean addCommunityPermissions,
157         java.lang.Boolean addGuestPermissions,
158         java.lang.String[] communityPermissions,
159         java.lang.String[] guestPermissions)
160         throws com.liferay.portal.PortalException,
161             com.liferay.portal.SystemException {
162         return getService()
163                    .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
164             addCommunityPermissions, addGuestPermissions, communityPermissions,
165             guestPermissions);
166     }
167 
168     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
169         java.lang.String uuid, long userId, long folderId, long toFolderId,
170         java.lang.String toName,
171         com.liferay.portal.service.ServiceContext serviceContext)
172         throws com.liferay.portal.PortalException,
173             com.liferay.portal.SystemException {
174         return getService()
175                    .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
176             serviceContext);
177     }
178 
179     public static void addFileShortcutResources(
180         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
181         boolean addCommunityPermissions, boolean addGuestPermissions)
182         throws com.liferay.portal.PortalException,
183             com.liferay.portal.SystemException {
184         getService()
185             .addFileShortcutResources(fileShortcut, addCommunityPermissions,
186             addGuestPermissions);
187     }
188 
189     public static void addFileShortcutResources(
190         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
191         java.lang.String[] communityPermissions,
192         java.lang.String[] guestPermissions)
193         throws com.liferay.portal.PortalException,
194             com.liferay.portal.SystemException {
195         getService()
196             .addFileShortcutResources(fileShortcut, communityPermissions,
197             guestPermissions);
198     }
199 
200     public static void addFileShortcutResources(long fileShortcutId,
201         boolean addCommunityPermissions, boolean addGuestPermissions)
202         throws com.liferay.portal.PortalException,
203             com.liferay.portal.SystemException {
204         getService()
205             .addFileShortcutResources(fileShortcutId, addCommunityPermissions,
206             addGuestPermissions);
207     }
208 
209     public static void addFileShortcutResources(long fileShortcutId,
210         java.lang.String[] communityPermissions,
211         java.lang.String[] guestPermissions)
212         throws com.liferay.portal.PortalException,
213             com.liferay.portal.SystemException {
214         getService()
215             .addFileShortcutResources(fileShortcutId, communityPermissions,
216             guestPermissions);
217     }
218 
219     public static void deleteFileShortcut(
220         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
221         throws com.liferay.portal.PortalException,
222             com.liferay.portal.SystemException {
223         getService().deleteFileShortcut(fileShortcut);
224     }
225 
226     public static void deleteFileShortcut(long fileShortcutId)
227         throws com.liferay.portal.PortalException,
228             com.liferay.portal.SystemException {
229         getService().deleteFileShortcut(fileShortcutId);
230     }
231 
232     public static void deleteFileShortcuts(long toFolderId,
233         java.lang.String toName)
234         throws com.liferay.portal.PortalException,
235             com.liferay.portal.SystemException {
236         getService().deleteFileShortcuts(toFolderId, toName);
237     }
238 
239     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
240         long fileShortcutId)
241         throws com.liferay.portal.PortalException,
242             com.liferay.portal.SystemException {
243         return getService().getFileShortcut(fileShortcutId);
244     }
245 
246     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
247         long userId, long fileShortcutId, long folderId, long toFolderId,
248         java.lang.String toName)
249         throws com.liferay.portal.PortalException,
250             com.liferay.portal.SystemException {
251         return getService()
252                    .updateFileShortcut(userId, fileShortcutId, folderId,
253             toFolderId, toName);
254     }
255 
256     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
257         long userId, long fileShortcutId, long folderId, long toFolderId,
258         java.lang.String toName,
259         com.liferay.portal.service.ServiceContext serviceContext)
260         throws com.liferay.portal.PortalException,
261             com.liferay.portal.SystemException {
262         return getService()
263                    .updateFileShortcut(userId, fileShortcutId, folderId,
264             toFolderId, toName, serviceContext);
265     }
266 
267     public static void updateFileShortcuts(long oldToFolderId,
268         java.lang.String oldToName, long newToFolderId,
269         java.lang.String newToName) throws com.liferay.portal.SystemException {
270         getService()
271             .updateFileShortcuts(oldToFolderId, oldToName, newToFolderId,
272             newToName);
273     }
274 
275     public static void updateTagsAsset(long userId,
276         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
277         java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
278         throws com.liferay.portal.PortalException,
279             com.liferay.portal.SystemException {
280         getService()
281             .updateTagsAsset(userId, fileShortcut, tagsCategories, tagsEntries);
282     }
283 
284     public static DLFileShortcutLocalService getService() {
285         if (_service == null) {
286             _service = (DLFileShortcutLocalService)PortalBeanLocatorUtil.locate(DLFileShortcutLocalService.class.getName());
287         }
288 
289         return _service;
290     }
291 
292     public void setService(DLFileShortcutLocalService service) {
293         _service = service;
294     }
295 
296     private static DLFileShortcutLocalService _service;
297 }