Package org.bonitasoft.engine.archive
Interface ArchiveService
- All Known Implementing Classes:
ArchiveServiceImpl
public interface ArchiveService
- Since:
- 6.0
- Author:
- Feng Hui, Matthieu Chaffotte
-
Method Summary
Modifier and TypeMethodDescriptionintdeleteFromQuery(String queryName, Map<String, Object> parameters) Get the ReadPersistenceService corresponding to the definitive archivebooleanisArchivable(Class<? extends PersistentObject> sourceObjectClass) voidrecordDelete(DeleteRecord record) Remove the given entity from both sliding archive (if present) and the right archive level (if present) This operation should normally to be used.voidrecordInsert(long time, ArchiveInsertRecord record) Archive the given entity in sliding archive if relevant and in the appropriate definitive archivevoidrecordInserts(long time, ArchiveInsertRecord... records) Archive the given entities in the definitive archive
-
Method Details
-
recordInsert
Archive the given entity in sliding archive if relevant and in the appropriate definitive archive- Parameters:
time- The archive daterecord- Archive insert record containing the entity to be archived- Throws:
SRecorderException
-
recordInserts
Archive the given entities in the definitive archive- Parameters:
time- the time of archivingrecords- Archive inserts record containing the entity to be archived- Throws:
SRecorderException- in case of a write error
-
recordDelete
Remove the given entity from both sliding archive (if present) and the right archive level (if present) This operation should normally to be used. This is for admin purpose only- Parameters:
record- The delete record containing archived entity to be deleted- Throws:
SRecorderException
-
getDefinitiveArchiveReadPersistenceService
ReadPersistenceService getDefinitiveArchiveReadPersistenceService()Get the ReadPersistenceService corresponding to the definitive archive- Returns:
- the ReadPersistenceService corresponding to the definitive archive
-
isArchivable
- Parameters:
sourceObjectClass- Persistent object to be judged achievable or not- Returns:
- Return true if the objects of the given class can be archived.
-
deleteFromQuery
- Throws:
SRecorderException
-