Package com.logicaldoc.scheme
Class DoumentScheme
- java.lang.Object
-
- com.logicaldoc.scheme.DoumentScheme
-
- All Implemented Interfaces:
com.logicaldoc.core.document.DocumentListener
public class DoumentScheme extends Object implements com.logicaldoc.core.document.DocumentListener
This listener handles schemes for the document being modified.- Since:
- 4.0
- Author:
- Matteo Caruso - LogicalDOC
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTOFOLDING_SCHEME
static String
AUTONAMING_SCHEME
static String
CUSTOMID_SCHEME
static String
DEFAULT
-
Constructor Summary
Constructors Constructor Description DoumentScheme()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary)
void
afterSaveHistory(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory event, Map<String,Object> dictionary)
void
afterStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary)
void
beforeCheckin(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary)
void
beforeStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary)
static SchemeProcessor
buildSchemeProcessor(String type, com.logicaldoc.core.document.Document document, boolean checkin, boolean update)
Finds the scheme processor of the proper typestatic SchemeProcessor
buildSchemeProcessor(String type, com.logicaldoc.core.document.Document document, boolean checkin, boolean update, Map<String,Object> dictionary)
Finds the scheme processor of the proper type
-
-
-
Field Detail
-
DEFAULT
public static final String DEFAULT
- See Also:
- Constant Field Values
-
CUSTOMID_SCHEME
public static final String CUSTOMID_SCHEME
- See Also:
- Constant Field Values
-
AUTONAMING_SCHEME
public static final String AUTONAMING_SCHEME
- See Also:
- Constant Field Values
-
AUTOFOLDING_SCHEME
public static final String AUTOFOLDING_SCHEME
- See Also:
- Constant Field Values
-
-
Method Detail
-
afterStore
public void afterStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary)
- Specified by:
afterStore
in interfacecom.logicaldoc.core.document.DocumentListener
-
beforeStore
public void beforeStore(com.logicaldoc.core.document.Document document, com.logicaldoc.core.document.DocumentHistory transaction, Map<String,Object> dictionary)
- Specified by:
beforeStore
in interfacecom.logicaldoc.core.document.DocumentListener
-
afterCheckin
public 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:
afterCheckin
in interfacecom.logicaldoc.core.document.DocumentListener
- Throws:
com.logicaldoc.core.PersistenceException
-
beforeCheckin
public 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:
beforeCheckin
in interfacecom.logicaldoc.core.document.DocumentListener
- Throws:
com.logicaldoc.core.PersistenceException
-
buildSchemeProcessor
public static SchemeProcessor buildSchemeProcessor(String type, com.logicaldoc.core.document.Document document, boolean checkin, boolean update)
Finds the scheme processor of the proper type- Parameters:
type
- type of schemedocument
- the document being processedcheckin
- if we are processing a checkinupdate
- if we are processing an update of the metadata- Returns:
- the matching processor
-
buildSchemeProcessor
public static SchemeProcessor buildSchemeProcessor(String type, com.logicaldoc.core.document.Document document, boolean checkin, boolean update, Map<String,Object> dictionary)
Finds the scheme processor of the proper type- Parameters:
type
- type of schemedocument
- the document being processedcheckin
- if we are processing a checkinupdate
- if we are processing an update of the metadatadictionary
- optional dictionary to use in the automation- Returns:
- the matching processor
-
afterSaveHistory
public 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:
afterSaveHistory
in interfacecom.logicaldoc.core.document.DocumentListener
- Throws:
com.logicaldoc.core.PersistenceException
-
-