public abstract class BaseGraphPolicyAdjuster
extends ome.services.graphs.GraphPolicy
| Constructor and Description |
|---|
BaseGraphPolicyAdjuster(ome.services.graphs.GraphPolicy graphPolicy)
Construct a new graph policy adjuster.
|
| Modifier and Type | Method and Description |
|---|---|
ome.services.graphs.GraphPolicy |
getCleanInstance() |
protected boolean |
isAdjustedAfterReview(ome.services.graphs.GraphPolicy.Details object)
An opportunity to adjust each model object after the graph policy reviews it.
|
protected boolean |
isAdjustedBeforeReview(ome.services.graphs.GraphPolicy.Details object)
An opportunity to adjust each model object before the graph policy reviews it.
|
boolean |
isCondition(java.lang.String name) |
void |
noteDetails(org.hibernate.Session session,
ome.model.IObject object,
java.lang.String realClass,
long id) |
void |
registerPredicate(ome.services.graphs.GraphPolicyRulePredicate predicate) |
java.util.Set<ome.services.graphs.GraphPolicy.Details> |
review(java.util.Map<java.lang.String,java.util.Set<ome.services.graphs.GraphPolicy.Details>> linkedFrom,
ome.services.graphs.GraphPolicy.Details rootObject,
java.util.Map<java.lang.String,java.util.Set<ome.services.graphs.GraphPolicy.Details>> linkedTo,
java.util.Set<java.lang.String> notNullable,
boolean isErrorRules) |
void |
setCondition(java.lang.String name) |
public BaseGraphPolicyAdjuster(ome.services.graphs.GraphPolicy graphPolicy)
graphPolicy - the graph policy that is to be adjustedprotected boolean isAdjustedBeforeReview(ome.services.graphs.GraphPolicy.Details object)
object - the model object before reviewprotected boolean isAdjustedAfterReview(ome.services.graphs.GraphPolicy.Details object)
object - the model object after reviewpublic void registerPredicate(ome.services.graphs.GraphPolicyRulePredicate predicate)
registerPredicate in class ome.services.graphs.GraphPolicypublic ome.services.graphs.GraphPolicy getCleanInstance()
getCleanInstance in class ome.services.graphs.GraphPolicypublic void setCondition(java.lang.String name)
setCondition in class ome.services.graphs.GraphPolicypublic boolean isCondition(java.lang.String name)
isCondition in class ome.services.graphs.GraphPolicypublic void noteDetails(org.hibernate.Session session,
ome.model.IObject object,
java.lang.String realClass,
long id)
noteDetails in class ome.services.graphs.GraphPolicypublic final java.util.Set<ome.services.graphs.GraphPolicy.Details> review(java.util.Map<java.lang.String,java.util.Set<ome.services.graphs.GraphPolicy.Details>> linkedFrom,
ome.services.graphs.GraphPolicy.Details rootObject,
java.util.Map<java.lang.String,java.util.Set<ome.services.graphs.GraphPolicy.Details>> linkedTo,
java.util.Set<java.lang.String> notNullable,
boolean isErrorRules)
throws ome.services.graphs.GraphException
review in class ome.services.graphs.GraphPolicyome.services.graphs.GraphException