1
14
15 package com.liferay.portlet.documentlibrary.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
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.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.PortalException,
53 com.liferay.portal.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.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.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 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.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.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.PortalException,
93 com.liferay.portal.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) throws com.liferay.portal.SystemException {
99 return getService().getDLFileShortcuts(start, end);
100 }
101
102 public static int getDLFileShortcutsCount()
103 throws com.liferay.portal.SystemException {
104 return getService().getDLFileShortcutsCount();
105 }
106
107 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
108 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut)
109 throws com.liferay.portal.SystemException {
110 return getService().updateDLFileShortcut(dlFileShortcut);
111 }
112
113 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateDLFileShortcut(
114 com.liferay.portlet.documentlibrary.model.DLFileShortcut dlFileShortcut,
115 boolean merge) throws com.liferay.portal.SystemException {
116 return getService().updateDLFileShortcut(dlFileShortcut, merge);
117 }
118
119 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
120 long userId, long folderId, long toFolderId, java.lang.String toName,
121 boolean addCommunityPermissions, boolean addGuestPermissions)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException {
124 return getService()
125 .addFileShortcut(userId, folderId, toFolderId, toName,
126 addCommunityPermissions, addGuestPermissions);
127 }
128
129 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
130 long userId, long folderId, long toFolderId, java.lang.String toName,
131 com.liferay.portal.service.ServiceContext serviceContext)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException {
134 return getService()
135 .addFileShortcut(userId, folderId, toFolderId, toName,
136 serviceContext);
137 }
138
139 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
140 long userId, long folderId, long toFolderId, java.lang.String toName,
141 java.lang.String[] communityPermissions,
142 java.lang.String[] guestPermissions)
143 throws com.liferay.portal.PortalException,
144 com.liferay.portal.SystemException {
145 return getService()
146 .addFileShortcut(userId, folderId, toFolderId, toName,
147 communityPermissions, guestPermissions);
148 }
149
150 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
151 java.lang.String uuid, long userId, long folderId, long toFolderId,
152 java.lang.String toName, boolean addCommunityPermissions,
153 boolean addGuestPermissions)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException {
156 return getService()
157 .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
158 addCommunityPermissions, addGuestPermissions);
159 }
160
161 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
162 java.lang.String uuid, long userId, long folderId, long toFolderId,
163 java.lang.String toName, java.lang.Boolean addCommunityPermissions,
164 java.lang.Boolean addGuestPermissions,
165 java.lang.String[] communityPermissions,
166 java.lang.String[] guestPermissions)
167 throws com.liferay.portal.PortalException,
168 com.liferay.portal.SystemException {
169 return getService()
170 .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
171 addCommunityPermissions, addGuestPermissions, communityPermissions,
172 guestPermissions);
173 }
174
175 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut addFileShortcut(
176 java.lang.String uuid, long userId, long folderId, long toFolderId,
177 java.lang.String toName,
178 com.liferay.portal.service.ServiceContext serviceContext)
179 throws com.liferay.portal.PortalException,
180 com.liferay.portal.SystemException {
181 return getService()
182 .addFileShortcut(uuid, userId, folderId, toFolderId, toName,
183 serviceContext);
184 }
185
186 public static void addFileShortcutResources(
187 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
188 boolean addCommunityPermissions, boolean addGuestPermissions)
189 throws com.liferay.portal.PortalException,
190 com.liferay.portal.SystemException {
191 getService()
192 .addFileShortcutResources(fileShortcut, addCommunityPermissions,
193 addGuestPermissions);
194 }
195
196 public static void addFileShortcutResources(
197 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
198 java.lang.String[] communityPermissions,
199 java.lang.String[] guestPermissions)
200 throws com.liferay.portal.PortalException,
201 com.liferay.portal.SystemException {
202 getService()
203 .addFileShortcutResources(fileShortcut, communityPermissions,
204 guestPermissions);
205 }
206
207 public static void addFileShortcutResources(long fileShortcutId,
208 boolean addCommunityPermissions, boolean addGuestPermissions)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException {
211 getService()
212 .addFileShortcutResources(fileShortcutId, addCommunityPermissions,
213 addGuestPermissions);
214 }
215
216 public static void addFileShortcutResources(long fileShortcutId,
217 java.lang.String[] communityPermissions,
218 java.lang.String[] guestPermissions)
219 throws com.liferay.portal.PortalException,
220 com.liferay.portal.SystemException {
221 getService()
222 .addFileShortcutResources(fileShortcutId, communityPermissions,
223 guestPermissions);
224 }
225
226 public static void deleteFileShortcut(
227 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException {
230 getService().deleteFileShortcut(fileShortcut);
231 }
232
233 public static void deleteFileShortcut(long fileShortcutId)
234 throws com.liferay.portal.PortalException,
235 com.liferay.portal.SystemException {
236 getService().deleteFileShortcut(fileShortcutId);
237 }
238
239 public static void deleteFileShortcuts(long toFolderId,
240 java.lang.String toName)
241 throws com.liferay.portal.PortalException,
242 com.liferay.portal.SystemException {
243 getService().deleteFileShortcuts(toFolderId, toName);
244 }
245
246 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut getFileShortcut(
247 long fileShortcutId)
248 throws com.liferay.portal.PortalException,
249 com.liferay.portal.SystemException {
250 return getService().getFileShortcut(fileShortcutId);
251 }
252
253 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
254 long userId, long fileShortcutId, long folderId, long toFolderId,
255 java.lang.String toName)
256 throws com.liferay.portal.PortalException,
257 com.liferay.portal.SystemException {
258 return getService()
259 .updateFileShortcut(userId, fileShortcutId, folderId,
260 toFolderId, toName);
261 }
262
263 public static com.liferay.portlet.documentlibrary.model.DLFileShortcut updateFileShortcut(
264 long userId, long fileShortcutId, long folderId, long toFolderId,
265 java.lang.String toName,
266 com.liferay.portal.service.ServiceContext serviceContext)
267 throws com.liferay.portal.PortalException,
268 com.liferay.portal.SystemException {
269 return getService()
270 .updateFileShortcut(userId, fileShortcutId, folderId,
271 toFolderId, toName, serviceContext);
272 }
273
274 public static void updateFileShortcuts(long oldToFolderId,
275 java.lang.String oldToName, long newToFolderId,
276 java.lang.String newToName) throws com.liferay.portal.SystemException {
277 getService()
278 .updateFileShortcuts(oldToFolderId, oldToName, newToFolderId,
279 newToName);
280 }
281
282 public static void updateTagsAsset(long userId,
283 com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut,
284 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
285 throws com.liferay.portal.PortalException,
286 com.liferay.portal.SystemException {
287 getService()
288 .updateTagsAsset(userId, fileShortcut, tagsCategories, tagsEntries);
289 }
290
291 public static DLFileShortcutLocalService getService() {
292 if (_service == null) {
293 _service = (DLFileShortcutLocalService)PortalBeanLocatorUtil.locate(DLFileShortcutLocalService.class.getName());
294 }
295
296 return _service;
297 }
298
299 public void setService(DLFileShortcutLocalService service) {
300 _service = service;
301 }
302
303 private static DLFileShortcutLocalService _service;
304 }