001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.search.IndexableType;
022 import com.liferay.portal.kernel.transaction.Isolation;
023 import com.liferay.portal.kernel.transaction.Propagation;
024 import com.liferay.portal.kernel.transaction.Transactional;
025 import com.liferay.portal.model.SystemEventConstants;
026 import com.liferay.portal.service.BaseLocalService;
027 import com.liferay.portal.service.PersistedModelLocalService;
028
029
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface DLFileEntryTypeLocalService extends BaseLocalService,
045 PersistedModelLocalService {
046
051
052
059 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
060 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addDLFileEntryType(
061 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
062 throws com.liferay.portal.kernel.exception.SystemException;
063
064
070 public com.liferay.portlet.documentlibrary.model.DLFileEntryType createDLFileEntryType(
071 long fileEntryTypeId);
072
073
081 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
082 public com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
083 long fileEntryTypeId)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException;
086
087
094 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
095 public com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
096 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
097 throws com.liferay.portal.kernel.exception.SystemException;
098
099 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
100
101
108 @SuppressWarnings("rawtypes")
109 public java.util.List dynamicQuery(
110 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end) throws com.liferay.portal.kernel.exception.SystemException;
130
131
145 @SuppressWarnings("rawtypes")
146 public java.util.List dynamicQuery(
147 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148 int end,
149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150 throws com.liferay.portal.kernel.exception.SystemException;
151
152
159 public long dynamicQueryCount(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
161 throws com.liferay.portal.kernel.exception.SystemException;
162
163
171 public long dynamicQueryCount(
172 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
173 com.liferay.portal.kernel.dao.orm.Projection projection)
174 throws com.liferay.portal.kernel.exception.SystemException;
175
176 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
177 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryType(
178 long fileEntryTypeId)
179 throws com.liferay.portal.kernel.exception.SystemException;
180
181
189 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
190 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryTypeByUuidAndCompanyId(
191 java.lang.String uuid, long companyId)
192 throws com.liferay.portal.kernel.exception.SystemException;
193
194
202 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
203 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryTypeByUuidAndGroupId(
204 java.lang.String uuid, long groupId)
205 throws com.liferay.portal.kernel.exception.SystemException;
206
207
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
217 long fileEntryTypeId)
218 throws com.liferay.portal.kernel.exception.PortalException,
219 com.liferay.portal.kernel.exception.SystemException;
220
221 @Override
222 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
223 public com.liferay.portal.model.PersistedModel getPersistedModel(
224 java.io.Serializable primaryKeyObj)
225 throws com.liferay.portal.kernel.exception.PortalException,
226 com.liferay.portal.kernel.exception.SystemException;
227
228
237 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
238 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndCompanyId(
239 java.lang.String uuid, long companyId)
240 throws com.liferay.portal.kernel.exception.PortalException,
241 com.liferay.portal.kernel.exception.SystemException;
242
243
252 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
253 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
254 java.lang.String uuid, long groupId)
255 throws com.liferay.portal.kernel.exception.PortalException,
256 com.liferay.portal.kernel.exception.SystemException;
257
258
270 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
271 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
272 int start, int end)
273 throws com.liferay.portal.kernel.exception.SystemException;
274
275
281 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
282 public int getDLFileEntryTypesCount()
283 throws com.liferay.portal.kernel.exception.SystemException;
284
285
292 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
293 public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
294 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
295 throws com.liferay.portal.kernel.exception.SystemException;
296
297
300 public void addDLFolderDLFileEntryType(long folderId, long fileEntryTypeId)
301 throws com.liferay.portal.kernel.exception.SystemException;
302
303
306 public void addDLFolderDLFileEntryType(long folderId,
307 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310
313 public void addDLFolderDLFileEntryTypes(long folderId,
314 long[] fileEntryTypeIds)
315 throws com.liferay.portal.kernel.exception.SystemException;
316
317
320 public void addDLFolderDLFileEntryTypes(long folderId,
321 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324
327 public void clearDLFolderDLFileEntryTypes(long folderId)
328 throws com.liferay.portal.kernel.exception.SystemException;
329
330
333 public void deleteDLFolderDLFileEntryType(long folderId,
334 long fileEntryTypeId)
335 throws com.liferay.portal.kernel.exception.SystemException;
336
337
340 public void deleteDLFolderDLFileEntryType(long folderId,
341 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
342 throws com.liferay.portal.kernel.exception.SystemException;
343
344
347 public void deleteDLFolderDLFileEntryTypes(long folderId,
348 long[] fileEntryTypeIds)
349 throws com.liferay.portal.kernel.exception.SystemException;
350
351
354 public void deleteDLFolderDLFileEntryTypes(long folderId,
355 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
356 throws com.liferay.portal.kernel.exception.SystemException;
357
358
361 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
362 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
363 long folderId)
364 throws com.liferay.portal.kernel.exception.SystemException;
365
366
369 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
371 long folderId, int start, int end)
372 throws com.liferay.portal.kernel.exception.SystemException;
373
374
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
379 long folderId, int start, int end,
380 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381 throws com.liferay.portal.kernel.exception.SystemException;
382
383
386 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387 public int getDLFolderDLFileEntryTypesCount(long folderId)
388 throws com.liferay.portal.kernel.exception.SystemException;
389
390
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public boolean hasDLFolderDLFileEntryType(long folderId,
395 long fileEntryTypeId)
396 throws com.liferay.portal.kernel.exception.SystemException;
397
398
401 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
402 public boolean hasDLFolderDLFileEntryTypes(long folderId)
403 throws com.liferay.portal.kernel.exception.SystemException;
404
405
408 public void setDLFolderDLFileEntryTypes(long folderId,
409 long[] fileEntryTypeIds)
410 throws com.liferay.portal.kernel.exception.SystemException;
411
412
415 public void addDDMStructureDLFileEntryType(long structureId,
416 long fileEntryTypeId)
417 throws com.liferay.portal.kernel.exception.SystemException;
418
419
422 public void addDDMStructureDLFileEntryType(long structureId,
423 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
424 throws com.liferay.portal.kernel.exception.SystemException;
425
426
429 public void addDDMStructureDLFileEntryTypes(long structureId,
430 long[] fileEntryTypeIds)
431 throws com.liferay.portal.kernel.exception.SystemException;
432
433
436 public void addDDMStructureDLFileEntryTypes(long structureId,
437 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
438 throws com.liferay.portal.kernel.exception.SystemException;
439
440
443 public void clearDDMStructureDLFileEntryTypes(long structureId)
444 throws com.liferay.portal.kernel.exception.SystemException;
445
446
449 public void deleteDDMStructureDLFileEntryType(long structureId,
450 long fileEntryTypeId)
451 throws com.liferay.portal.kernel.exception.SystemException;
452
453
456 public void deleteDDMStructureDLFileEntryType(long structureId,
457 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
458 throws com.liferay.portal.kernel.exception.SystemException;
459
460
463 public void deleteDDMStructureDLFileEntryTypes(long structureId,
464 long[] fileEntryTypeIds)
465 throws com.liferay.portal.kernel.exception.SystemException;
466
467
470 public void deleteDDMStructureDLFileEntryTypes(long structureId,
471 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
472 throws com.liferay.portal.kernel.exception.SystemException;
473
474
477 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
478 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
479 long structureId)
480 throws com.liferay.portal.kernel.exception.SystemException;
481
482
485 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
486 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
487 long structureId, int start, int end)
488 throws com.liferay.portal.kernel.exception.SystemException;
489
490
493 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
494 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
495 long structureId, int start, int end,
496 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
497 throws com.liferay.portal.kernel.exception.SystemException;
498
499
502 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
503 public int getDDMStructureDLFileEntryTypesCount(long structureId)
504 throws com.liferay.portal.kernel.exception.SystemException;
505
506
509 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
510 public boolean hasDDMStructureDLFileEntryType(long structureId,
511 long fileEntryTypeId)
512 throws com.liferay.portal.kernel.exception.SystemException;
513
514
517 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
518 public boolean hasDDMStructureDLFileEntryTypes(long structureId)
519 throws com.liferay.portal.kernel.exception.SystemException;
520
521
524 public void setDDMStructureDLFileEntryTypes(long structureId,
525 long[] fileEntryTypeIds)
526 throws com.liferay.portal.kernel.exception.SystemException;
527
528
533 public java.lang.String getBeanIdentifier();
534
535
540 public void setBeanIdentifier(java.lang.String beanIdentifier);
541
542 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
543 long userId, long groupId, java.lang.String fileEntryTypeKey,
544 java.util.Map<java.util.Locale, java.lang.String> nameMap,
545 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
546 long[] ddmStructureIds,
547 com.liferay.portal.service.ServiceContext serviceContext)
548 throws com.liferay.portal.kernel.exception.PortalException,
549 com.liferay.portal.kernel.exception.SystemException;
550
551 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
552 long userId, long groupId, java.lang.String name,
553 java.lang.String description, long[] ddmStructureIds,
554 com.liferay.portal.service.ServiceContext serviceContext)
555 throws com.liferay.portal.kernel.exception.PortalException,
556 com.liferay.portal.kernel.exception.SystemException;
557
558 public void cascadeFileEntryTypes(long userId,
559 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
560 throws com.liferay.portal.kernel.exception.PortalException,
561 com.liferay.portal.kernel.exception.SystemException;
562
563 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
564 public void deleteFileEntryType(
565 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
566 throws com.liferay.portal.kernel.exception.PortalException,
567 com.liferay.portal.kernel.exception.SystemException;
568
569 public void deleteFileEntryType(long fileEntryTypeId)
570 throws com.liferay.portal.kernel.exception.PortalException,
571 com.liferay.portal.kernel.exception.SystemException;
572
573 public void deleteFileEntryTypes(long groupId)
574 throws com.liferay.portal.kernel.exception.PortalException,
575 com.liferay.portal.kernel.exception.SystemException;
576
577 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
578 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
579 long fileEntryTypeId)
580 throws com.liferay.portal.kernel.exception.SystemException;
581
582 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
583 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
584 long groupId, java.lang.String fileEntryTypeKey)
585 throws com.liferay.portal.kernel.exception.SystemException;
586
587 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
588 public long getDefaultFileEntryTypeId(long folderId)
589 throws com.liferay.portal.kernel.exception.PortalException,
590 com.liferay.portal.kernel.exception.SystemException;
591
592 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
593 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
594 long fileEntryTypeId)
595 throws com.liferay.portal.kernel.exception.PortalException,
596 com.liferay.portal.kernel.exception.SystemException;
597
598 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
599 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
600 long groupId, java.lang.String fileEntryTypeKey)
601 throws com.liferay.portal.kernel.exception.PortalException,
602 com.liferay.portal.kernel.exception.SystemException;
603
604 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
605 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
606 long[] groupIds)
607 throws com.liferay.portal.kernel.exception.SystemException;
608
609 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
610 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
611 long[] groupIds, long folderId, boolean inherited)
612 throws com.liferay.portal.kernel.exception.PortalException,
613 com.liferay.portal.kernel.exception.SystemException;
614
615 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
616 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
617 long companyId, long[] groupIds, java.lang.String keywords,
618 boolean includeBasicFileEntryType, int start, int end,
619 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
620 throws com.liferay.portal.kernel.exception.SystemException;
621
622 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
623 public int searchCount(long companyId, long[] groupIds,
624 java.lang.String keywords, boolean includeBasicFileEntryType)
625 throws com.liferay.portal.kernel.exception.SystemException;
626
627 public void unsetFolderFileEntryTypes(long folderId)
628 throws com.liferay.portal.kernel.exception.SystemException;
629
630 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
631 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
632 com.liferay.portal.service.ServiceContext serviceContext)
633 throws com.liferay.portal.kernel.exception.PortalException,
634 com.liferay.portal.kernel.exception.SystemException;
635
636 public void updateFileEntryType(long userId, long fileEntryTypeId,
637 java.util.Map<java.util.Locale, java.lang.String> nameMap,
638 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
639 long[] ddmStructureIds,
640 com.liferay.portal.service.ServiceContext serviceContext)
641 throws com.liferay.portal.kernel.exception.PortalException,
642 com.liferay.portal.kernel.exception.SystemException;
643
644 public void updateFileEntryType(long userId, long fileEntryTypeId,
645 java.lang.String name, java.lang.String description,
646 long[] ddmStructureIds,
647 com.liferay.portal.service.ServiceContext serviceContext)
648 throws com.liferay.portal.kernel.exception.PortalException,
649 com.liferay.portal.kernel.exception.SystemException;
650
651 public void updateFolderFileEntryTypes(
652 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
653 java.util.List<java.lang.Long> fileEntryTypeIds,
654 long defaultFileEntryTypeId,
655 com.liferay.portal.service.ServiceContext serviceContext)
656 throws com.liferay.portal.kernel.exception.PortalException,
657 com.liferay.portal.kernel.exception.SystemException;
658 }