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