001
014
015 package com.liferay.portlet.documentlibrary.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
020 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
021 import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
022 import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
023 import com.liferay.portal.kernel.dao.orm.Projection;
024 import com.liferay.portal.kernel.exception.PortalException;
025 import com.liferay.portal.kernel.exception.SystemException;
026 import com.liferay.portal.kernel.search.Indexable;
027 import com.liferay.portal.kernel.search.IndexableType;
028 import com.liferay.portal.kernel.systemevent.SystemEvent;
029 import com.liferay.portal.kernel.transaction.Isolation;
030 import com.liferay.portal.kernel.transaction.Propagation;
031 import com.liferay.portal.kernel.transaction.Transactional;
032 import com.liferay.portal.kernel.util.OrderByComparator;
033 import com.liferay.portal.model.PersistedModel;
034 import com.liferay.portal.model.SystemEventConstants;
035 import com.liferay.portal.service.BaseLocalService;
036 import com.liferay.portal.service.PersistedModelLocalService;
037 import com.liferay.portal.service.ServiceContext;
038
039 import com.liferay.portlet.documentlibrary.model.DLFileEntry;
040 import com.liferay.portlet.documentlibrary.model.DLFileEntryType;
041 import com.liferay.portlet.documentlibrary.model.DLFolder;
042 import com.liferay.portlet.exportimport.lar.PortletDataContext;
043
044 import java.io.Serializable;
045
046 import java.util.List;
047 import java.util.Locale;
048 import java.util.Map;
049 import java.util.Set;
050
051
063 @ProviderType
064 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
065 PortalException.class, SystemException.class})
066 public interface DLFileEntryTypeLocalService extends BaseLocalService,
067 PersistedModelLocalService {
068
073 public void addDDMStructureLinks(long fileEntryTypeId,
074 Set<java.lang.Long> ddmStructureIds);
075
076
082 @Indexable(type = IndexableType.REINDEX)
083 public DLFileEntryType addDLFileEntryType(DLFileEntryType dlFileEntryType);
084
085 public void addDLFolderDLFileEntryType(long folderId,
086 DLFileEntryType dlFileEntryType);
087
088 public void addDLFolderDLFileEntryType(long folderId, long fileEntryTypeId);
089
090 public void addDLFolderDLFileEntryTypes(long folderId,
091 List<DLFileEntryType> DLFileEntryTypes);
092
093 public void addDLFolderDLFileEntryTypes(long folderId,
094 long[] fileEntryTypeIds);
095
096 public DLFileEntryType addFileEntryType(long userId, long groupId,
097 java.lang.String fileEntryTypeKey,
098 Map<Locale, java.lang.String> nameMap,
099 Map<Locale, java.lang.String> descriptionMap, long[] ddmStructureIds,
100 ServiceContext serviceContext) throws PortalException;
101
102 public DLFileEntryType addFileEntryType(long userId, long groupId,
103 java.lang.String name, java.lang.String description,
104 long[] ddmStructureIds, ServiceContext serviceContext)
105 throws PortalException;
106
107 public void cascadeFileEntryTypes(long userId, DLFolder dlFolder)
108 throws PortalException;
109
110 public void clearDLFolderDLFileEntryTypes(long folderId);
111
112
118 public DLFileEntryType createDLFileEntryType(long fileEntryTypeId);
119
120
126 @Indexable(type = IndexableType.DELETE)
127 public DLFileEntryType deleteDLFileEntryType(
128 DLFileEntryType dlFileEntryType);
129
130
137 @Indexable(type = IndexableType.DELETE)
138 public DLFileEntryType deleteDLFileEntryType(long fileEntryTypeId)
139 throws PortalException;
140
141 public void deleteDLFolderDLFileEntryType(long folderId,
142 DLFileEntryType dlFileEntryType);
143
144 public void deleteDLFolderDLFileEntryType(long folderId,
145 long fileEntryTypeId);
146
147 public void deleteDLFolderDLFileEntryTypes(long folderId,
148 List<DLFileEntryType> DLFileEntryTypes);
149
150 public void deleteDLFolderDLFileEntryTypes(long folderId,
151 long[] fileEntryTypeIds);
152
153 @SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
154 public void deleteFileEntryType(DLFileEntryType dlFileEntryType)
155 throws PortalException;
156
157 public void deleteFileEntryType(long fileEntryTypeId)
158 throws PortalException;
159
160 public void deleteFileEntryTypes(long groupId) throws PortalException;
161
162
165 @Override
166 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
167 throws PortalException;
168
169 public DynamicQuery dynamicQuery();
170
171
177 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery);
178
179
191 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
192 int end);
193
194
207 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
208 int end, OrderByComparator<T> orderByComparator);
209
210
216 public long dynamicQueryCount(DynamicQuery dynamicQuery);
217
218
225 public long dynamicQueryCount(DynamicQuery dynamicQuery,
226 Projection projection);
227
228 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
229 public DLFileEntryType fetchDLFileEntryType(long fileEntryTypeId);
230
231
238 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
239 public DLFileEntryType fetchDLFileEntryTypeByUuidAndGroupId(
240 java.lang.String uuid, long groupId);
241
242 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
243 public DLFileEntryType fetchFileEntryType(long fileEntryTypeId);
244
245 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
246 public DLFileEntryType fetchFileEntryType(long groupId,
247 java.lang.String fileEntryTypeKey);
248
249 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
250 public ActionableDynamicQuery getActionableDynamicQuery();
251
252
259 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
260 public DLFileEntryType getDLFileEntryType(long fileEntryTypeId)
261 throws PortalException;
262
263
271 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
272 public DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
273 java.lang.String uuid, long groupId) throws PortalException;
274
275
286 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
287 public List<DLFileEntryType> getDLFileEntryTypes(int start, int end);
288
289
296 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
297 public List<DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
298 java.lang.String uuid, long companyId);
299
300
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public List<DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
312 java.lang.String uuid, long companyId, int start, int end,
313 OrderByComparator<DLFileEntryType> orderByComparator);
314
315
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public int getDLFileEntryTypesCount();
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public List<DLFileEntryType> getDLFolderDLFileEntryTypes(long folderId);
325
326 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
327 public List<DLFileEntryType> getDLFolderDLFileEntryTypes(long folderId,
328 int start, int end);
329
330 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
331 public List<DLFileEntryType> getDLFolderDLFileEntryTypes(long folderId,
332 int start, int end, OrderByComparator<DLFileEntryType> orderByComparator);
333
334 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
335 public int getDLFolderDLFileEntryTypesCount(long folderId);
336
337
343 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public long[] getDLFolderPrimaryKeys(long fileEntryTypeId);
345
346 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
347 public long getDefaultFileEntryTypeId(long folderId)
348 throws PortalException;
349
350 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
351 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
352 PortletDataContext portletDataContext);
353
354 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
355 public DLFileEntryType getFileEntryType(long fileEntryTypeId)
356 throws PortalException;
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public DLFileEntryType getFileEntryType(long groupId,
360 java.lang.String fileEntryTypeKey) throws PortalException;
361
362 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
363 public List<DLFileEntryType> getFileEntryTypes(long ddmStructureId)
364 throws PortalException;
365
366 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
367 public List<DLFileEntryType> getFileEntryTypes(long[] groupIds);
368
369 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370 public List<DLFileEntryType> getFolderFileEntryTypes(long[] groupIds,
371 long folderId, boolean inherited) throws PortalException;
372
373 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
374 public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
375
376
381 public java.lang.String getOSGiServiceIdentifier();
382
383 @Override
384 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
385 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
386 throws PortalException;
387
388 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
389 public boolean hasDLFolderDLFileEntryType(long folderId,
390 long fileEntryTypeId);
391
392 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
393 public boolean hasDLFolderDLFileEntryTypes(long folderId);
394
395 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
396 public List<DLFileEntryType> search(long companyId, long[] groupIds,
397 java.lang.String keywords, boolean includeBasicFileEntryType,
398 int start, int end, OrderByComparator<DLFileEntryType> orderByComparator);
399
400 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
401 public int searchCount(long companyId, long[] groupIds,
402 java.lang.String keywords, boolean includeBasicFileEntryType);
403
404 public void setDLFolderDLFileEntryTypes(long folderId,
405 long[] fileEntryTypeIds);
406
407 public void unsetFolderFileEntryTypes(long folderId);
408
409 public void updateDDMStructureLinks(long fileEntryTypeId,
410 Set<java.lang.Long> ddmStructureIds) throws PortalException;
411
412
418 @Indexable(type = IndexableType.REINDEX)
419 public DLFileEntryType updateDLFileEntryType(
420 DLFileEntryType dlFileEntryType);
421
422 public DLFileEntry updateFileEntryFileEntryType(DLFileEntry dlFileEntry,
423 ServiceContext serviceContext) throws PortalException;
424
425 public void updateFileEntryType(long userId, long fileEntryTypeId,
426 java.lang.String name, java.lang.String description,
427 long[] ddmStructureIds, ServiceContext serviceContext)
428 throws PortalException;
429
430 public void updateFileEntryType(long userId, long fileEntryTypeId,
431 Map<Locale, java.lang.String> nameMap,
432 Map<Locale, java.lang.String> descriptionMap, long[] ddmStructureIds,
433 ServiceContext serviceContext) throws PortalException;
434
435 public void updateFolderFileEntryTypes(DLFolder dlFolder,
436 List<java.lang.Long> fileEntryTypeIds, long defaultFileEntryTypeId,
437 ServiceContext serviceContext);
438 }