Package com.logicaldoc.core.automation
Class Automation
- java.lang.Object
 - 
- com.logicaldoc.core.automation.Automation
 
 
- 
public class Automation extends Object
Represents a Facade on Velocity- Author:
 - Marco Meschieri - LogicalDOC
 
 
- 
- 
Constructor Summary
Constructors Constructor Description Automation()Automation(String logTag)Automation(String logTag, Locale locale, long tenantId) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringevaluate(String expression, Map<String,Object> clientDictionary)Evaluate a given expression.voidevaluate(Map<String,Object> clientDictionary, Reader reader, Writer writer)Evaluate a given expression.static voidinitialize() 
 - 
 
- 
- 
Field Detail
- 
CURRENT_DATE
public static final String CURRENT_DATE
- See Also:
 - Constant Field Values
 
 
- 
PRODUCT
public static final String PRODUCT
- See Also:
 - Constant Field Values
 
 
- 
LOCALE
public static final String LOCALE
- See Also:
 - Constant Field Values
 
 
- 
SERVER_URL
public static final String SERVER_URL
- See Also:
 - Constant Field Values
 
 
- 
TENANT_ID
public static final String TENANT_ID
- See Also:
 - Constant Field Values
 
 
- 
DICTIONARY
public static final String DICTIONARY
- See Also:
 - Constant Field Values
 
 
- 
KEYS
public static final String KEYS
- See Also:
 - Constant Field Values
 
 
- 
CONTEXT
public static final String CONTEXT
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
initialize
public static void initialize()
 
- 
evaluate
public String evaluate(String expression, Map<String,Object> clientDictionary)
Evaluate a given expression. The given dictionary will be integrated byprepareDictionary(Map):- Parameters:
 expression- The string expression to processclientDictionary- The dictionary to use- Returns:
 - The processed result
 
 
- 
evaluate
public void evaluate(Map<String,Object> clientDictionary, Reader reader, Writer writer)
Evaluate a given expression. The given dictionary will be integrated byprepareDictionary(Map)- Parameters:
 clientDictionary- dictionary to be passed to the enginereader- the reader on the automation codewriter- the writer that will receive the output
 
 - 
 
 -