Package com.axemble.vdoc.sdk.connectors
Class BaseConnector<T>
java.lang.Object
com.axemble.vdoc.sdk.BaseSDKExtension
com.axemble.vdoc.sdk.connectors.BaseConnector<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BaseServiceConnector
,BaseTreatmentConnector
This base connector class.
- Version:
- 1.0, 18/03/2012
- Author:
- vlygeros
- See Also:
-
Field Summary
Fields inherited from class com.axemble.vdoc.sdk.BaseSDKExtension
LOGGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final String
evaluateExpressions
(String formula, IContext context, IResource resource) Evaluate expressions in formula (ex : ${iUser.login})protected final String
evaluateExpressions
(String formula, IContext context, IResource resource, String language) Evaluate expressions in formula (ex : ${iUser.login})protected final String
evaluateExpressions
(String formula, IContext context, IResource resource, String language, boolean isHtmlString) Evaluate expressions in formula (ex : ${iUser.login})final T
final IConnectionDefinition
<T> void
init()
final void
void
release()
Methods inherited from class com.axemble.vdoc.sdk.BaseSDKExtension
getDirectoryModule, getLanguage, getPortalModule, getProjectModule, getStaticString, getStaticString, getWorkflowModule, initialize
-
Constructor Details
-
BaseConnector
public BaseConnector()
-
-
Method Details
-
init
public void init() -
release
public void release() -
init
public final void init(com.axemble.vdoc.connector.domain.ConnectionDefinition<T> connectionDefinition) -
getConnection
-
getConnectionDefinition
-
evaluateExpressions
Evaluate expressions in formula (ex : ${iUser.login})- Parameters:
formula
- Text with expressions to evaluatecontext
- User contextresource
- Current resource- Returns:
- formula with evaluated expressions
-
evaluateExpressions
protected final String evaluateExpressions(String formula, IContext context, IResource resource, String language) Evaluate expressions in formula (ex : ${iUser.login})- Parameters:
formula
- Text with expressions to evaluatecontext
- User contextresource
- Current resourcelanguage
- language to evaluate expressions- Returns:
- formula with evaluated expressions
-
evaluateExpressions
protected final String evaluateExpressions(String formula, IContext context, IResource resource, String language, boolean isHtmlString) Evaluate expressions in formula (ex : ${iUser.login})- Parameters:
formula
- Text with expressions to evaluatecontext
- User contextresource
- Current resourcelanguage
- language to evaluate expressions- Returns:
- formula with evaluated expressions
-