public class SkipHeadPolicy extends Object
Constructor and Description |
---|
SkipHeadPolicy() |
Modifier and Type | Method and Description |
---|---|
static GraphPolicy |
getSkipHeadPolicyPerform(GraphPolicy graphPolicy,
com.google.common.collect.SetMultimap<String,Long> permissionsOverrides)
Adjust an existing graph traversal policy so that for specific model objects permissions are not checked.
|
static GraphPolicy |
getSkipHeadPolicySkip(GraphPolicy graphPolicy,
GraphPathBean graphPathBean,
Collection<String> startFrom,
GraphPolicy.Action startAction,
com.google.common.collect.SetMultimap<String,Long> permissionsOverrides)
Adjust an existing graph traversal policy so that orphaned model objects will always or never be included,
according to their type.
|
public static GraphPolicy getSkipHeadPolicySkip(GraphPolicy graphPolicy, GraphPathBean graphPathBean, Collection<String> startFrom, GraphPolicy.Action startAction, com.google.common.collect.SetMultimap<String,Long> permissionsOverrides) throws GraphException
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 or null
startAction
- the action associated with nodes qualifying as start objectspermissionsOverrides
- where to note for which startFrom
objects permissions are not to be checkedGraphException
- if no start classes are namedpublic static GraphPolicy getSkipHeadPolicyPerform(GraphPolicy graphPolicy, com.google.common.collect.SetMultimap<String,Long> permissionsOverrides)
graphPolicy
- the graph policy to adjustpermissionsOverrides
- for which model objects permissions are not to be checked
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.