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 extraSettings, byte[] bytes,
116 com.liferay.portal.service.ServiceContext serviceContext)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException {
119 return getService()
120 .addFileEntry(userId, folderId, name, title, description,
121 extraSettings, bytes, serviceContext);
122 }
123
124 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
125 long userId, long folderId, java.lang.String name,
126 java.lang.String title, java.lang.String description,
127 java.lang.String extraSettings, java.io.File file,
128 com.liferay.portal.service.ServiceContext serviceContext)
129 throws com.liferay.portal.PortalException,
130 com.liferay.portal.SystemException {
131 return getService()
132 .addFileEntry(userId, folderId, name, title, description,
133 extraSettings, file, serviceContext);
134 }
135
136 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
137 java.lang.String uuid, long userId, long folderId,
138 java.lang.String name, java.lang.String title,
139 java.lang.String description, java.lang.String extraSettings,
140 byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
141 throws com.liferay.portal.PortalException,
142 com.liferay.portal.SystemException {
143 return getService()
144 .addFileEntry(uuid, userId, folderId, name, title,
145 description, extraSettings, bytes, serviceContext);
146 }
147
148 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(
149 java.lang.String uuid, long userId, long folderId,
150 java.lang.String name, java.lang.String title,
151 java.lang.String description, java.lang.String extraSettings,
152 java.io.InputStream is, long size,
153 com.liferay.portal.service.ServiceContext serviceContext)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException {
156 return getService()
157 .addFileEntry(uuid, userId, folderId, name, title,
158 description, extraSettings, is, size, serviceContext);
159 }
160
161 public static void addFileEntryResources(long fileEntryId,
162 boolean addCommunityPermissions, boolean addGuestPermissions)
163 throws com.liferay.portal.PortalException,
164 com.liferay.portal.SystemException {
165 getService()
166 .addFileEntryResources(fileEntryId, addCommunityPermissions,
167 addGuestPermissions);
168 }
169
170 public static void addFileEntryResources(
171 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
172 boolean addCommunityPermissions, boolean addGuestPermissions)
173 throws com.liferay.portal.PortalException,
174 com.liferay.portal.SystemException {
175 getService()
176 .addFileEntryResources(fileEntry, addCommunityPermissions,
177 addGuestPermissions);
178 }
179
180 public static void addFileEntryResources(long fileEntryId,
181 java.lang.String[] communityPermissions,
182 java.lang.String[] guestPermissions)
183 throws com.liferay.portal.PortalException,
184 com.liferay.portal.SystemException {
185 getService()
186 .addFileEntryResources(fileEntryId, communityPermissions,
187 guestPermissions);
188 }
189
190 public static void addFileEntryResources(
191 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
192 java.lang.String[] communityPermissions,
193 java.lang.String[] guestPermissions)
194 throws com.liferay.portal.PortalException,
195 com.liferay.portal.SystemException {
196 getService()
197 .addFileEntryResources(fileEntry, communityPermissions,
198 guestPermissions);
199 }
200
201 public static com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(
202 long userId, long folderId, java.lang.String name,
203 java.lang.String sourceName, java.lang.String title,
204 java.lang.String description, java.lang.String extraSettings,
205 java.io.File file,
206 com.liferay.portal.service.ServiceContext serviceContext)
207 throws com.liferay.portal.PortalException,
208 com.liferay.portal.SystemException {
209 return getService()
210 .addOrOverwriteFileEntry(userId, folderId, name, sourceName,
211 title, description, extraSettings, file, serviceContext);
212 }
213
214 public static void deleteFileEntries(long folderId)
215 throws com.liferay.portal.PortalException,
216 com.liferay.portal.SystemException {
217 getService().deleteFileEntries(folderId);
218 }
219
220 public static void deleteFileEntry(long folderId, java.lang.String name)
221 throws com.liferay.portal.PortalException,
222 com.liferay.portal.SystemException {
223 getService().deleteFileEntry(folderId, name);
224 }
225
226 public static void deleteFileEntry(long folderId, java.lang.String name,
227 double version)
228 throws com.liferay.portal.PortalException,
229 com.liferay.portal.SystemException {
230 getService().deleteFileEntry(folderId, name, version);
231 }
232
233 public static void deleteFileEntry(
234 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
235 throws com.liferay.portal.PortalException,
236 com.liferay.portal.SystemException {
237 getService().deleteFileEntry(fileEntry);
238 }
239
240 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
241 long companyId, int start, int end)
242 throws com.liferay.portal.SystemException {
243 return getService().getCompanyFileEntries(companyId, start, end);
244 }
245
246 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(
247 long companyId, int start, int end,
248 com.liferay.portal.kernel.util.OrderByComparator obc)
249 throws com.liferay.portal.SystemException {
250 return getService().getCompanyFileEntries(companyId, start, end, obc);
251 }
252
253 public static int getCompanyFileEntriesCount(long companyId)
254 throws com.liferay.portal.SystemException {
255 return getService().getCompanyFileEntriesCount(companyId);
256 }
257
258 public static java.io.InputStream getFileAsStream(long companyId,
259 long userId, long folderId, java.lang.String name)
260 throws com.liferay.portal.PortalException,
261 com.liferay.portal.SystemException {
262 return getService().getFileAsStream(companyId, userId, folderId, name);
263 }
264
265 public static java.io.InputStream getFileAsStream(long companyId,
266 long userId, long folderId, java.lang.String name, double version)
267 throws com.liferay.portal.PortalException,
268 com.liferay.portal.SystemException {
269 return getService()
270 .getFileAsStream(companyId, userId, folderId, name, version);
271 }
272
273 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
274 long folderId) throws com.liferay.portal.SystemException {
275 return getService().getFileEntries(folderId);
276 }
277
278 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
279 long folderId, int start, int end)
280 throws com.liferay.portal.SystemException {
281 return getService().getFileEntries(folderId, start, end);
282 }
283
284 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(
285 long folderId, int start, int end,
286 com.liferay.portal.kernel.util.OrderByComparator obc)
287 throws com.liferay.portal.SystemException {
288 return getService().getFileEntries(folderId, start, end, obc);
289 }
290
291 public static int getFileEntriesCount(long folderId)
292 throws com.liferay.portal.SystemException {
293 return getService().getFileEntriesCount(folderId);
294 }
295
296 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
297 long fileEntryId)
298 throws com.liferay.portal.PortalException,
299 com.liferay.portal.SystemException {
300 return getService().getFileEntry(fileEntryId);
301 }
302
303 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(
304 long folderId, java.lang.String name)
305 throws com.liferay.portal.PortalException,
306 com.liferay.portal.SystemException {
307 return getService().getFileEntry(folderId, name);
308 }
309
310 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(
311 java.lang.String uuid, long groupId)
312 throws com.liferay.portal.PortalException,
313 com.liferay.portal.SystemException {
314 return getService().getFileEntryByUuidAndGroupId(uuid, groupId);
315 }
316
317 public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(
318 long folderId, java.lang.String titleWithExtension)
319 throws com.liferay.portal.PortalException,
320 com.liferay.portal.SystemException {
321 return getService().getFileEntryByTitle(folderId, titleWithExtension);
322 }
323
324 public static int getFoldersFileEntriesCount(java.util.List<Long> folderIds)
325 throws com.liferay.portal.SystemException {
326 return getService().getFoldersFileEntriesCount(folderIds);
327 }
328
329 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
330 long groupId, int start, int end)
331 throws com.liferay.portal.SystemException {
332 return getService().getGroupFileEntries(groupId, start, end);
333 }
334
335 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
336 long groupId, int start, int end,
337 com.liferay.portal.kernel.util.OrderByComparator obc)
338 throws com.liferay.portal.SystemException {
339 return getService().getGroupFileEntries(groupId, start, end, obc);
340 }
341
342 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
343 long groupId, long userId, int start, int end)
344 throws com.liferay.portal.SystemException {
345 return getService().getGroupFileEntries(groupId, userId, start, end);
346 }
347
348 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(
349 long groupId, long userId, int start, int end,
350 com.liferay.portal.kernel.util.OrderByComparator obc)
351 throws com.liferay.portal.SystemException {
352 return getService().getGroupFileEntries(groupId, userId, start, end, obc);
353 }
354
355 public static int getGroupFileEntriesCount(long groupId)
356 throws com.liferay.portal.SystemException {
357 return getService().getGroupFileEntriesCount(groupId);
358 }
359
360 public static int getGroupFileEntriesCount(long groupId, long userId)
361 throws com.liferay.portal.SystemException {
362 return getService().getGroupFileEntriesCount(groupId, userId);
363 }
364
365 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
366 throws com.liferay.portal.SystemException {
367 return getService().getNoAssetFileEntries();
368 }
369
370 public static void reIndex(long fileEntryId)
371 throws com.liferay.portal.SystemException {
372 getService().reIndex(fileEntryId);
373 }
374
375 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
376 long userId, long folderId, long newFolderId, java.lang.String name,
377 java.lang.String sourceFileName, java.lang.String title,
378 java.lang.String description, java.lang.String extraSettings,
379 java.io.File file,
380 com.liferay.portal.service.ServiceContext serviceContext)
381 throws com.liferay.portal.PortalException,
382 com.liferay.portal.SystemException {
383 return getService()
384 .updateFileEntry(userId, folderId, newFolderId, name,
385 sourceFileName, title, description, extraSettings, file,
386 serviceContext);
387 }
388
389 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
390 long userId, long folderId, long newFolderId, java.lang.String name,
391 java.lang.String sourceFileName, java.lang.String title,
392 java.lang.String description, java.lang.String extraSettings,
393 byte[] bytes, com.liferay.portal.service.ServiceContext serviceContext)
394 throws com.liferay.portal.PortalException,
395 com.liferay.portal.SystemException {
396 return getService()
397 .updateFileEntry(userId, folderId, newFolderId, name,
398 sourceFileName, title, description, extraSettings, bytes,
399 serviceContext);
400 }
401
402 public static com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(
403 long userId, long folderId, long newFolderId, java.lang.String name,
404 java.lang.String sourceFileName, java.lang.String title,
405 java.lang.String description, java.lang.String extraSettings,
406 java.io.InputStream is, long size,
407 com.liferay.portal.service.ServiceContext serviceContext)
408 throws com.liferay.portal.PortalException,
409 com.liferay.portal.SystemException {
410 return getService()
411 .updateFileEntry(userId, folderId, newFolderId, name,
412 sourceFileName, title, description, extraSettings, is, size,
413 serviceContext);
414 }
415
416 public static void updateTagsAsset(long userId,
417 com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
418 java.lang.String[] tagsCategories, java.lang.String[] tagsEntries)
419 throws com.liferay.portal.PortalException,
420 com.liferay.portal.SystemException {
421 getService()
422 .updateTagsAsset(userId, fileEntry, tagsCategories, tagsEntries);
423 }
424
425 public static DLFileEntryLocalService getService() {
426 if (_service == null) {
427 throw new RuntimeException("DLFileEntryLocalService is not set");
428 }
429
430 return _service;
431 }
432
433 public void setService(DLFileEntryLocalService service) {
434 _service = service;
435 }
436
437 private static DLFileEntryLocalService _service;
438 }