public class EntityChainAccessCheckFilter extends CriteriaFilter
value
Constructor and Description |
---|
EntityChainAccessCheckFilter() |
EntityChainAccessCheckFilter(Object value) |
EntityChainAccessCheckFilter(String accessor) |
EntityChainAccessCheckFilter(String accessor,
Object value) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkCriteria(Object input)
Checks the business logic against which the Predicate will succeed (response as true) or fail (false).
|
String |
getAccessor()
A string representation in a.b.c format; where any word represents a property as an entity or a map.
|
Object |
getValue()
If the accessor equals the value then true is returned
If the value is a Transformer or Predicate , then that will be applied on the accessor value to checkCriteria(Object) . |
void |
setAccessor(String accessor)
A string representation in a.b.c format; where any word represents a property as an entity or a map.
|
void |
setValue(Object value)
If the accessor equals the value then true is returned
If the value is a Transformer or Predicate , then that will be applied on the accessor value to checkCriteria(Object) . |
evaluate, getErrorMsg, setErrorMsg, test, transform
public EntityChainAccessCheckFilter()
public EntityChainAccessCheckFilter(Object value)
public EntityChainAccessCheckFilter(String accessor)
protected boolean checkCriteria(Object input) throws ContinueProcessingException, BreakChainException, Exception
CriteriaFilter
ContinueProcessingException
.
Exception
type.checkCriteria
in class CriteriaFilter
ContinueProcessingException
- skipping further record processingBreakChainException
- for explained business logic failed conditionsException
- for any serious Errorpublic String getAccessor()
public void setAccessor(String accessor)
public Object getValue()
Transformer
or Predicate
, then that will be applied on the accessor value to checkCriteria(Object)
.
The value can throw an exception in accordance with checkCriteria(Object)
public void setValue(Object value)
Transformer
or Predicate
, then that will be applied on the accessor value to checkCriteria(Object)
.
The value can throw an exception in accordance with checkCriteria(Object)
Copyright © 2018. All rights reserved.