Package com.logicaldoc.core.document
Class DocumentInitializer
- java.lang.Object
-
- com.logicaldoc.core.metadata.initialization.Initializer
-
- com.logicaldoc.core.document.DocumentInitializer
-
- All Implemented Interfaces:
DocumentListener
public class DocumentInitializer extends Initializer implements DocumentListener
This listener takes care of initializing the metadata of a document.- Since:
- 8.8.2
- Author:
- Marco Meschieri - LogicalDOC
-
-
Constructor Summary
Constructors Constructor Description DocumentInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterCheckin(Document document, DocumentHistory transaction, Map<String,Object> dictionary)
Called after a document is checked invoid
afterSaveHistory(Document document, DocumentHistory event, Map<String,Object> dictionary)
Called after an event has been storedvoid
afterStore(Document document, DocumentHistory transaction, Map<String,Object> dictionary)
Called after a document is stored in the databasevoid
beforeCheckin(Document document, DocumentHistory transaction, Map<String,Object> dictionary)
Called before a document is checked invoid
beforeStore(Document document, DocumentHistory transaction, Map<String,Object> dictionary)
Called before a document is stored in the database-
Methods inherited from class com.logicaldoc.core.metadata.initialization.Initializer
initialize
-
-
-
-
Method Detail
-
beforeStore
public void beforeStore(Document document, DocumentHistory transaction, Map<String,Object> dictionary) throws PersistenceException
Description copied from interface:DocumentListener
Called before a document is stored in the database- Specified by:
beforeStore
in interfaceDocumentListener
- Parameters:
document
- The document to be storedtransaction
- Transaction informationsdictionary
- Dictionary of the execution pipeline- Throws:
PersistenceException
- raised if something went wrong
-
beforeCheckin
public void beforeCheckin(Document document, DocumentHistory transaction, Map<String,Object> dictionary) throws PersistenceException
Description copied from interface:DocumentListener
Called before a document is checked in- Specified by:
beforeCheckin
in interfaceDocumentListener
- Parameters:
document
- The document to be checked intransaction
- Transaction informationsdictionary
- Dictionary of the execution pipeline- Throws:
PersistenceException
- raised if something went wrong
-
afterStore
public void afterStore(Document document, DocumentHistory transaction, Map<String,Object> dictionary) throws PersistenceException
Description copied from interface:DocumentListener
Called after a document is stored in the database- Specified by:
afterStore
in interfaceDocumentListener
- Parameters:
document
- The document to be storedtransaction
- Transaction informationsdictionary
- Dictionary of the execution pipeline- Throws:
PersistenceException
- raised if something went wrong
-
afterCheckin
public void afterCheckin(Document document, DocumentHistory transaction, Map<String,Object> dictionary) throws PersistenceException
Description copied from interface:DocumentListener
Called after a document is checked in- Specified by:
afterCheckin
in interfaceDocumentListener
- Parameters:
document
- The document to be checked intransaction
- Transaction informationsdictionary
- Dictionary of the execution pipeline- Throws:
PersistenceException
- raised if something went wrong
-
afterSaveHistory
public void afterSaveHistory(Document document, DocumentHistory event, Map<String,Object> dictionary) throws PersistenceException
Description copied from interface:DocumentListener
Called after an event has been stored- Specified by:
afterSaveHistory
in interfaceDocumentListener
- Parameters:
document
- The document the event is relative toevent
- The saved eventdictionary
- Dictionary of the execution pipeline- Throws:
PersistenceException
- raised if something went wrong
-
-