Package com.logicaldoc.core.folder
Class FolderValidator
java.lang.Object
com.logicaldoc.core.metadata.validation.Validator
com.logicaldoc.core.folder.FolderValidator
- All Implemented Interfaces:
- FolderListener
This listener takes care of logically validate a folder. If the document has
 a template and the template declares a validation script, it is executed
- Since:
- 8.8.1
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidafterStore(Folder folder, FolderHistory transaction, Map<String, Object> dictionary) Called after a folder is stored in the databasevoidbeforeStore(Folder folder, FolderHistory transaction, Map<String, Object> dictionary) Called before a folder is stored in the database
- 
Constructor Details- 
FolderValidatorpublic FolderValidator()
 
- 
- 
Method Details- 
beforeStorepublic void beforeStore(Folder folder, FolderHistory transaction, Map<String, Object> dictionary) throws PersistenceExceptionDescription copied from interface:FolderListenerCalled before a folder is stored in the database- Specified by:
- beforeStorein interface- FolderListener
- Parameters:
- folder- The folder to be stored
- transaction- Transaction informations
- dictionary- Dictionary of the execution pipeline
- Throws:
- PersistenceException- raised if something went wrong
 
- 
afterStorepublic void afterStore(Folder folder, FolderHistory transaction, Map<String, Object> dictionary) throws PersistenceExceptionDescription copied from interface:FolderListenerCalled after a folder is stored in the database- Specified by:
- afterStorein interface- FolderListener
- Parameters:
- folder- The folder to be stored
- transaction- Transaction informations
- dictionary- Dictionary of the execution pipeline
- Throws:
- PersistenceException- raised if something went wrong
 
 
-