1
14
15 package com.liferay.portlet.documentlibrary.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class DLFileEntryLocalServiceUtil {
40 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addDLFileEntry(
41 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
42 throws com.liferay.portal.SystemException {
43 return getService().addDLFileEntry(dlFileEntry);
44 }
45
46 public static com.liferay.portlet.documentlibrary.model.DLFileEntry createDLFileEntry(
47 long fileEntryId) {
48 return getService().createDLFileEntry(fileEntryId);
49 }
50
51 public static void deleteDLFileEntry(long fileEntryId)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException {
54 getService().deleteDLFileEntry(fileEntryId);
55 }
56
57 public static void deleteDLFileEntry(
58 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
59 throws com.liferay.portal.SystemException {
60 getService().deleteDLFileEntry(dlFileEntry);
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 com.liferay.portlet.documentlibrary.model.DLFileEntry getDLFileEntry(
76 long fileEntryId)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 return getService().getDLFileEntry(fileEntryId);
80 }
81
82 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getDLFileEntries(
83 int start, int end) throws com.liferay.portal.SystemException {
84 return getService().getDLFileEntries(start, end);
85 }
86
87 public static int getDLFileEntriesCount()
88 throws com.liferay.portal.SystemException {
89 return getService().getDLFileEntriesCount();
90 }
91
92 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
93 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry)
94 throws com.liferay.portal.SystemException {
95 return getService().updateDLFileEntry(dlFileEntry);
96 }
97
98 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateDLFileEntry(
99 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
100 boolean merge) throws com.liferay.portal.SystemException {
101 return getService().updateDLFileEntry(dlFileEntry, merge);
102 }
103
104 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
105 long userId, long folderId, java.lang.String name,
106 java.lang.String title, java.lang.String description,
107 java.lang.String[] tagsEntries, java.lang.String extraSettings,
108 byte[] bytes, boolean addCommunityPermissions,
109 boolean addGuestPermissions)
110 throws com.liferay.portal.PortalException,
111 com.liferay.portal.SystemException {
112 return getService()
113 .addFileEntry(userId, folderId, name, title, description,
114 tagsEntries, extraSettings, bytes, addCommunityPermissions,
115 addGuestPermissions);
116 }
117
118 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
119 long userId, long folderId, java.lang.String name,
120 java.lang.String title, java.lang.String description,
121 java.lang.String[] tagsEntries, java.lang.String extraSettings,
122 byte[] bytes, java.lang.String[] communityPermissions,
123 java.lang.String[] guestPermissions)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService()
127 .addFileEntry(userId, folderId, name, title, description,
128 tagsEntries, extraSettings, bytes, communityPermissions,
129 guestPermissions);
130 }
131
132 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
133 long userId, long folderId, java.lang.String name,
134 java.lang.String title, java.lang.String description,
135 java.lang.String[] tagsEntries, java.lang.String extraSettings,
136 java.io.File file, boolean addCommunityPermissions,
137 boolean addGuestPermissions)
138 throws com.liferay.portal.PortalException,
139 com.liferay.portal.SystemException {
140 return getService()
141 .addFileEntry(userId, folderId, name, title, description,
142 tagsEntries, extraSettings, file, addCommunityPermissions,
143 addGuestPermissions);
144 }
145
146 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
147 long userId, long folderId, java.lang.String name,
148 java.lang.String title, java.lang.String description,
149 java.lang.String[] tagsEntries, java.lang.String extraSettings,
150 java.io.File file, java.lang.Boolean addCommunityPermissions,
151 java.lang.Boolean addGuestPermissions,
152 java.lang.String[] communityPermissions,
153 java.lang.String[] guestPermissions)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException {
156 return getService()
157 .addFileEntry(userId, folderId, name, title, description,
158 tagsEntries, extraSettings, file, addCommunityPermissions,
159 addGuestPermissions, communityPermissions, guestPermissions);
160 }
161
162 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
163 long userId, long folderId, java.lang.String name,
164 java.lang.String title, java.lang.String description,
165 java.lang.String[] tagsEntries, java.lang.String extraSettings,
166 java.io.File file, java.lang.String[] communityPermissions,
167 java.lang.String[] guestPermissions)
168 throws com.liferay.portal.PortalException,
169 com.liferay.portal.SystemException {
170 return getService()
171 .addFileEntry(userId, folderId, name, title, description,
172 tagsEntries, extraSettings, file, communityPermissions,
173 guestPermissions);
174 }
175
176 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
177 long userId, long folderId, java.lang.String name,
178 java.lang.String title, java.lang.String description,
179 java.lang.String[] tagsEntries, java.lang.String extraSettings,
180 java.io.InputStream is, int size, boolean addCommunityPermissions,
181 boolean addGuestPermissions)
182 throws com.liferay.portal.PortalException,
183 com.liferay.portal.SystemException {
184 return getService()
185 .addFileEntry(userId, folderId, name, title, description,
186 tagsEntries, extraSettings, is, size, addCommunityPermissions,
187 addGuestPermissions);
188 }
189
190 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
191 java.lang.String uuid, long userId, long folderId,
192 java.lang.String name, java.lang.String title,
193 java.lang.String description, java.lang.String[] tagsEntries,
194 java.lang.String extraSettings, byte[] bytes,
195 boolean addCommunityPermissions, boolean addGuestPermissions)
196 throws com.liferay.portal.PortalException,
197 com.liferay.portal.SystemException {
198 return getService()
199 .addFileEntry(uuid, userId, folderId, name, title,
200 description, tagsEntries, extraSettings, bytes,
201 addCommunityPermissions, addGuestPermissions);
202 }
203
204 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
205 java.lang.String uuid, long userId, long folderId,
206 java.lang.String name, java.lang.String title,
207 java.lang.String description, java.lang.String[] tagsEntries,
208 java.lang.String extraSettings, byte[] bytes,
209 java.lang.Boolean addCommunityPermissions,
210 java.lang.Boolean addGuestPermissions,
211 java.lang.String[] communityPermissions,
212 java.lang.String[] guestPermissions)
213 throws com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException {
215 return getService()
216 .addFileEntry(uuid, userId, folderId, name, title,
217 description, tagsEntries, extraSettings, bytes,
218 addCommunityPermissions, addGuestPermissions, communityPermissions,
219 guestPermissions);
220 }
221
222 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
223 java.lang.String uuid, long userId, long folderId,
224 java.lang.String name, java.lang.String title,
225 java.lang.String description, java.lang.String[] tagsEntries,
226 java.lang.String extraSettings, java.io.InputStream is, int size,
227 boolean addCommunityPermissions, boolean addGuestPermissions)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException {
230 return getService()
231 .addFileEntry(uuid, userId, folderId, name, title,
232 description, tagsEntries, extraSettings, is, size,
233 addCommunityPermissions, addGuestPermissions);
234 }
235
236 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
237 java.lang.String uuid, long userId, long folderId,
238 java.lang.String name, java.lang.String title,
239 java.lang.String description, java.lang.String[] tagsEntries,
240 java.lang.String extraSettings, java.io.InputStream is, long size,
241 java.lang.Boolean addCommunityPermissions,
242 java.lang.Boolean addGuestPermissions,
243 java.lang.String[] communityPermissions,
244 java.lang.String[] guestPermissions)
245 throws com.liferay.portal.PortalException,
246 com.liferay.portal.SystemException {
247 return getService()
248 .addFileEntry(uuid, userId, folderId, name, title,
249 description, tagsEntries, extraSettings, is, size,
250 addCommunityPermissions, addGuestPermissions, communityPermissions,
251 guestPermissions);
252 }
253
254 public static void addFileEntryResources(
255 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
256 boolean addCommunityPermissions, boolean addGuestPermissions)
257 throws com.liferay.portal.PortalException,
258 com.liferay.portal.SystemException {
259 getService()
260 .addFileEntryResources(fileEntry, addCommunityPermissions,
261 addGuestPermissions);
262 }
263
264 public static void addFileEntryResources(
265 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
266 java.lang.String[] communityPermissions,
267 java.lang.String[] guestPermissions)
268 throws com.liferay.portal.PortalException,
269 com.liferay.portal.SystemException {
270 getService()
271 .addFileEntryResources(fileEntry, communityPermissions,
272 guestPermissions);
273 }
274
275 public static void addFileEntryResources(long fileEntryId,
276 boolean addCommunityPermissions, boolean addGuestPermissions)
277 throws com.liferay.portal.PortalException,
278 com.liferay.portal.SystemException {
279 getService()
280 .addFileEntryResources(fileEntryId, addCommunityPermissions,
281 addGuestPermissions);
282 }
283
284 public static void addFileEntryResources(long fileEntryId,
285 java.lang.String[] communityPermissions,
286 java.lang.String[] guestPermissions)
287 throws com.liferay.portal.PortalException,
288 com.liferay.portal.SystemException {
289 getService()
290 .addFileEntryResources(fileEntryId, communityPermissions,
291 guestPermissions);
292 }
293
294 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
295 long userId, long folderId, java.lang.String name,
296 java.lang.String sourceName, java.lang.String title,
297 java.lang.String description, java.lang.String[] tagsEntries,
298 java.lang.String extraSettings, java.io.File file,
299 boolean addCommunityPermissions, boolean addGuestPermissions)
300 throws com.liferay.portal.PortalException,
301 com.liferay.portal.SystemException {
302 return getService()
303 .addOrOverwriteFileEntry(userId, folderId, name, sourceName,
304 title, description, tagsEntries, extraSettings, file,
305 addCommunityPermissions, addGuestPermissions);
306 }
307
308 public static void deleteFileEntries(long folderId)
309 throws com.liferay.portal.PortalException,
310 com.liferay.portal.SystemException {
311 getService().deleteFileEntries(folderId);
312 }
313
314 public static void deleteFileEntry(
315 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
316 throws com.liferay.portal.PortalException,
317 com.liferay.portal.SystemException {
318 getService().deleteFileEntry(fileEntry);
319 }
320
321 public static void deleteFileEntry(long folderId, java.lang.String name)
322 throws com.liferay.portal.PortalException,
323 com.liferay.portal.SystemException {
324 getService().deleteFileEntry(folderId, name);
325 }
326
327 public static void deleteFileEntry(long folderId, java.lang.String name,
328 double version)
329 throws com.liferay.portal.PortalException,
330 com.liferay.portal.SystemException {
331 getService().deleteFileEntry(folderId, name, version);
332 }
333
334 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
335 long companyId, int start, int end)
336 throws com.liferay.portal.SystemException {
337 return getService().getCompanyFileEntries(companyId, start, end);
338 }
339
340 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
341 long companyId, int start, int end,
342 com.liferay.portal.kernel.util.OrderByComparator obc)
343 throws com.liferay.portal.SystemException {
344 return getService().getCompanyFileEntries(companyId, start, end, obc);
345 }
346
347 public static int getCompanyFileEntriesCount(long companyId)
348 throws com.liferay.portal.SystemException {
349 return getService().getCompanyFileEntriesCount(companyId);
350 }
351
352 public static java.io.InputStream getFileAsStream(long companyId,
353 long userId, long folderId, java.lang.String name)
354 throws com.liferay.portal.PortalException,
355 com.liferay.portal.SystemException {
356 return getService().getFileAsStream(companyId, userId, folderId, name);
357 }
358
359 public static java.io.InputStream getFileAsStream(long companyId,
360 long userId, long folderId, java.lang.String name, double version)
361 throws com.liferay.portal.PortalException,
362 com.liferay.portal.SystemException {
363 return getService()
364 .getFileAsStream(companyId, userId, folderId, name, version);
365 }
366
367 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
368 long folderId) throws com.liferay.portal.SystemException {
369 return getService().getFileEntries(folderId);
370 }
371
372 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
373 long folderId, int start, int end)
374 throws com.liferay.portal.SystemException {
375 return getService().getFileEntries(folderId, start, end);
376 }
377
378 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
379 long folderId, int start, int end,
380 com.liferay.portal.kernel.util.OrderByComparator obc)
381 throws com.liferay.portal.SystemException {
382 return getService().getFileEntries(folderId, start, end, obc);
383 }
384
385 public static java.util.List<Object> getFileEntriesAndShortcuts(
386 java.util.List<Long> folderIds, int start, int end)
387 throws com.liferay.portal.SystemException {
388 return getService().getFileEntriesAndShortcuts(folderIds, start, end);
389 }
390
391 public static java.util.List<Object> getFileEntriesAndShortcuts(
392 long folderId, int start, int end)
393 throws com.liferay.portal.SystemException {
394 return getService().getFileEntriesAndShortcuts(folderId, start, end);
395 }
396
397 public static int getFileEntriesAndShortcutsCount(
398 java.util.List<Long> folderIds)
399 throws com.liferay.portal.SystemException {
400 return getService().getFileEntriesAndShortcutsCount(folderIds);
401 }
402
403 public static int getFileEntriesAndShortcutsCount(long folderId)
404 throws com.liferay.portal.SystemException {
405 return getService().getFileEntriesAndShortcutsCount(folderId);
406 }
407
408 public static int getFileEntriesCount(long folderId)
409 throws com.liferay.portal.SystemException {
410 return getService().getFileEntriesCount(folderId);
411 }
412
413 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
414 long fileEntryId)
415 throws com.liferay.portal.PortalException,
416 com.liferay.portal.SystemException {
417 return getService().getFileEntry(fileEntryId);
418 }
419
420 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
421 long folderId, java.lang.String name)
422 throws com.liferay.portal.PortalException,
423 com.liferay.portal.SystemException {
424 return getService().getFileEntry(folderId, name);
425 }
426
427 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
428 long folderId, java.lang.String titleWithExtension)
429 throws com.liferay.portal.PortalException,
430 com.liferay.portal.SystemException {
431 return getService().getFileEntryByTitle(folderId, titleWithExtension);
432 }
433
434 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
435 java.lang.String uuid, long groupId)
436 throws com.liferay.portal.PortalException,
437 com.liferay.portal.SystemException {
438 return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
439 }
440
441 public static int getFoldersFileEntriesCount(java.util.List<Long> folderIds)
442 throws com.liferay.portal.SystemException {
443 return getService().getFoldersFileEntriesCount(folderIds);
444 }
445
446 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
447 long groupId, int start, int end)
448 throws com.liferay.portal.SystemException {
449 return getService().getGroupFileEntries(groupId, start, end);
450 }
451
452 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
453 long groupId, int start, int end,
454 com.liferay.portal.kernel.util.OrderByComparator obc)
455 throws com.liferay.portal.SystemException {
456 return getService().getGroupFileEntries(groupId, start, end, obc);
457 }
458
459 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
460 long groupId, long userId, int start, int end)
461 throws com.liferay.portal.SystemException {
462 return getService().getGroupFileEntries(groupId, userId, start, end);
463 }
464
465 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
466 long groupId, long userId, int start, int end,
467 com.liferay.portal.kernel.util.OrderByComparator obc)
468 throws com.liferay.portal.SystemException {
469 return getService().getGroupFileEntries(groupId, userId, start, end, obc);
470 }
471
472 public static int getGroupFileEntriesCount(long groupId)
473 throws com.liferay.portal.SystemException {
474 return getService().getGroupFileEntriesCount(groupId);
475 }
476
477 public static int getGroupFileEntriesCount(long groupId, long userId)
478 throws com.liferay.portal.SystemException {
479 return getService().getGroupFileEntriesCount(groupId, userId);
480 }
481
482 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
483 throws com.liferay.portal.SystemException {
484 return getService().getNoAssetFileEntries();
485 }
486
487 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
488 long userId, long folderId, long newFolderId, java.lang.String name,
489 java.lang.String sourceFileName, java.lang.String title,
490 java.lang.String description, java.lang.String[] tagsEntries,
491 java.lang.String extraSettings, byte[] bytes)
492 throws com.liferay.portal.PortalException,
493 com.liferay.portal.SystemException {
494 return getService()
495 .updateFileEntry(userId, folderId, newFolderId, name,
496 sourceFileName, title, description, tagsEntries, extraSettings,
497 bytes);
498 }
499
500 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
501 long userId, long folderId, long newFolderId, java.lang.String name,
502 java.lang.String sourceFileName, java.lang.String title,
503 java.lang.String description, java.lang.String[] tagsEntries,
504 java.lang.String extraSettings, java.io.File file)
505 throws com.liferay.portal.PortalException,
506 com.liferay.portal.SystemException {
507 return getService()
508 .updateFileEntry(userId, folderId, newFolderId, name,
509 sourceFileName, title, description, tagsEntries, extraSettings, file);
510 }
511
512 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
513 long userId, long folderId, long newFolderId, java.lang.String name,
514 java.lang.String sourceFileName, java.lang.String title,
515 java.lang.String description, java.lang.String[] tagsEntries,
516 java.lang.String extraSettings, java.io.InputStream is, long size)
517 throws com.liferay.portal.PortalException,
518 com.liferay.portal.SystemException {
519 return getService()
520 .updateFileEntry(userId, folderId, newFolderId, name,
521 sourceFileName, title, description, tagsEntries, extraSettings, is,
522 size);
523 }
524
525 public static void updateTagsAsset(long userId,
526 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
527 java.lang.String[] tagsEntries)
528 throws com.liferay.portal.PortalException,
529 com.liferay.portal.SystemException {
530 getService().updateTagsAsset(userId, fileEntry, tagsEntries);
531 }
532
533 public static DLFileEntryLocalService getService() {
534 if (_service == null) {
535 _service = (DLFileEntryLocalService)PortalBeanLocatorUtil.locate(DLFileEntryLocalService.class.getName());
536 }
537
538 return _service;
539 }
540
541 public void setService(DLFileEntryLocalService service) {
542 _service = service;
543 }
544
545 private static DLFileEntryLocalService _service;
546 }