public class RejectionSubComponentEvaluator extends Object implements SubComponentEvaluator
A sample SubComponentEvaluator that always evaluates to false. This can be referenced
in an <evaluation> element to ensure that a SubComponent is not rendered.
| Constructor and Description |
|---|
RejectionSubComponentEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(RequestContext context,
Map<String,String> params)
Evaluates whether or not the information in the supplied
RequestContext meets the criteria
defined in the supplied parameter Map. |
String |
getBeanName() |
void |
setBeanName(String name) |
public boolean evaluate(RequestContext context, Map<String,String> params)
SubComponentEvaluatorEvaluates whether or not the information in the supplied RequestContext meets the criteria
defined in the supplied parameter Map.
evaluate in interface SubComponentEvaluatorcontext - The RequestContext currently being serviced.params - A Map of name/value parameters that define the evaluation criteria.false regardless of the context and params arguments supplied.public String getBeanName()
public void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwareCopyright © 2005–2016 Alfresco Software. All rights reserved.