public interface ExtensionModuleEvaluator
Implementations of this interface can be used to determine whether or not an extension module should be applied to an existing extensibility model.
| Modifier and Type | Method and Description |
|---|---|
boolean |
applyModule(RequestContext context,
Map<String,String> evaluationProperties)
Determines whether or not to apply a module.
|
String[] |
getRequiredProperties()
Returns the names of the required evaluation properties that are needed to successfully perform an evaluation.
|
boolean applyModule(RequestContext context, Map<String,String> evaluationProperties)
Determines whether or not to apply a module. The module being processed will already have been matched to the
path being processed but an evaluator can still be used to only apply the module in certain circumstances. These
will typically be dictated by whether or not some data in the supplied model matches the criteria defined in the
supplied evaluationProperties.
context - The current RequestContextevaluationProperties - The evaluation properties defined in the module.true if the module should be applied and false otherwise.String[] getRequiredProperties()
Returns the names of the required evaluation properties that are needed to successfully perform an evaluation.
This information is used when provided a user-interface that allows a ExtensionModuleEvaluator to be
dynamically configured for a module.
Copyright © 2005–2016 Alfresco Software. All rights reserved.