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