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.GraphPolicyThe 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.GraphPolicygetCleanInstance()protected booleanisAdjustedAfterReview(ome.services.graphs.GraphPolicy.Details object)An opportunity to adjust each model object after the graph policy reviews it.protected booleanisAdjustedBeforeReview(ome.services.graphs.GraphPolicy.Details object)An opportunity to adjust each model object before the graph policy reviews it.booleanisCondition(java.lang.String name)voidnoteDetails(org.hibernate.Session session, ome.model.IObject object, java.lang.String realClass, long id)voidregisterPredicate(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)voidsetCondition(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:
registerPredicatein classome.services.graphs.GraphPolicy
-
getCleanInstance
public ome.services.graphs.GraphPolicy getCleanInstance()
- Specified by:
getCleanInstancein classome.services.graphs.GraphPolicy
-
setCondition
public void setCondition(java.lang.String name)
- Specified by:
setConditionin classome.services.graphs.GraphPolicy
-
isCondition
public boolean isCondition(java.lang.String name)
- Specified by:
isConditionin classome.services.graphs.GraphPolicy
-
noteDetails
public void noteDetails(org.hibernate.Session session, ome.model.IObject object, java.lang.String realClass, long id)- Overrides:
noteDetailsin 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:
reviewin classome.services.graphs.GraphPolicy- Throws:
ome.services.graphs.GraphException
-
-