Package com.logicaldoc.scheme
Class DocumentScheme
java.lang.Object
com.logicaldoc.scheme.DocumentScheme
- All Implemented Interfaces:
- com.logicaldoc.core.document.DocumentListener
This listener handles schemes for the document being modified.
- Since:
- 4.0
- Author:
- Matteo Caruso - LogicalDOC
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidafterCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) voidafterSaveHistory(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory event, Map<String, Object> dictionary) voidafterStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) voidbeforeCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) voidbeforeStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) static SchemeProcessorbuildSchemeProcessor(String type, com.logicaldoc.core.document.Document document, boolean checkin, boolean update, Map<String, Long> sequenceMap) Finds the scheme processor of the proper typestatic SchemeProcessorbuildSchemeProcessor(String type, com.logicaldoc.core.document.Document document, boolean checkin, boolean update, Map<String, Object> dictionary, Map<String, Long> sequenceMap) Finds the scheme processor of the proper type
- 
Field Details- 
DEFAULT- See Also:
 
- 
CUSTOMID_SCHEME- See Also:
 
- 
AUTONAMING_SCHEME- See Also:
 
- 
AUTOFOLDING_SCHEME- See Also:
 
- 
AUTOREVISIONING_SCHEME- See Also:
 
 
- 
- 
Constructor Details- 
DocumentSchemepublic DocumentScheme()
 
- 
- 
Method Details- 
afterStorepublic void afterStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceException- Specified by:
- afterStorein interface- com.logicaldoc.core.document.DocumentListener
- Throws:
- com.logicaldoc.core.PersistenceException
 
- 
beforeStorepublic void beforeStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceException- Specified by:
- beforeStorein interface- com.logicaldoc.core.document.DocumentListener
- Throws:
- com.logicaldoc.core.PersistenceException
 
- 
afterCheckinpublic void afterCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceException- Specified by:
- afterCheckinin interface- com.logicaldoc.core.document.DocumentListener
- Throws:
- com.logicaldoc.core.PersistenceException
 
- 
beforeCheckinpublic void beforeCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceException- Specified by:
- beforeCheckinin interface- com.logicaldoc.core.document.DocumentListener
- Throws:
- com.logicaldoc.core.PersistenceException
 
- 
buildSchemeProcessorpublic static SchemeProcessor buildSchemeProcessor(String type, com.logicaldoc.core.document.Document document, boolean checkin, boolean update, Map<String, Long> sequenceMap) throws com.logicaldoc.core.PersistenceException, com.logicaldoc.core.automation.AutomationExceptionFinds the scheme processor of the proper type- Parameters:
- type- type of scheme
- document- the document being processed
- checkin- if we are processing a checkin
- update- if we are processing an update of the metadata
- sequenceMap- the map containing the values to use for the different sequences
- Returns:
- the matching processor
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
- com.logicaldoc.core.automation.AutomationException- the script has been evaluated but produced an error
 
- 
buildSchemeProcessorpublic static SchemeProcessor buildSchemeProcessor(String type, com.logicaldoc.core.document.Document document, boolean checkin, boolean update, Map<String, Object> dictionary, Map<String, throws com.logicaldoc.core.PersistenceException, com.logicaldoc.core.automation.AutomationExceptionLong> sequenceMap) Finds the scheme processor of the proper type- Parameters:
- type- type of scheme
- document- the document being processed
- checkin- if we are processing a checkin
- update- if we are processing an update of the metadata
- dictionary- optional dictionary to use in the automation
- sequenceMap- the map containing the values to use for the different sequences
- Returns:
- the matching processor
- Throws:
- com.logicaldoc.core.PersistenceException- Error in the database
- com.logicaldoc.core.automation.AutomationException- the script has been evaluated but produced an error
 
- 
afterSaveHistorypublic void afterSaveHistory(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory event, Map<String, Object> dictionary) throws com.logicaldoc.core.PersistenceException- Specified by:
- afterSaveHistoryin interface- com.logicaldoc.core.document.DocumentListener
- Throws:
- com.logicaldoc.core.PersistenceException
 
 
-