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