Package omero.cmd.graphs
Class BaseGraphPolicyAdjuster
- java.lang.Object
-
- ome.services.graphs.GraphPolicy
-
- omero.cmd.graphs.BaseGraphPolicyAdjuster
-
public abstract class BaseGraphPolicyAdjuster extends ome.services.graphs.GraphPolicy
The base class assists adjustment of an existing graph traversal policy.- Since:
- 5.1.0
-
-
Constructor Summary
Constructors Constructor Description BaseGraphPolicyAdjuster(ome.services.graphs.GraphPolicy graphPolicy)
Construct a new graph policy adjuster.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
isAdjustedBeforeReview
protected boolean isAdjustedBeforeReview(ome.services.graphs.GraphPolicy.Details object)
An opportunity to adjust each model object before the graph policy reviews it.- Parameters:
object
- the model object before review- Returns:
- if this object's details were changed by this adjustment
-
isAdjustedAfterReview
protected boolean isAdjustedAfterReview(ome.services.graphs.GraphPolicy.Details object)
An opportunity to adjust each model object after the graph policy reviews it.- Parameters:
object
- the model object after review- Returns:
- if this object's details were changed by this adjustment
-
registerPredicate
public void registerPredicate(ome.services.graphs.GraphPolicyRulePredicate predicate)
- Overrides:
registerPredicate
in classome.services.graphs.GraphPolicy
-
getCleanInstance
public ome.services.graphs.GraphPolicy getCleanInstance()
- Specified by:
getCleanInstance
in classome.services.graphs.GraphPolicy
-
setCondition
public void setCondition(java.lang.String name)
- Specified by:
setCondition
in classome.services.graphs.GraphPolicy
-
isCondition
public boolean isCondition(java.lang.String name)
- Specified by:
isCondition
in classome.services.graphs.GraphPolicy
-
noteDetails
public void noteDetails(org.hibernate.Session session, ome.model.IObject object, java.lang.String realClass, long id)
- Overrides:
noteDetails
in classome.services.graphs.GraphPolicy
-
review
public 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
- Specified by:
review
in classome.services.graphs.GraphPolicy
- Throws:
ome.services.graphs.GraphException
-
-