001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import com.liferay.portal.kernel.exception.PortalException;
018 import com.liferay.portal.kernel.exception.SystemException;
019 import com.liferay.portal.kernel.transaction.Isolation;
020 import com.liferay.portal.kernel.transaction.Propagation;
021 import com.liferay.portal.kernel.transaction.Transactional;
022 import com.liferay.portal.service.BaseLocalService;
023 import com.liferay.portal.service.PersistedModelLocalService;
024
025
037 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
038 PortalException.class, SystemException.class})
039 public interface DLFileEntryTypeLocalService extends BaseLocalService,
040 PersistedModelLocalService {
041
046
047
054 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addDLFileEntryType(
055 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058
064 public com.liferay.portlet.documentlibrary.model.DLFileEntryType createDLFileEntryType(
065 long fileEntryTypeId);
066
067
075 public com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
076 long fileEntryTypeId)
077 throws com.liferay.portal.kernel.exception.PortalException,
078 com.liferay.portal.kernel.exception.SystemException;
079
080
087 public com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
088 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
089 throws com.liferay.portal.kernel.exception.SystemException;
090
091 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
092
093
100 @SuppressWarnings("rawtypes")
101 public java.util.List dynamicQuery(
102 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105
118 @SuppressWarnings("rawtypes")
119 public java.util.List dynamicQuery(
120 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121 int end) throws com.liferay.portal.kernel.exception.SystemException;
122
123
137 @SuppressWarnings("rawtypes")
138 public java.util.List dynamicQuery(
139 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
140 int end,
141 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144
151 public long dynamicQueryCount(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153 throws com.liferay.portal.kernel.exception.SystemException;
154
155
163 public long dynamicQueryCount(
164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
165 com.liferay.portal.kernel.dao.orm.Projection projection)
166 throws com.liferay.portal.kernel.exception.SystemException;
167
168 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
169 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryType(
170 long fileEntryTypeId)
171 throws com.liferay.portal.kernel.exception.SystemException;
172
173
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryTypeByUuidAndCompanyId(
183 java.lang.String uuid, long companyId)
184 throws com.liferay.portal.kernel.exception.SystemException;
185
186
194 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
195 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryTypeByUuidAndGroupId(
196 java.lang.String uuid, long groupId)
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199
207 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
208 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
209 long fileEntryTypeId)
210 throws com.liferay.portal.kernel.exception.PortalException,
211 com.liferay.portal.kernel.exception.SystemException;
212
213 @Override
214 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
215 public com.liferay.portal.model.PersistedModel getPersistedModel(
216 java.io.Serializable primaryKeyObj)
217 throws com.liferay.portal.kernel.exception.PortalException,
218 com.liferay.portal.kernel.exception.SystemException;
219
220
229 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
230 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndCompanyId(
231 java.lang.String uuid, long companyId)
232 throws com.liferay.portal.kernel.exception.PortalException,
233 com.liferay.portal.kernel.exception.SystemException;
234
235
244 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
245 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
246 java.lang.String uuid, long groupId)
247 throws com.liferay.portal.kernel.exception.PortalException,
248 com.liferay.portal.kernel.exception.SystemException;
249
250
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
264 int start, int end)
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267
273 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
274 public int getDLFileEntryTypesCount()
275 throws com.liferay.portal.kernel.exception.SystemException;
276
277
284 public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
285 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
286 throws com.liferay.portal.kernel.exception.SystemException;
287
288
291 public void addDLFolderDLFileEntryType(long folderId, long fileEntryTypeId)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294
297 public void addDLFolderDLFileEntryType(long folderId,
298 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301
304 public void addDLFolderDLFileEntryTypes(long folderId,
305 long[] fileEntryTypeIds)
306 throws com.liferay.portal.kernel.exception.SystemException;
307
308
311 public void addDLFolderDLFileEntryTypes(long folderId,
312 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
313 throws com.liferay.portal.kernel.exception.SystemException;
314
315
318 public void clearDLFolderDLFileEntryTypes(long folderId)
319 throws com.liferay.portal.kernel.exception.SystemException;
320
321
324 public void deleteDLFolderDLFileEntryType(long folderId,
325 long fileEntryTypeId)
326 throws com.liferay.portal.kernel.exception.SystemException;
327
328
331 public void deleteDLFolderDLFileEntryType(long folderId,
332 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
333 throws com.liferay.portal.kernel.exception.SystemException;
334
335
338 public void deleteDLFolderDLFileEntryTypes(long folderId,
339 long[] fileEntryTypeIds)
340 throws com.liferay.portal.kernel.exception.SystemException;
341
342
345 public void deleteDLFolderDLFileEntryTypes(long folderId,
346 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
347 throws com.liferay.portal.kernel.exception.SystemException;
348
349
352 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
353 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
354 long folderId)
355 throws com.liferay.portal.kernel.exception.SystemException;
356
357
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
362 long folderId, int start, int end)
363 throws com.liferay.portal.kernel.exception.SystemException;
364
365
368 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
369 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
370 long folderId, int start, int end,
371 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
372 throws com.liferay.portal.kernel.exception.SystemException;
373
374
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public int getDLFolderDLFileEntryTypesCount(long folderId)
379 throws com.liferay.portal.kernel.exception.SystemException;
380
381
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public boolean hasDLFolderDLFileEntryType(long folderId,
386 long fileEntryTypeId)
387 throws com.liferay.portal.kernel.exception.SystemException;
388
389
392 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393 public boolean hasDLFolderDLFileEntryTypes(long folderId)
394 throws com.liferay.portal.kernel.exception.SystemException;
395
396
399 public void setDLFolderDLFileEntryTypes(long folderId,
400 long[] fileEntryTypeIds)
401 throws com.liferay.portal.kernel.exception.SystemException;
402
403
406 public void addDDMStructureDLFileEntryType(long structureId,
407 long fileEntryTypeId)
408 throws com.liferay.portal.kernel.exception.SystemException;
409
410
413 public void addDDMStructureDLFileEntryType(long structureId,
414 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
415 throws com.liferay.portal.kernel.exception.SystemException;
416
417
420 public void addDDMStructureDLFileEntryTypes(long structureId,
421 long[] fileEntryTypeIds)
422 throws com.liferay.portal.kernel.exception.SystemException;
423
424
427 public void addDDMStructureDLFileEntryTypes(long structureId,
428 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
429 throws com.liferay.portal.kernel.exception.SystemException;
430
431
434 public void clearDDMStructureDLFileEntryTypes(long structureId)
435 throws com.liferay.portal.kernel.exception.SystemException;
436
437
440 public void deleteDDMStructureDLFileEntryType(long structureId,
441 long fileEntryTypeId)
442 throws com.liferay.portal.kernel.exception.SystemException;
443
444
447 public void deleteDDMStructureDLFileEntryType(long structureId,
448 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
449 throws com.liferay.portal.kernel.exception.SystemException;
450
451
454 public void deleteDDMStructureDLFileEntryTypes(long structureId,
455 long[] fileEntryTypeIds)
456 throws com.liferay.portal.kernel.exception.SystemException;
457
458
461 public void deleteDDMStructureDLFileEntryTypes(long structureId,
462 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
463 throws com.liferay.portal.kernel.exception.SystemException;
464
465
468 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
470 long structureId)
471 throws com.liferay.portal.kernel.exception.SystemException;
472
473
476 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
477 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
478 long structureId, int start, int end)
479 throws com.liferay.portal.kernel.exception.SystemException;
480
481
484 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
485 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
486 long structureId, int start, int end,
487 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
488 throws com.liferay.portal.kernel.exception.SystemException;
489
490
493 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
494 public int getDDMStructureDLFileEntryTypesCount(long structureId)
495 throws com.liferay.portal.kernel.exception.SystemException;
496
497
500 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
501 public boolean hasDDMStructureDLFileEntryType(long structureId,
502 long fileEntryTypeId)
503 throws com.liferay.portal.kernel.exception.SystemException;
504
505
508 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
509 public boolean hasDDMStructureDLFileEntryTypes(long structureId)
510 throws com.liferay.portal.kernel.exception.SystemException;
511
512
515 public void setDDMStructureDLFileEntryTypes(long structureId,
516 long[] fileEntryTypeIds)
517 throws com.liferay.portal.kernel.exception.SystemException;
518
519
524 public java.lang.String getBeanIdentifier();
525
526
531 public void setBeanIdentifier(java.lang.String beanIdentifier);
532
533 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
534 long userId, long groupId, java.lang.String fileEntryTypeKey,
535 java.util.Map<java.util.Locale, java.lang.String> nameMap,
536 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
537 long[] ddmStructureIds,
538 com.liferay.portal.service.ServiceContext serviceContext)
539 throws com.liferay.portal.kernel.exception.PortalException,
540 com.liferay.portal.kernel.exception.SystemException;
541
542 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
543 long userId, long groupId, java.lang.String name,
544 java.lang.String description, long[] ddmStructureIds,
545 com.liferay.portal.service.ServiceContext serviceContext)
546 throws com.liferay.portal.kernel.exception.PortalException,
547 com.liferay.portal.kernel.exception.SystemException;
548
549 public void cascadeFileEntryTypes(long userId,
550 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
551 throws com.liferay.portal.kernel.exception.PortalException,
552 com.liferay.portal.kernel.exception.SystemException;
553
554 public void deleteFileEntryType(
555 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
556 throws com.liferay.portal.kernel.exception.PortalException,
557 com.liferay.portal.kernel.exception.SystemException;
558
559 public void deleteFileEntryType(long fileEntryTypeId)
560 throws com.liferay.portal.kernel.exception.PortalException,
561 com.liferay.portal.kernel.exception.SystemException;
562
563 public void deleteFileEntryTypes(long groupId)
564 throws com.liferay.portal.kernel.exception.PortalException,
565 com.liferay.portal.kernel.exception.SystemException;
566
567 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
568 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
569 long fileEntryTypeId)
570 throws com.liferay.portal.kernel.exception.SystemException;
571
572 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
573 public long getDefaultFileEntryTypeId(long folderId)
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 getFileEntryType(
579 long fileEntryTypeId)
580 throws com.liferay.portal.kernel.exception.PortalException,
581 com.liferay.portal.kernel.exception.SystemException;
582
583 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
584 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
585 long groupId, java.lang.String fileEntryTypeKey)
586 throws com.liferay.portal.kernel.exception.PortalException,
587 com.liferay.portal.kernel.exception.SystemException;
588
589 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
590 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
591 long[] groupIds)
592 throws com.liferay.portal.kernel.exception.SystemException;
593
594 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
595 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
596 long[] groupIds, long folderId, boolean inherited)
597 throws com.liferay.portal.kernel.exception.PortalException,
598 com.liferay.portal.kernel.exception.SystemException;
599
600 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
601 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
602 long companyId, long[] groupIds, java.lang.String keywords,
603 boolean includeBasicFileEntryType, int start, int end,
604 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
605 throws com.liferay.portal.kernel.exception.SystemException;
606
607 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
608 public int searchCount(long companyId, long[] groupIds,
609 java.lang.String keywords, boolean includeBasicFileEntryType)
610 throws com.liferay.portal.kernel.exception.SystemException;
611
612 public void unsetFolderFileEntryTypes(long folderId)
613 throws com.liferay.portal.kernel.exception.SystemException;
614
615 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
616 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
617 com.liferay.portal.service.ServiceContext serviceContext)
618 throws com.liferay.portal.kernel.exception.PortalException,
619 com.liferay.portal.kernel.exception.SystemException;
620
621 public void updateFileEntryType(long userId, long fileEntryTypeId,
622 java.util.Map<java.util.Locale, java.lang.String> nameMap,
623 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
624 long[] ddmStructureIds,
625 com.liferay.portal.service.ServiceContext serviceContext)
626 throws com.liferay.portal.kernel.exception.PortalException,
627 com.liferay.portal.kernel.exception.SystemException;
628
629 public void updateFileEntryType(long userId, long fileEntryTypeId,
630 java.lang.String name, java.lang.String description,
631 long[] ddmStructureIds,
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 updateFolderFileEntryTypes(
637 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
638 java.util.List<java.lang.Long> fileEntryTypeIds,
639 long defaultFileEntryTypeId,
640 com.liferay.portal.service.ServiceContext serviceContext)
641 throws com.liferay.portal.kernel.exception.PortalException,
642 com.liferay.portal.kernel.exception.SystemException;
643 }