Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SkipHeadPolicy

        public SkipHeadPolicy()
    • 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 adjust
        graphPathBean - the graph path bean, for converting class names to the actual classes
        startFrom - 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 objects
        permissionsOverrides - where to note for which startFrom 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 adjust
        permissionsOverrides - for which model objects permissions are not to be checked
        Returns:
        the adjusted graph policy