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
038 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
039 PortalException.class, SystemException.class})
040 public interface DLFileEntryTypeLocalService extends BaseLocalService,
041 PersistedModelLocalService {
042
047
048
055 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addDLFileEntryType(
056 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
057 throws com.liferay.portal.kernel.exception.SystemException;
058
059
065 public com.liferay.portlet.documentlibrary.model.DLFileEntryType createDLFileEntryType(
066 long fileEntryTypeId);
067
068
076 public com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
077 long fileEntryTypeId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException;
080
081
088 public com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
089 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
090 throws com.liferay.portal.kernel.exception.SystemException;
091
092 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
093
094
101 @SuppressWarnings("rawtypes")
102 public java.util.List dynamicQuery(
103 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
104 throws com.liferay.portal.kernel.exception.SystemException;
105
106
119 @SuppressWarnings("rawtypes")
120 public java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException;
123
124
138 @SuppressWarnings("rawtypes")
139 public java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException;
144
145
152 public long dynamicQueryCount(
153 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
154 throws com.liferay.portal.kernel.exception.SystemException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryType(
158 long fileEntryTypeId)
159 throws com.liferay.portal.kernel.exception.SystemException;
160
161
169 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
170 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
171 long fileEntryTypeId)
172 throws com.liferay.portal.kernel.exception.PortalException,
173 com.liferay.portal.kernel.exception.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException;
180
181
190 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
191 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
192 java.lang.String uuid, long groupId)
193 throws com.liferay.portal.kernel.exception.PortalException,
194 com.liferay.portal.kernel.exception.SystemException;
195
196
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
210 int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException;
212
213
219 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
220 public int getDLFileEntryTypesCount()
221 throws com.liferay.portal.kernel.exception.SystemException;
222
223
230 public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
231 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
232 throws com.liferay.portal.kernel.exception.SystemException;
233
234
242 public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
243 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType,
244 boolean merge)
245 throws com.liferay.portal.kernel.exception.SystemException;
246
247
250 public void addDLFolderDLFileEntryType(long folderId, long fileEntryTypeId)
251 throws com.liferay.portal.kernel.exception.SystemException;
252
253
256 public void addDLFolderDLFileEntryType(long folderId,
257 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
258 throws com.liferay.portal.kernel.exception.SystemException;
259
260
263 public void addDLFolderDLFileEntryTypes(long folderId,
264 long[] fileEntryTypeIds)
265 throws com.liferay.portal.kernel.exception.SystemException;
266
267
270 public void addDLFolderDLFileEntryTypes(long folderId,
271 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
272 throws com.liferay.portal.kernel.exception.SystemException;
273
274
277 public void clearDLFolderDLFileEntryTypes(long folderId)
278 throws com.liferay.portal.kernel.exception.SystemException;
279
280
283 public void deleteDLFolderDLFileEntryType(long folderId,
284 long fileEntryTypeId)
285 throws com.liferay.portal.kernel.exception.SystemException;
286
287
290 public void deleteDLFolderDLFileEntryType(long folderId,
291 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
292 throws com.liferay.portal.kernel.exception.SystemException;
293
294
297 public void deleteDLFolderDLFileEntryTypes(long folderId,
298 long[] fileEntryTypeIds)
299 throws com.liferay.portal.kernel.exception.SystemException;
300
301
304 public void deleteDLFolderDLFileEntryTypes(long folderId,
305 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
306 throws com.liferay.portal.kernel.exception.SystemException;
307
308
311 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
312 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
313 long folderId)
314 throws com.liferay.portal.kernel.exception.SystemException;
315
316
319 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
320 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
321 long folderId, int start, int end)
322 throws com.liferay.portal.kernel.exception.SystemException;
323
324
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
329 long folderId, int start, int end,
330 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
331 throws com.liferay.portal.kernel.exception.SystemException;
332
333
336 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
337 public int getDLFolderDLFileEntryTypesCount(long folderId)
338 throws com.liferay.portal.kernel.exception.SystemException;
339
340
343 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public boolean hasDLFolderDLFileEntryType(long folderId,
345 long fileEntryTypeId)
346 throws com.liferay.portal.kernel.exception.SystemException;
347
348
351 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
352 public boolean hasDLFolderDLFileEntryTypes(long folderId)
353 throws com.liferay.portal.kernel.exception.SystemException;
354
355
358 public void setDLFolderDLFileEntryTypes(long folderId,
359 long[] fileEntryTypeIds)
360 throws com.liferay.portal.kernel.exception.SystemException;
361
362
365 public void addDDMStructureDLFileEntryType(long structureId,
366 long fileEntryTypeId)
367 throws com.liferay.portal.kernel.exception.SystemException;
368
369
372 public void addDDMStructureDLFileEntryType(long structureId,
373 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
374 throws com.liferay.portal.kernel.exception.SystemException;
375
376
379 public void addDDMStructureDLFileEntryTypes(long structureId,
380 long[] fileEntryTypeIds)
381 throws com.liferay.portal.kernel.exception.SystemException;
382
383
386 public void addDDMStructureDLFileEntryTypes(long structureId,
387 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
388 throws com.liferay.portal.kernel.exception.SystemException;
389
390
393 public void clearDDMStructureDLFileEntryTypes(long structureId)
394 throws com.liferay.portal.kernel.exception.SystemException;
395
396
399 public void deleteDDMStructureDLFileEntryType(long structureId,
400 long fileEntryTypeId)
401 throws com.liferay.portal.kernel.exception.SystemException;
402
403
406 public void deleteDDMStructureDLFileEntryType(long structureId,
407 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
408 throws com.liferay.portal.kernel.exception.SystemException;
409
410
413 public void deleteDDMStructureDLFileEntryTypes(long structureId,
414 long[] fileEntryTypeIds)
415 throws com.liferay.portal.kernel.exception.SystemException;
416
417
420 public void deleteDDMStructureDLFileEntryTypes(long structureId,
421 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes)
422 throws com.liferay.portal.kernel.exception.SystemException;
423
424
427 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
428 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
429 long structureId)
430 throws com.liferay.portal.kernel.exception.SystemException;
431
432
435 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
437 long structureId, int start, int end)
438 throws com.liferay.portal.kernel.exception.SystemException;
439
440
443 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
445 long structureId, int start, int end,
446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
447 throws com.liferay.portal.kernel.exception.SystemException;
448
449
452 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
453 public int getDDMStructureDLFileEntryTypesCount(long structureId)
454 throws com.liferay.portal.kernel.exception.SystemException;
455
456
459 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
460 public boolean hasDDMStructureDLFileEntryType(long structureId,
461 long fileEntryTypeId)
462 throws com.liferay.portal.kernel.exception.SystemException;
463
464
467 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
468 public boolean hasDDMStructureDLFileEntryTypes(long structureId)
469 throws com.liferay.portal.kernel.exception.SystemException;
470
471
474 public void setDDMStructureDLFileEntryTypes(long structureId,
475 long[] fileEntryTypeIds)
476 throws com.liferay.portal.kernel.exception.SystemException;
477
478
483 public java.lang.String getBeanIdentifier();
484
485
490 public void setBeanIdentifier(java.lang.String beanIdentifier);
491
492 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
493 long userId, long groupId, java.lang.String name,
494 java.lang.String description, long[] ddmStructureIds,
495 com.liferay.portal.service.ServiceContext serviceContext)
496 throws com.liferay.portal.kernel.exception.PortalException,
497 com.liferay.portal.kernel.exception.SystemException;
498
499 public void cascadeFileEntryTypes(long userId,
500 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
501 throws com.liferay.portal.kernel.exception.PortalException,
502 com.liferay.portal.kernel.exception.SystemException;
503
504 public void deleteFileEntryType(
505 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
506 throws com.liferay.portal.kernel.exception.PortalException,
507 com.liferay.portal.kernel.exception.SystemException;
508
509 public void deleteFileEntryType(long fileEntryTypeId)
510 throws com.liferay.portal.kernel.exception.PortalException,
511 com.liferay.portal.kernel.exception.SystemException;
512
513 public void deleteFileEntryTypes(long groupId)
514 throws com.liferay.portal.kernel.exception.PortalException,
515 com.liferay.portal.kernel.exception.SystemException;
516
517 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
518 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
519 long fileEntryTypeId)
520 throws com.liferay.portal.kernel.exception.SystemException;
521
522 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
523 public long getDefaultFileEntryTypeId(long folderId)
524 throws com.liferay.portal.kernel.exception.PortalException,
525 com.liferay.portal.kernel.exception.SystemException;
526
527 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
528 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
529 long fileEntryTypeId)
530 throws com.liferay.portal.kernel.exception.PortalException,
531 com.liferay.portal.kernel.exception.SystemException;
532
533 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
534 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
535 long groupId, java.lang.String name)
536 throws com.liferay.portal.kernel.exception.PortalException,
537 com.liferay.portal.kernel.exception.SystemException;
538
539 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
540 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
541 long[] groupIds)
542 throws com.liferay.portal.kernel.exception.SystemException;
543
544 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
545 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
546 long[] groupIds, long folderId, boolean inherited)
547 throws com.liferay.portal.kernel.exception.PortalException,
548 com.liferay.portal.kernel.exception.SystemException;
549
550 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
551 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
552 long companyId, long[] groupIds, java.lang.String keywords,
553 boolean includeBasicFileEntryType, int start, int end,
554 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
555 throws com.liferay.portal.kernel.exception.SystemException;
556
557 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
558 public int searchCount(long companyId, long[] groupIds,
559 java.lang.String keywords, boolean includeBasicFileEntryType)
560 throws com.liferay.portal.kernel.exception.SystemException;
561
562 public void unsetFolderFileEntryTypes(long folderId)
563 throws com.liferay.portal.kernel.exception.SystemException;
564
565 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
566 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
567 com.liferay.portal.service.ServiceContext serviceContext)
568 throws com.liferay.portal.kernel.exception.PortalException,
569 com.liferay.portal.kernel.exception.SystemException;
570
571 public void updateFileEntryType(long userId, long fileEntryTypeId,
572 java.lang.String name, java.lang.String description,
573 long[] ddmStructureIds,
574 com.liferay.portal.service.ServiceContext serviceContext)
575 throws com.liferay.portal.kernel.exception.PortalException,
576 com.liferay.portal.kernel.exception.SystemException;
577
578 public void updateFolderFileEntryTypes(
579 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
580 java.util.List<java.lang.Long> fileEntryTypeIds,
581 long defaultFileEntryTypeId,
582 com.liferay.portal.service.ServiceContext serviceContext)
583 throws com.liferay.portal.kernel.exception.PortalException,
584 com.liferay.portal.kernel.exception.SystemException;
585 }