Package omero.cmd.graphs
Class SkipHeadPolicy
- java.lang.Object
-
- omero.cmd.graphs.SkipHeadPolicy
-
public class SkipHeadPolicy extends java.lang.Object
Adjust graph traversal policy to prevent descent into inclusions beyond certain types.- Since:
- 5.1.0
-
-
Constructor Summary
Constructors Constructor Description SkipHeadPolicy()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ome.services.graphs.GraphPolicy
getSkipHeadPolicyPerform(ome.services.graphs.GraphPolicy graphPolicy, com.google.common.collect.SetMultimap<java.lang.String,java.lang.Long> permissionsOverrides)
Adjust an existing graph traversal policy so that for specific model objects permissions are not checked.static ome.services.graphs.GraphPolicy
getSkipHeadPolicySkip(ome.services.graphs.GraphPolicy graphPolicy, ome.services.graphs.GraphPathBean graphPathBean, java.util.Collection<java.lang.String> startFrom, ome.services.graphs.GraphPolicy.Action startAction, com.google.common.collect.SetMultimap<java.lang.String,java.lang.Long> permissionsOverrides)
Adjust an existing graph traversal policy so that orphaned model objects will always or never be included, according to their type.
-
-
-
Method Detail
-
getSkipHeadPolicySkip
public static ome.services.graphs.GraphPolicy getSkipHeadPolicySkip(ome.services.graphs.GraphPolicy graphPolicy, ome.services.graphs.GraphPathBean graphPathBean, java.util.Collection<java.lang.String> startFrom, ome.services.graphs.GraphPolicy.Action startAction, com.google.common.collect.SetMultimap<java.lang.String,java.lang.Long> permissionsOverrides) throws ome.services.graphs.GraphException
Adjust an existing graph traversal policy so that orphaned model objects will always or never be included, according to their type.- Parameters:
graphPolicy
- the graph policy to adjustgraphPathBean
- the graph path bean, for converting class names to the actual classesstartFrom
- the model object types to from which to start inclusion, may not be empty ornull
startAction
- the action associated with nodes qualifying as start objectspermissionsOverrides
- where to note for whichstartFrom
objects permissions are not to be checked- Returns:
- the adjusted graph policy
- Throws:
ome.services.graphs.GraphException
- if no start classes are named
-
getSkipHeadPolicyPerform
public static ome.services.graphs.GraphPolicy getSkipHeadPolicyPerform(ome.services.graphs.GraphPolicy graphPolicy, com.google.common.collect.SetMultimap<java.lang.String,java.lang.Long> permissionsOverrides)
Adjust an existing graph traversal policy so that for specific model objects permissions are not checked.- Parameters:
graphPolicy
- the graph policy to adjustpermissionsOverrides
- for which model objects permissions are not to be checked- Returns:
- the adjusted graph policy
-
-