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      @SuppressWarnings("unchecked")
64      public static java.util.List dynamicQuery(
65          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66          throws com.liferay.portal.kernel.exception.SystemException {
67          return getService().dynamicQuery(dynamicQuery);
68      }
69  
70      @SuppressWarnings("unchecked")
71      public static java.util.List dynamicQuery(
72          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73          int end) throws com.liferay.portal.kernel.exception.SystemException {
74          return getService().dynamicQuery(dynamicQuery, start, end);
75      }
76  
77      @SuppressWarnings("unchecked")
78      public static java.util.List dynamicQuery(
79          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80          int end,
81          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82          throws com.liferay.portal.kernel.exception.SystemException {
83          return getService()
84                     .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85      }
86  
87      public static long dynamicQueryCount(
88          com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89          throws com.liferay.portal.kernel.exception.SystemException {
90          return getService().dynamicQueryCount(dynamicQuery);
91      }
92  
93      public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcut(
94          long fileShortcutId)
95          throws com.liferay.portal.kernel.exception.PortalException,
96              com.liferay.portal.kernel.exception.SystemException {
97          return getService().getDLFileShortcut(fileShortcutId);
98      }
99  
100     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getDLFileShortcutByUuidAndGroupId(
101         java.lang.String uuid, long groupId)
102         throws com.liferay.portal.kernel.exception.PortalException,
103             com.liferay.portal.kernel.exception.SystemException {
104         return getService().getDLFileShortcutByUuidAndGroupId(uuid, groupId);
105     }
106 
107     public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileShortcut> getDLFileShortcuts(
108         int start, int end)
109         throws com.liferay.portal.kernel.exception.SystemException {
110         return getService().getDLFileShortcuts(start, end);
111     }
112 
113     public static int getDLFileShortcutsCount()
114         throws com.liferay.portal.kernel.exception.SystemException {
115         return getService().getDLFileShortcutsCount();
116     }
117 
118     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
119         com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
120         throws com.liferay.portal.kernel.exception.SystemException {
121         return getService().updateDLFileShortcut(dlFileShortcut);
122     }
123 
124     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
125         com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
126         boolean merge)
127         throws com.liferay.portal.kernel.exception.SystemException {
128         return getService().updateDLFileShortcut(dlFileShortcut, merge);
129     }
130 
131     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
132         java.lang.String uuid, long userId, long groupId, long folderId,
133         long toFolderId, java.lang.String toName,
134         com.liferay.portal.service.ServiceContext serviceContext)
135         throws com.liferay.portal.kernel.exception.PortalException,
136             com.liferay.portal.kernel.exception.SystemException {
137         return getService()
138                    .addFileShortcut(uuid, userId, groupId, folderId,
139             toFolderId, toName, serviceContext);
140     }
141 
142     public static void addFileShortcutResources(
143         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
144         boolean addCommunityPermissions, boolean addGuestPermissions)
145         throws com.liferay.portal.kernel.exception.PortalException,
146             com.liferay.portal.kernel.exception.SystemException {
147         getService()
148             .addFileShortcutResources(fileShortcut, addCommunityPermissions,
149             addGuestPermissions);
150     }
151 
152     public static void addFileShortcutResources(
153         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
154         java.lang.String[] communityPermissions,
155         java.lang.String[] guestPermissions)
156         throws com.liferay.portal.kernel.exception.PortalException,
157             com.liferay.portal.kernel.exception.SystemException {
158         getService()
159             .addFileShortcutResources(fileShortcut, communityPermissions,
160             guestPermissions);
161     }
162 
163     public static void addFileShortcutResources(long fileShortcutId,
164         boolean addCommunityPermissions, boolean addGuestPermissions)
165         throws com.liferay.portal.kernel.exception.PortalException,
166             com.liferay.portal.kernel.exception.SystemException {
167         getService()
168             .addFileShortcutResources(fileShortcutId, addCommunityPermissions,
169             addGuestPermissions);
170     }
171 
172     public static void addFileShortcutResources(long fileShortcutId,
173         java.lang.String[] communityPermissions,
174         java.lang.String[] guestPermissions)
175         throws com.liferay.portal.kernel.exception.PortalException,
176             com.liferay.portal.kernel.exception.SystemException {
177         getService()
178             .addFileShortcutResources(fileShortcutId, communityPermissions,
179             guestPermissions);
180     }
181 
182     public static void deleteFileShortcut(
183         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
184         throws com.liferay.portal.kernel.exception.PortalException,
185             com.liferay.portal.kernel.exception.SystemException {
186         getService().deleteFileShortcut(fileShortcut);
187     }
188 
189     public static void deleteFileShortcut(long fileShortcutId)
190         throws com.liferay.portal.kernel.exception.PortalException,
191             com.liferay.portal.kernel.exception.SystemException {
192         getService().deleteFileShortcut(fileShortcutId);
193     }
194 
195     public static void deleteFileShortcuts(long groupId, long toFolderId,
196         java.lang.String toName)
197         throws com.liferay.portal.kernel.exception.PortalException,
198             com.liferay.portal.kernel.exception.SystemException {
199         getService().deleteFileShortcuts(groupId, toFolderId, toName);
200     }
201 
202     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
203         long fileShortcutId)
204         throws com.liferay.portal.kernel.exception.PortalException,
205             com.liferay.portal.kernel.exception.SystemException {
206         return getService().getFileShortcut(fileShortcutId);
207     }
208 
209     public static void updateAsset(long userId,
210         com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
211         long[] assetCategoryIds, java.lang.String[] assetTagNames)
212         throws com.liferay.portal.kernel.exception.PortalException,
213             com.liferay.portal.kernel.exception.SystemException {
214         getService()
215             .updateAsset(userId, fileShortcut, assetCategoryIds, assetTagNames);
216     }
217 
218     public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
219         long userId, long fileShortcutId, long folderId, long toFolderId,
220         java.lang.String toName,
221         com.liferay.portal.service.ServiceContext serviceContext)
222         throws com.liferay.portal.kernel.exception.PortalException,
223             com.liferay.portal.kernel.exception.SystemException {
224         return getService()
225                    .updateFileShortcut(userId, fileShortcutId, folderId,
226             toFolderId, toName, serviceContext);
227     }
228 
229     public static void updateFileShortcuts(long groupId, long oldToFolderId,
230         java.lang.String oldToName, long newToFolderId,
231         java.lang.String newToName)
232         throws com.liferay.portal.kernel.exception.SystemException {
233         getService()
234             .updateFileShortcuts(groupId, oldToFolderId, oldToName,
235             newToFolderId, newToName);
236     }
237 
238     public static DLFileShortcutLocalService getService() {
239         if (_service == null) {
240             _service = (DLFileShortcutLocalService)PortalBeanLocatorUtil.locate(DLFileShortcutLocalService.class.getName());
241         }
242 
243         return _service;
244     }
245 
246     public void setService(DLFileShortcutLocalService service) {
247         _service = service;
248     }
249 
250     private static DLFileShortcutLocalService _service;
251 }