public class ApproveAllModulesEvaluator extends Object implements ExtensionModuleEvaluator
This ExtensionModuleEvaluator will always approve each module request. It is designed to be the default
Spring Surf evaluator and applications should override the Spring bean configuration to provide a new default evaluator
and/or additional evaluators that modules can directly specify
| Constructor and Description |
|---|
ApproveAllModulesEvaluator() |
| 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.
|
public boolean applyModule(RequestContext context, Map<String,String> evaluationProperties)
ExtensionModuleEvaluatorDetermines 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.
applyModule in interface ExtensionModuleEvaluatorcontext - The current RequestContextevaluationProperties - The evaluation properties defined in the module.true if the module should be applied and false otherwise.public String[] getRequiredProperties()
ExtensionModuleEvaluatorReturns 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.
getRequiredProperties in interface ExtensionModuleEvaluatorCopyright © 2005–2016 Alfresco Software. All rights reserved.