public class GraphPolicyRule
extends java.lang.Object
GraphPolicy
.
It is designed to be conveniently created using Spring by supplying configuration metadata to the bean container.Constructor and Description |
---|
GraphPolicyRule() |
Modifier and Type | Method and Description |
---|---|
static GraphPolicy |
parseRules(GraphPathBean graphPathBean,
java.util.Collection<GraphPolicyRule> rules)
Convert the text-based rules as specified in the configuration metadata into a policy applicable in
model object graph traversal.
|
void |
setChanges(java.lang.String changes) |
void |
setError(java.lang.String message) |
void |
setMatches(java.lang.String matches) |
java.lang.String |
toString() |
public void setMatches(java.lang.String matches)
matches
- the match conditions for this policy rule, comma-separatedpublic void setChanges(java.lang.String changes)
changes
- the changes caused by this policy rule, comma-separatedpublic void setError(java.lang.String message)
message
- the error message triggered by this policy rulepublic java.lang.String toString()
toString
in class java.lang.Object
public static GraphPolicy parseRules(GraphPathBean graphPathBean, java.util.Collection<GraphPolicyRule> rules) throws GraphException
graphPathBean
- the graph path beanrules
- the rules to applyGraphTraversal
GraphException
- if the text-based rules could not be parsed