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