001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class DLFolderLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.documentlibrary.model.DLFolder addDLFolder(
048 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addDLFolder(dlFolder);
051 }
052
053
059 public static com.liferay.portlet.documentlibrary.model.DLFolder createDLFolder(
060 long folderId) {
061 return getService().createDLFolder(folderId);
062 }
063
064
072 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
073 long folderId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteDLFolder(folderId);
077 }
078
079
086 public static com.liferay.portlet.documentlibrary.model.DLFolder deleteDLFolder(
087 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteDLFolder(dlFolder);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchDLFolder(
168 long folderId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchDLFolder(folderId);
171 }
172
173
181 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolder(
182 long folderId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getDLFolder(folderId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
204 public static com.liferay.portlet.documentlibrary.model.DLFolder getDLFolderByUuidAndGroupId(
205 java.lang.String uuid, long groupId)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException {
208 return getService().getDLFolderByUuidAndGroupId(uuid, groupId);
209 }
210
211
223 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getDLFolders(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getDLFolders(start, end);
227 }
228
229
235 public static int getDLFoldersCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getDLFoldersCount();
238 }
239
240
247 public static com.liferay.portlet.documentlibrary.model.DLFolder updateDLFolder(
248 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateDLFolder(dlFolder);
251 }
252
253
258 public static java.lang.String getBeanIdentifier() {
259 return getService().getBeanIdentifier();
260 }
261
262
267 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
268 getService().setBeanIdentifier(beanIdentifier);
269 }
270
271 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
272 long userId, long groupId, long repositoryId, boolean mountPoint,
273 long parentFolderId, java.lang.String name,
274 java.lang.String description, boolean hidden,
275 com.liferay.portal.service.ServiceContext serviceContext)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException {
278 return getService()
279 .addFolder(userId, groupId, repositoryId, mountPoint,
280 parentFolderId, name, description, hidden, serviceContext);
281 }
282
283
288 public static com.liferay.portlet.documentlibrary.model.DLFolder addFolder(
289 long userId, long groupId, long repositoryId, boolean mountPoint,
290 long parentFolderId, java.lang.String name,
291 java.lang.String description,
292 com.liferay.portal.service.ServiceContext serviceContext)
293 throws com.liferay.portal.kernel.exception.PortalException,
294 com.liferay.portal.kernel.exception.SystemException {
295 return getService()
296 .addFolder(userId, groupId, repositoryId, mountPoint,
297 parentFolderId, name, description, serviceContext);
298 }
299
300 public static void deleteAll(long groupId)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException {
303 getService().deleteAll(groupId);
304 }
305
306 public static void deleteFolder(long folderId)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException {
309 getService().deleteFolder(folderId);
310 }
311
312 public static void deleteFolder(long folderId, boolean includeTrashedEntries)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException {
315 getService().deleteFolder(folderId, includeTrashedEntries);
316 }
317
318 public static com.liferay.portlet.documentlibrary.model.DLFolder fetchFolder(
319 long groupId, long parentFolderId, java.lang.String name)
320 throws com.liferay.portal.kernel.exception.SystemException {
321 return getService().fetchFolder(groupId, parentFolderId, name);
322 }
323
324 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getCompanyFolders(
325 long companyId, int start, int end)
326 throws com.liferay.portal.kernel.exception.SystemException {
327 return getService().getCompanyFolders(companyId, start, end);
328 }
329
330 public static int getCompanyFoldersCount(long companyId)
331 throws com.liferay.portal.kernel.exception.SystemException {
332 return getService().getCompanyFoldersCount(companyId);
333 }
334
335
339 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
340 long groupId, long folderId, int status, int start, int end)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 return getService()
343 .getFileEntriesAndFileShortcuts(groupId, folderId, status,
344 start, end);
345 }
346
347 public static java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(
348 long groupId, long folderId,
349 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
350 throws com.liferay.portal.kernel.exception.SystemException {
351 return getService()
352 .getFileEntriesAndFileShortcuts(groupId, folderId,
353 queryDefinition);
354 }
355
356
360 public static int getFileEntriesAndFileShortcutsCount(long groupId,
361 long folderId, int status)
362 throws com.liferay.portal.kernel.exception.SystemException {
363 return getService()
364 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
365 status);
366 }
367
368 public static int getFileEntriesAndFileShortcutsCount(long groupId,
369 long folderId,
370 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
371 throws com.liferay.portal.kernel.exception.SystemException {
372 return getService()
373 .getFileEntriesAndFileShortcutsCount(groupId, folderId,
374 queryDefinition);
375 }
376
377 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
378 long folderId)
379 throws com.liferay.portal.kernel.exception.PortalException,
380 com.liferay.portal.kernel.exception.SystemException {
381 return getService().getFolder(folderId);
382 }
383
384 public static com.liferay.portlet.documentlibrary.model.DLFolder getFolder(
385 long groupId, long parentFolderId, java.lang.String name)
386 throws com.liferay.portal.kernel.exception.PortalException,
387 com.liferay.portal.kernel.exception.SystemException {
388 return getService().getFolder(groupId, parentFolderId, name);
389 }
390
391 public static long getFolderId(long companyId, long folderId)
392 throws com.liferay.portal.kernel.exception.SystemException {
393 return getService().getFolderId(companyId, folderId);
394 }
395
396 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
397 long groupId, long parentFolderId)
398 throws com.liferay.portal.kernel.exception.SystemException {
399 return getService().getFolders(groupId, parentFolderId);
400 }
401
402 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
403 long groupId, long parentFolderId, boolean includeMountfolders)
404 throws com.liferay.portal.kernel.exception.SystemException {
405 return getService()
406 .getFolders(groupId, parentFolderId, includeMountfolders);
407 }
408
409 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
410 long groupId, long parentFolderId, boolean includeMountfolders,
411 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
412 throws com.liferay.portal.kernel.exception.SystemException {
413 return getService()
414 .getFolders(groupId, parentFolderId, includeMountfolders,
415 start, end, obc);
416 }
417
418 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(
419 long groupId, long parentFolderId, int start, int end,
420 com.liferay.portal.kernel.util.OrderByComparator obc)
421 throws com.liferay.portal.kernel.exception.SystemException {
422 return getService().getFolders(groupId, parentFolderId, start, end, obc);
423 }
424
425
430 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
431 long groupId, long folderId, int status, boolean includeMountFolders,
432 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
433 throws com.liferay.portal.kernel.exception.SystemException {
434 return getService()
435 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
436 status, includeMountFolders, start, end, obc);
437 }
438
439
444 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
445 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
446 boolean includeMountFolders, int start, int end,
447 com.liferay.portal.kernel.util.OrderByComparator obc)
448 throws com.liferay.portal.kernel.exception.SystemException {
449 return getService()
450 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
451 status, mimeTypes, includeMountFolders, start, end, obc);
452 }
453
454 public static java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(
455 long groupId, long folderId, java.lang.String[] mimeTypes,
456 boolean includeMountFolders,
457 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
458 throws com.liferay.portal.kernel.exception.SystemException {
459 return getService()
460 .getFoldersAndFileEntriesAndFileShortcuts(groupId, folderId,
461 mimeTypes, includeMountFolders, queryDefinition);
462 }
463
464
469 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
470 long groupId, long folderId, int status, boolean includeMountFolders)
471 throws com.liferay.portal.kernel.exception.SystemException {
472 return getService()
473 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
474 folderId, status, includeMountFolders);
475 }
476
477
482 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
483 long groupId, long folderId, int status, java.lang.String[] mimeTypes,
484 boolean includeMountFolders)
485 throws com.liferay.portal.kernel.exception.SystemException {
486 return getService()
487 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
488 folderId, status, mimeTypes, includeMountFolders);
489 }
490
491 public static int getFoldersAndFileEntriesAndFileShortcutsCount(
492 long groupId, long folderId, java.lang.String[] mimeTypes,
493 boolean includeMountFolders,
494 com.liferay.portal.kernel.dao.orm.QueryDefinition queryDefinition)
495 throws com.liferay.portal.kernel.exception.SystemException {
496 return getService()
497 .getFoldersAndFileEntriesAndFileShortcutsCount(groupId,
498 folderId, mimeTypes, includeMountFolders, queryDefinition);
499 }
500
501 public static int getFoldersCount(long groupId, long parentFolderId)
502 throws com.liferay.portal.kernel.exception.SystemException {
503 return getService().getFoldersCount(groupId, parentFolderId);
504 }
505
506 public static int getFoldersCount(long groupId, long parentFolderId,
507 boolean includeMountfolders)
508 throws com.liferay.portal.kernel.exception.SystemException {
509 return getService()
510 .getFoldersCount(groupId, parentFolderId, includeMountfolders);
511 }
512
513 public static com.liferay.portlet.documentlibrary.model.DLFolder getMountFolder(
514 long repositoryId)
515 throws com.liferay.portal.kernel.exception.PortalException,
516 com.liferay.portal.kernel.exception.SystemException {
517 return getService().getMountFolder(repositoryId);
518 }
519
520 public static java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getMountFolders(
521 long groupId, long parentFolderId, int start, int end,
522 com.liferay.portal.kernel.util.OrderByComparator obc)
523 throws com.liferay.portal.kernel.exception.SystemException {
524 return getService()
525 .getMountFolders(groupId, parentFolderId, start, end, obc);
526 }
527
528 public static int getMountFoldersCount(long groupId, long parentFolderId)
529 throws com.liferay.portal.kernel.exception.SystemException {
530 return getService().getMountFoldersCount(groupId, parentFolderId);
531 }
532
533 public static void getSubfolderIds(
534 java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
535 throws com.liferay.portal.kernel.exception.SystemException {
536 getService().getSubfolderIds(folderIds, groupId, folderId);
537 }
538
539 public static com.liferay.portlet.documentlibrary.model.DLFolder moveFolder(
540 long folderId, long parentFolderId,
541 com.liferay.portal.service.ServiceContext serviceContext)
542 throws com.liferay.portal.kernel.exception.PortalException,
543 com.liferay.portal.kernel.exception.SystemException {
544 return getService().moveFolder(folderId, parentFolderId, serviceContext);
545 }
546
547 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
548 long folderId, long parentFolderId, java.lang.String name,
549 java.lang.String description, long defaultFileEntryTypeId,
550 java.util.List<java.lang.Long> fileEntryTypeIds,
551 boolean overrideFileEntryTypes,
552 com.liferay.portal.service.ServiceContext serviceContext)
553 throws com.liferay.portal.kernel.exception.PortalException,
554 com.liferay.portal.kernel.exception.SystemException {
555 return getService()
556 .updateFolder(folderId, parentFolderId, name, description,
557 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
558 serviceContext);
559 }
560
561 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(
562 long folderId, java.lang.String name, java.lang.String description,
563 long defaultFileEntryTypeId,
564 java.util.List<java.lang.Long> fileEntryTypeIds,
565 boolean overrideFileEntryTypes,
566 com.liferay.portal.service.ServiceContext serviceContext)
567 throws com.liferay.portal.kernel.exception.PortalException,
568 com.liferay.portal.kernel.exception.SystemException {
569 return getService()
570 .updateFolder(folderId, name, description,
571 defaultFileEntryTypeId, fileEntryTypeIds, overrideFileEntryTypes,
572 serviceContext);
573 }
574
575 public static com.liferay.portlet.documentlibrary.model.DLFolder updateFolderAndFileEntryTypes(
576 long folderId, long parentFolderId, java.lang.String name,
577 java.lang.String description, long defaultFileEntryTypeId,
578 java.util.List<java.lang.Long> fileEntryTypeIds,
579 boolean overrideFileEntryTypes,
580 com.liferay.portal.service.ServiceContext serviceContext)
581 throws com.liferay.portal.kernel.exception.PortalException,
582 com.liferay.portal.kernel.exception.SystemException {
583 return getService()
584 .updateFolderAndFileEntryTypes(folderId, parentFolderId,
585 name, description, defaultFileEntryTypeId, fileEntryTypeIds,
586 overrideFileEntryTypes, serviceContext);
587 }
588
589 public static void updateLastPostDate(long folderId,
590 java.util.Date lastPostDate)
591 throws com.liferay.portal.kernel.exception.PortalException,
592 com.liferay.portal.kernel.exception.SystemException {
593 getService().updateLastPostDate(folderId, lastPostDate);
594 }
595
596 public static com.liferay.portlet.documentlibrary.model.DLFolder updateStatus(
597 long userId, long folderId, int status,
598 java.util.Map<java.lang.String, java.io.Serializable> workflowContext,
599 com.liferay.portal.service.ServiceContext serviceContext)
600 throws com.liferay.portal.kernel.exception.PortalException,
601 com.liferay.portal.kernel.exception.SystemException {
602 return getService()
603 .updateStatus(userId, folderId, status, workflowContext,
604 serviceContext);
605 }
606
607 public static DLFolderLocalService getService() {
608 if (_service == null) {
609 _service = (DLFolderLocalService)PortalBeanLocatorUtil.locate(DLFolderLocalService.class.getName());
610
611 ReferenceRegistry.registerReference(DLFolderLocalServiceUtil.class,
612 "_service");
613 }
614
615 return _service;
616 }
617
618
621 public void setService(DLFolderLocalService service) {
622 }
623
624 private static DLFolderLocalService _service;
625 }