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
This listener takes care of initializing the metadata of a document.
- Since:
- 8.8.2
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidafterCheckin(Document document, DocumentHistory transaction, Map<String, Object> dictionary) Called after a document is checked invoidafterSaveHistory(Document document, DocumentHistory event, Map<String, Object> dictionary) Called after an event has been storedvoidafterStore(Document document, DocumentHistory transaction, Map<String, Object> dictionary) Called after a document is stored in the databasevoidbeforeCheckin(Document document, DocumentHistory transaction, Map<String, Object> dictionary) Called before a document is checked invoidbeforeStore(Document document, DocumentHistory transaction, Map<String, Object> dictionary) Called before a document is stored in the databaseMethods inherited from class com.logicaldoc.core.metadata.initialization.Initializerinitialize
- 
Constructor Details- 
DocumentInitializerpublic DocumentInitializer()
 
- 
- 
Method Details- 
beforeStorepublic void beforeStore(Document document, DocumentHistory transaction, Map<String, Object> dictionary) throws PersistenceExceptionDescription copied from interface:DocumentListenerCalled before a document is stored in the database- Specified by:
- beforeStorein interface- DocumentListener
- Parameters:
- document- The document to be stored
- transaction- Transaction informations
- dictionary- Dictionary of the execution pipeline
- Throws:
- PersistenceException- raised if something went wrong
 
- 
beforeCheckinpublic void beforeCheckin(Document document, DocumentHistory transaction, Map<String, Object> dictionary) throws PersistenceExceptionDescription copied from interface:DocumentListenerCalled before a document is checked in- Specified by:
- beforeCheckinin interface- DocumentListener
- Parameters:
- document- The document to be checked in
- transaction- Transaction informations
- dictionary- Dictionary of the execution pipeline
- Throws:
- PersistenceException- raised if something went wrong
 
- 
afterStorepublic void afterStore(Document document, DocumentHistory transaction, Map<String, Object> dictionary) throws PersistenceExceptionDescription copied from interface:DocumentListenerCalled after a document is stored in the database- Specified by:
- afterStorein interface- DocumentListener
- Parameters:
- document- The document to be stored
- transaction- Transaction informations
- dictionary- Dictionary of the execution pipeline
- Throws:
- PersistenceException- raised if something went wrong
 
- 
afterCheckinpublic void afterCheckin(Document document, DocumentHistory transaction, Map<String, Object> dictionary) throws PersistenceExceptionDescription copied from interface:DocumentListenerCalled after a document is checked in- Specified by:
- afterCheckinin interface- DocumentListener
- Parameters:
- document- The document to be checked in
- transaction- Transaction informations
- dictionary- Dictionary of the execution pipeline
- Throws:
- PersistenceException- raised if something went wrong
 
- 
afterSaveHistorypublic void afterSaveHistory(Document document, DocumentHistory event, Map<String, Object> dictionary) throws PersistenceExceptionDescription copied from interface:DocumentListenerCalled after an event has been stored- Specified by:
- afterSaveHistoryin interface- DocumentListener
- Parameters:
- document- The document the event is relative to
- event- The saved event
- dictionary- Dictionary of the execution pipeline
- Throws:
- PersistenceException- raised if something went wrong
 
 
-