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 com.liferay.portal.kernel.exception.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 com.liferay.portal.kernel.exception.PortalException;
097
098 public void cascadeFileEntryTypes(long userId,
099 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder)
100 throws com.liferay.portal.kernel.exception.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)
147 throws com.liferay.portal.kernel.exception.PortalException;
148
149 public void deleteDLFolderDLFileEntryType(long folderId,
150 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType);
151
152 public void deleteDLFolderDLFileEntryType(long folderId,
153 long fileEntryTypeId);
154
155 public void deleteDLFolderDLFileEntryTypes(long folderId,
156 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> DLFileEntryTypes);
157
158 public void deleteDLFolderDLFileEntryTypes(long folderId,
159 long[] fileEntryTypeIds);
160
161 @com.liferay.portal.kernel.systemevent.SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
162 public void deleteFileEntryType(
163 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType)
164 throws com.liferay.portal.kernel.exception.PortalException;
165
166 public void deleteFileEntryType(long fileEntryTypeId)
167 throws com.liferay.portal.kernel.exception.PortalException;
168
169 public void deleteFileEntryTypes(long groupId)
170 throws com.liferay.portal.kernel.exception.PortalException;
171
172
175 @Override
176 public com.liferay.portal.model.PersistedModel deletePersistedModel(
177 com.liferay.portal.model.PersistedModel persistedModel)
178 throws com.liferay.portal.kernel.exception.PortalException;
179
180 public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery();
181
182
188 public <T> java.util.List<T> dynamicQuery(
189 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
190
191
203 public <T> java.util.List<T> dynamicQuery(
204 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
205 int end);
206
207
220 public <T> java.util.List<T> dynamicQuery(
221 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
222 int end,
223 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator);
224
225
231 public long dynamicQueryCount(
232 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery);
233
234
241 public long dynamicQueryCount(
242 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
243 com.liferay.portal.kernel.dao.orm.Projection projection);
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryType(
247 long fileEntryTypeId);
248
249
256 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
257 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchDLFileEntryTypeByUuidAndGroupId(
258 java.lang.String uuid, long groupId);
259
260 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
261 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
262 long fileEntryTypeId);
263
264 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
265 public com.liferay.portlet.documentlibrary.model.DLFileEntryType fetchFileEntryType(
266 long groupId, java.lang.String fileEntryTypeKey);
267
268 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
269 public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery();
270
271
276 public java.lang.String getBeanIdentifier();
277
278 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
279 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
280 long structureId);
281
282 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
283 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
284 long structureId, int start, int end);
285
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDDMStructureDLFileEntryTypes(
288 long structureId, int start, int end,
289 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator);
290
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public int getDDMStructureDLFileEntryTypesCount(long structureId);
293
294
300 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
301 public long[] getDDMStructurePrimaryKeys(long fileEntryTypeId);
302
303
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryType(
312 long fileEntryTypeId)
313 throws com.liferay.portal.kernel.exception.PortalException;
314
315
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
325 java.lang.String uuid, long groupId)
326 throws com.liferay.portal.kernel.exception.PortalException;
327
328
339 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
340 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypes(
341 int start, int end);
342
343
350 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
352 java.lang.String uuid, long companyId);
353
354
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
366 java.lang.String uuid, long companyId, int start, int end,
367 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator);
368
369
374 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
375 public int getDLFileEntryTypesCount();
376
377 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
378 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
379 long folderId);
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
385 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
386 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
387 long folderId, int start, int end,
388 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator);
389
390 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
391 public int getDLFolderDLFileEntryTypesCount(long folderId);
392
393
399 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
400 public long[] getDLFolderPrimaryKeys(long fileEntryTypeId);
401
402 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
403 public long getDefaultFileEntryTypeId(long folderId)
404 throws com.liferay.portal.kernel.exception.PortalException;
405
406 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
407 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
408 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
409
410 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
411 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
412 long fileEntryTypeId)
413 throws com.liferay.portal.kernel.exception.PortalException;
414
415 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
416 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
417 long groupId, java.lang.String fileEntryTypeKey)
418 throws com.liferay.portal.kernel.exception.PortalException;
419
420 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
421 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
422 long[] groupIds);
423
424 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
425 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
426 long[] groupIds, long folderId, boolean inherited)
427 throws com.liferay.portal.kernel.exception.PortalException;
428
429 @Override
430 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
431 public com.liferay.portal.model.PersistedModel getPersistedModel(
432 java.io.Serializable primaryKeyObj)
433 throws com.liferay.portal.kernel.exception.PortalException;
434
435 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
436 public boolean hasDDMStructureDLFileEntryType(long structureId,
437 long fileEntryTypeId);
438
439 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
440 public boolean hasDDMStructureDLFileEntryTypes(long structureId);
441
442 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
443 public boolean hasDLFolderDLFileEntryType(long folderId,
444 long fileEntryTypeId);
445
446 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
447 public boolean hasDLFolderDLFileEntryTypes(long folderId);
448
449 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
450 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
451 long companyId, long[] groupIds, java.lang.String keywords,
452 boolean includeBasicFileEntryType, int start, int end,
453 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator);
454
455 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
456 public int searchCount(long companyId, long[] groupIds,
457 java.lang.String keywords, boolean includeBasicFileEntryType);
458
459
464 public void setBeanIdentifier(java.lang.String beanIdentifier);
465
466 public void setDDMStructureDLFileEntryTypes(long structureId,
467 long[] fileEntryTypeIds);
468
469 public void setDLFolderDLFileEntryTypes(long folderId,
470 long[] fileEntryTypeIds);
471
472 public void unsetFolderFileEntryTypes(long folderId);
473
474
480 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
481 public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
482 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType);
483
484 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
485 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
486 com.liferay.portal.service.ServiceContext serviceContext)
487 throws com.liferay.portal.kernel.exception.PortalException;
488
489 public void updateFileEntryType(long userId, long fileEntryTypeId,
490 java.lang.String name, java.lang.String description,
491 long[] ddmStructureIds,
492 com.liferay.portal.service.ServiceContext serviceContext)
493 throws com.liferay.portal.kernel.exception.PortalException;
494
495 public void updateFileEntryType(long userId, long fileEntryTypeId,
496 java.util.Map<java.util.Locale, java.lang.String> nameMap,
497 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
498 long[] ddmStructureIds,
499 com.liferay.portal.service.ServiceContext serviceContext)
500 throws com.liferay.portal.kernel.exception.PortalException;
501
502 public void updateFolderFileEntryTypes(
503 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
504 java.util.List<java.lang.Long> fileEntryTypeIds,
505 long defaultFileEntryTypeId,
506 com.liferay.portal.service.ServiceContext serviceContext);
507 }