001
014
015 package com.liferay.document.library.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.document.library.kernel.model.DLFileEntry;
020 import com.liferay.document.library.kernel.model.DLFileEntryType;
021 import com.liferay.document.library.kernel.model.DLFolder;
022
023 import com.liferay.exportimport.kernel.lar.PortletDataContext;
024
025 import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
026 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
027 import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
028 import com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery;
029 import com.liferay.portal.kernel.dao.orm.Projection;
030 import com.liferay.portal.kernel.exception.PortalException;
031 import com.liferay.portal.kernel.exception.SystemException;
032 import com.liferay.portal.kernel.model.PersistedModel;
033 import com.liferay.portal.kernel.model.SystemEventConstants;
034 import com.liferay.portal.kernel.search.Indexable;
035 import com.liferay.portal.kernel.search.IndexableType;
036 import com.liferay.portal.kernel.service.BaseLocalService;
037 import com.liferay.portal.kernel.service.PersistedModelLocalService;
038 import com.liferay.portal.kernel.service.ServiceContext;
039 import com.liferay.portal.kernel.systemevent.SystemEvent;
040 import com.liferay.portal.kernel.transaction.Isolation;
041 import com.liferay.portal.kernel.transaction.Propagation;
042 import com.liferay.portal.kernel.transaction.Transactional;
043 import com.liferay.portal.kernel.util.OrderByComparator;
044
045 import java.io.Serializable;
046
047 import java.util.List;
048 import java.util.Locale;
049 import java.util.Map;
050 import java.util.Set;
051
052
064 @ProviderType
065 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
066 PortalException.class, SystemException.class})
067 public interface DLFileEntryTypeLocalService extends BaseLocalService,
068 PersistedModelLocalService {
069
074 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
075 public boolean hasDLFolderDLFileEntryType(long folderId,
076 long fileEntryTypeId);
077
078 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
079 public boolean hasDLFolderDLFileEntryTypes(long folderId);
080
081 public DLFileEntry updateFileEntryFileEntryType(DLFileEntry dlFileEntry,
082 ServiceContext serviceContext) throws PortalException;
083
084
090 @Indexable(type = IndexableType.REINDEX)
091 public DLFileEntryType addDLFileEntryType(DLFileEntryType dlFileEntryType);
092
093 public DLFileEntryType addFileEntryType(long userId, long groupId,
094 java.lang.String fileEntryTypeKey,
095 Map<Locale, java.lang.String> nameMap,
096 Map<Locale, java.lang.String> descriptionMap, long[] ddmStructureIds,
097 ServiceContext serviceContext) throws PortalException;
098
099 public DLFileEntryType addFileEntryType(long userId, long groupId,
100 java.lang.String name, java.lang.String description,
101 long[] ddmStructureIds, ServiceContext serviceContext)
102 throws PortalException;
103
104
110 public DLFileEntryType createDLFileEntryType(long fileEntryTypeId);
111
112
118 @Indexable(type = IndexableType.DELETE)
119 public DLFileEntryType deleteDLFileEntryType(
120 DLFileEntryType dlFileEntryType);
121
122
129 @Indexable(type = IndexableType.DELETE)
130 public DLFileEntryType deleteDLFileEntryType(long fileEntryTypeId)
131 throws PortalException;
132
133 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
134 public DLFileEntryType fetchDLFileEntryType(long fileEntryTypeId);
135
136
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public DLFileEntryType fetchDLFileEntryTypeByUuidAndGroupId(
145 java.lang.String uuid, long groupId);
146
147 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
148 public DLFileEntryType fetchFileEntryType(long fileEntryTypeId);
149
150 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
151 public DLFileEntryType fetchFileEntryType(long groupId,
152 java.lang.String fileEntryTypeKey);
153
154
161 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
162 public DLFileEntryType getDLFileEntryType(long fileEntryTypeId)
163 throws PortalException;
164
165
173 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
174 public DLFileEntryType getDLFileEntryTypeByUuidAndGroupId(
175 java.lang.String uuid, long groupId) throws PortalException;
176
177 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
178 public DLFileEntryType getFileEntryType(long fileEntryTypeId)
179 throws PortalException;
180
181 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
182 public DLFileEntryType getFileEntryType(long groupId,
183 java.lang.String fileEntryTypeKey) throws PortalException;
184
185
191 @Indexable(type = IndexableType.REINDEX)
192 public DLFileEntryType updateDLFileEntryType(
193 DLFileEntryType dlFileEntryType);
194
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public ActionableDynamicQuery getActionableDynamicQuery();
197
198 public DynamicQuery dynamicQuery();
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public ExportActionableDynamicQuery getExportActionableDynamicQuery(
202 PortletDataContext portletDataContext);
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public IndexableActionableDynamicQuery getIndexableActionableDynamicQuery();
206
207
210 @Override
211 public PersistedModel deletePersistedModel(PersistedModel persistedModel)
212 throws PortalException;
213
214 @Override
215 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
216 public PersistedModel getPersistedModel(Serializable primaryKeyObj)
217 throws PortalException;
218
219
224 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
225 public int getDLFileEntryTypesCount();
226
227 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
228 public int getDLFolderDLFileEntryTypesCount(long folderId);
229
230 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
231 public int searchCount(long companyId, long[] groupIds,
232 java.lang.String keywords, boolean includeBasicFileEntryType);
233
234
239 public java.lang.String getOSGiServiceIdentifier();
240
241
247 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery);
248
249
261 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
262 int end);
263
264
277 public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
278 int end, OrderByComparator<T> orderByComparator);
279
280
291 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
292 public List<DLFileEntryType> getDLFileEntryTypes(int start, int end);
293
294
301 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
302 public List<DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
303 java.lang.String uuid, long companyId);
304
305
315 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
316 public List<DLFileEntryType> getDLFileEntryTypesByUuidAndCompanyId(
317 java.lang.String uuid, long companyId, int start, int end,
318 OrderByComparator<DLFileEntryType> orderByComparator);
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public List<DLFileEntryType> getDLFolderDLFileEntryTypes(long folderId);
322
323 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
324 public List<DLFileEntryType> getDLFolderDLFileEntryTypes(long folderId,
325 int start, int end);
326
327 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
328 public List<DLFileEntryType> getDLFolderDLFileEntryTypes(long folderId,
329 int start, int end, OrderByComparator<DLFileEntryType> orderByComparator);
330
331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332 public List<DLFileEntryType> getFileEntryTypes(long ddmStructureId)
333 throws PortalException;
334
335 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
336 public List<DLFileEntryType> getFileEntryTypes(long[] groupIds);
337
338 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
339 public List<DLFileEntryType> getFolderFileEntryTypes(long[] groupIds,
340 long folderId, boolean inherited) throws PortalException;
341
342 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
343 public List<DLFileEntryType> search(long companyId, long[] groupIds,
344 java.lang.String keywords, boolean includeBasicFileEntryType,
345 int start, int end, OrderByComparator<DLFileEntryType> orderByComparator);
346
347
353 public long dynamicQueryCount(DynamicQuery dynamicQuery);
354
355
362 public long dynamicQueryCount(DynamicQuery dynamicQuery,
363 Projection projection);
364
365 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
366 public long getDefaultFileEntryTypeId(long folderId)
367 throws PortalException;
368
369
375 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376 public long[] getDLFolderPrimaryKeys(long fileEntryTypeId);
377
378 public void addDDMStructureLinks(long fileEntryTypeId,
379 Set<java.lang.Long> ddmStructureIds);
380
381 public void addDLFolderDLFileEntryType(long folderId,
382 DLFileEntryType dlFileEntryType);
383
384 public void addDLFolderDLFileEntryType(long folderId, long fileEntryTypeId);
385
386 public void addDLFolderDLFileEntryTypes(long folderId,
387 List<DLFileEntryType> dlFileEntryTypes);
388
389 public void addDLFolderDLFileEntryTypes(long folderId,
390 long[] fileEntryTypeIds);
391
392 public void cascadeFileEntryTypes(long userId, DLFolder dlFolder)
393 throws PortalException;
394
395 public void clearDLFolderDLFileEntryTypes(long folderId);
396
397 public void deleteDLFolderDLFileEntryType(long folderId,
398 DLFileEntryType dlFileEntryType);
399
400 public void deleteDLFolderDLFileEntryType(long folderId,
401 long fileEntryTypeId);
402
403 public void deleteDLFolderDLFileEntryTypes(long folderId,
404 List<DLFileEntryType> dlFileEntryTypes);
405
406 public void deleteDLFolderDLFileEntryTypes(long folderId,
407 long[] fileEntryTypeIds);
408
409 @SystemEvent(action = SystemEventConstants.ACTION_SKIP, type = SystemEventConstants.TYPE_DELETE)
410 public void deleteFileEntryType(DLFileEntryType dlFileEntryType)
411 throws PortalException;
412
413 public void deleteFileEntryType(long fileEntryTypeId)
414 throws PortalException;
415
416 public void deleteFileEntryTypes(long groupId) throws PortalException;
417
418 public void setDLFolderDLFileEntryTypes(long folderId,
419 long[] fileEntryTypeIds);
420
421 public void unsetFolderFileEntryTypes(long folderId);
422
423 public void updateDDMStructureLinks(long fileEntryTypeId,
424 Set<java.lang.Long> ddmStructureIds) throws PortalException;
425
426 public void updateFileEntryType(long userId, long fileEntryTypeId,
427 java.lang.String name, java.lang.String description,
428 long[] ddmStructureIds, ServiceContext serviceContext)
429 throws PortalException;
430
431 public void updateFileEntryType(long userId, long fileEntryTypeId,
432 Map<Locale, java.lang.String> nameMap,
433 Map<Locale, java.lang.String> descriptionMap, long[] ddmStructureIds,
434 ServiceContext serviceContext) throws PortalException;
435
436 public void updateFolderFileEntryTypes(DLFolder dlFolder,
437 List<java.lang.Long> fileEntryTypeIds, long defaultFileEntryTypeId,
438 ServiceContext serviceContext);
439 }