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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
345 java.lang.String uuid, long companyId);
346
347 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
348 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
349 java.lang.String uuid, long companyId, int start, int end,
350 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator);
351
352
357 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
358 public int getDLFileEntryTypesCount();
359
360 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
361 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
362 long folderId);
363
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getDLFolderDLFileEntryTypes(
366 long folderId, int start, int end);
367
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<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator);
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public int getDLFolderDLFileEntryTypesCount(long folderId);
375
376
382 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
383 public long[] getDLFolderPrimaryKeys(long fileEntryTypeId);
384
385 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
386 public long getDefaultFileEntryTypeId(long folderId)
387 throws com.liferay.portal.kernel.exception.PortalException;
388
389 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
390 public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
391 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext);
392
393 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
394 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
395 long fileEntryTypeId)
396 throws com.liferay.portal.kernel.exception.PortalException;
397
398 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
399 public com.liferay.portlet.documentlibrary.model.DLFileEntryType getFileEntryType(
400 long groupId, java.lang.String fileEntryTypeKey)
401 throws com.liferay.portal.kernel.exception.PortalException;
402
403 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
404 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFileEntryTypes(
405 long[] groupIds);
406
407 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
408 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> getFolderFileEntryTypes(
409 long[] groupIds, long folderId, boolean inherited)
410 throws com.liferay.portal.kernel.exception.PortalException;
411
412 @Override
413 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
414 public com.liferay.portal.model.PersistedModel getPersistedModel(
415 java.io.Serializable primaryKeyObj)
416 throws com.liferay.portal.kernel.exception.PortalException;
417
418 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
419 public boolean hasDDMStructureDLFileEntryType(long structureId,
420 long fileEntryTypeId);
421
422 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
423 public boolean hasDDMStructureDLFileEntryTypes(long structureId);
424
425 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
426 public boolean hasDLFolderDLFileEntryType(long folderId,
427 long fileEntryTypeId);
428
429 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
430 public boolean hasDLFolderDLFileEntryTypes(long folderId);
431
432 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
433 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntryType> search(
434 long companyId, long[] groupIds, java.lang.String keywords,
435 boolean includeBasicFileEntryType, int start, int end,
436 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileEntryType> orderByComparator);
437
438 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
439 public int searchCount(long companyId, long[] groupIds,
440 java.lang.String keywords, boolean includeBasicFileEntryType);
441
442
447 public void setBeanIdentifier(java.lang.String beanIdentifier);
448
449 public void setDDMStructureDLFileEntryTypes(long structureId,
450 long[] fileEntryTypeIds);
451
452 public void setDLFolderDLFileEntryTypes(long folderId,
453 long[] fileEntryTypeIds);
454
455 public void unsetFolderFileEntryTypes(long folderId);
456
457
463 @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
464 public com.liferay.portlet.documentlibrary.model.DLFileEntryType updateDLFileEntryType(
465 com.liferay.portlet.documentlibrary.model.DLFileEntryType dlFileEntryType);
466
467 public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntryFileEntryType(
468 com.liferay.portlet.documentlibrary.model.DLFileEntry dlFileEntry,
469 com.liferay.portal.service.ServiceContext serviceContext)
470 throws com.liferay.portal.kernel.exception.PortalException;
471
472 public void updateFileEntryType(long userId, long fileEntryTypeId,
473 java.lang.String name, java.lang.String description,
474 long[] ddmStructureIds,
475 com.liferay.portal.service.ServiceContext serviceContext)
476 throws com.liferay.portal.kernel.exception.PortalException;
477
478 public void updateFileEntryType(long userId, long fileEntryTypeId,
479 java.util.Map<java.util.Locale, java.lang.String> nameMap,
480 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
481 long[] ddmStructureIds,
482 com.liferay.portal.service.ServiceContext serviceContext)
483 throws com.liferay.portal.kernel.exception.PortalException;
484
485 public void updateFolderFileEntryTypes(
486 com.liferay.portlet.documentlibrary.model.DLFolder dlFolder,
487 java.util.List<java.lang.Long> fileEntryTypeIds,
488 long defaultFileEntryTypeId,
489 com.liferay.portal.service.ServiceContext serviceContext);
490 }