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 public void addDDMStructureDLFileEntryType(long structureId,
052 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType);
053
054 public void addDDMStructureDLFileEntryType(long structureId,
055 long fileEntryTypeId);
056
057 public void addDDMStructureDLFileEntryTypes(long structureId,
058 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes);
059
060 public void addDDMStructureDLFileEntryTypes(long structureId,
061 long[] fileEntryTypeIds);
062
063
069 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
070 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addDLFileEntryType(
071 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType);
072
073 public void addDLFolderDLFileEntryType(long folderId,
074 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType);
075
076 public void addDLFolderDLFileEntryType(long folderId, long fileEntryTypeId);
077
078 public void addDLFolderDLFileEntryTypes(long folderId,
079 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes);
080
081 public void addDLFolderDLFileEntryTypes(long folderId,
082 long[] fileEntryTypeIds);
083
084 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
085 long userId, long groupId, java.lang.String fileEntryTypeKey,
086 java.util.Map<java.util.Locale, java.lang.String> nameMap,
087 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
088 long[] ddmStructureIds,
089 com.liferay.portal.service.ServiceContext serviceContext)
090 throws PortalException;
091
092 public com.liferay.portlet.documentlibrary.model.DLFileEntryType addFileEntryType(
093 long userId, long groupId, java.lang.String name,
094 java.lang.String description, long[] ddmStructureIds,
095 com.liferay.portal.service.ServiceContext serviceContext)
096 throws PortalException;
097
098 public void cascadeFileEntryTypes(long userId,
099 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
100 throws PortalException;
101
102 public void clearDDMStructureDLFileEntryTypes(long structureId);
103
104 public void clearDLFolderDLFileEntryTypes(long folderId);
105
106
112 public com.liferay.portlet.documentlibrary.model.DLFileEntryType createDLFileEntryType(
113 long fileEntryTypeId);
114
115 public void deleteDDMStructureDLFileEntryType(long structureId,
116 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType);
117
118 public void deleteDDMStructureDLFileEntryType(long structureId,
119 long fileEntryTypeId);
120
121 public void deleteDDMStructureDLFileEntryTypes(long structureId,
122 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes);
123
124 public void deleteDDMStructureDLFileEntryTypes(long structureId,
125 long[] fileEntryTypeIds);
126
127
133 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
134 public com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
135 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType);
136
137
144 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.DELETE)
145 public com.liferay.portlet.documentlibrary.model.DLFileEntryType deleteDLFileEntryType(
146 long fileEntryTypeId) throws PortalException;
147
148 public void deleteDLFolderDLFileEntryType(long folderId,
149 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType);
150
151 public void deleteDLFolderDLFileEntryType(long folderId,
152 long fileEntryTypeId);
153
154 public void deleteDLFolderDLFileEntryTypes(long folderId,
155 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes);
156
157 public void deleteDLFolderDLFileEntryTypes(long folderId,
158 long[] fileEntryTypeIds);
159
160 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
161 public void deleteFileEntryType(
162 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
163 throws PortalException;
164
165 public void deleteFileEntryType(long fileEntryTypeId)
166 throws PortalException;
167
168 public void deleteFileEntryTypes(long groupId) throws PortalException;
169
170
173 @Override
174 public com.liferay.portal.model.PersistedModel deletePersistedModel(
175 com.liferay.portal.model.PersistedModel persistedModel)
176 throws PortalException;
177
178 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
179
180
186 public <T> java.util.List<T> dynamicQuery(
187 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
188
189
201 public <T> java.util.List<T> dynamicQuery(
202 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
203 int end);
204
205
218 public <T> java.util.List<T> dynamicQuery(
219 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
220 int end,
221 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
222
223
229 public long dynamicQueryCount(
230 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
231
232
239 public long dynamicQueryCount(
240 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
241 com.liferay.portal.kernel.dao.orm.Projection projection);
242
243 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
244 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryType(
245 long fileEntryTypeId);
246
247
254 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
255 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryTypeByUuidAndGroupId(
256 java.lang.String uuid, long groupId);
257
258 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
259 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
260 long fileEntryTypeId);
261
262 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
263 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
264 long groupId, java.lang.String fileEntryTypeKey);
265
266 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
267 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
268
269
274 public java.lang.String getBeanIdentifier();
275
276 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
277 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
278 long structureId);
279
280 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
281 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
282 long structureId, int start, int end);
283
284 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
285 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
286 long structureId, int start, int end,
287 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator);
288
289 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
290 public int getDDMStructureDLFileEntryTypesCount(long structureId);
291
292
298 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
299 public long[] getDDMStructurePrimaryKeys(long fileEntryTypeId);
300
301
308 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
309 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
310 long fileEntryTypeId) throws PortalException;
311
312
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
322 java.lang.String uuid, long groupId) throws PortalException;
323
324
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
337 int start, int end);
338
339
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
348 java.lang.String uuid, long companyId);
349
350
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
362 java.lang.String uuid, long companyId, int start, int end,
363 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator);
364
365
370 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
371 public int getDLFileEntryTypesCount();
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
375 long folderId);
376
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
381 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
382 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
383 long folderId, int start, int end,
384 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator);
385
386 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
387 public int getDLFolderDLFileEntryTypesCount(long folderId);
388
389
395 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396 public long[] getDLFolderPrimaryKeys(long fileEntryTypeId);
397
398 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399 public long getDefaultFileEntryTypeId(long folderId)
400 throws PortalException;
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
404 com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext);
405
406 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
408 long fileEntryTypeId) throws PortalException;
409
410 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
412 long groupId, java.lang.String fileEntryTypeKey)
413 throws PortalException;
414
415 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
417 long[] groupIds);
418
419 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
420 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
421 long[] groupIds, long folderId, boolean inherited)
422 throws PortalException;
423
424 @Override
425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426 public com.liferay.portal.model.PersistedModel getPersistedModel(
427 java.io.Serializable primaryKeyObj) throws PortalException;
428
429 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430 public boolean hasDDMStructureDLFileEntryType(long structureId,
431 long fileEntryTypeId);
432
433 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
434 public boolean hasDDMStructureDLFileEntryTypes(long structureId);
435
436 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
437 public boolean hasDLFolderDLFileEntryType(long folderId,
438 long fileEntryTypeId);
439
440 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
441 public boolean hasDLFolderDLFileEntryTypes(long folderId);
442
443 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
444 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
445 long companyId, long[] groupIds, java.lang.String keywords,
446 boolean includeBasicFileEntryType, int start, int end,
447 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator);
448
449 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450 public int searchCount(long companyId, long[] groupIds,
451 java.lang.String keywords, boolean includeBasicFileEntryType);
452
453
458 public void setBeanIdentifier(java.lang.String beanIdentifier);
459
460 public void setDDMStructureDLFileEntryTypes(long structureId,
461 long[] fileEntryTypeIds);
462
463 public void setDLFolderDLFileEntryTypes(long folderId,
464 long[] fileEntryTypeIds);
465
466 public void unsetFolderFileEntryTypes(long folderId);
467
468
474 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
475 public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
476 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType);
477
478 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
479 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
480 com.liferay.portal.service.ServiceContext serviceContext)
481 throws PortalException;
482
483 public void updateFileEntryType(long userId, long fileEntryTypeId,
484 java.lang.String name, java.lang.String description,
485 long[] ddmStructureIds,
486 com.liferay.portal.service.ServiceContext serviceContext)
487 throws PortalException;
488
489 public void updateFileEntryType(long userId, long fileEntryTypeId,
490 java.util.Map<java.util.Locale, java.lang.String> nameMap,
491 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
492 long[] ddmStructureIds,
493 com.liferay.portal.service.ServiceContext serviceContext)
494 throws PortalException;
495
496 public void updateFolderFileEntryTypes(
497 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
498 java.util.List<java.lang.Long> fileEntryTypeIds,
499 long defaultFileEntryTypeId,
500 com.liferay.portal.service.ServiceContext serviceContext);
501 }