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