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