Class NullGraphTraversalProcessor

  • All Implemented Interfaces:
    ome.services.graphs.GraphTraversal.Processor

    public class NullGraphTraversalProcessor
    extends java.lang.Object
    implements ome.services.graphs.GraphTraversal.Processor
    A GraphTraversal.Processor that does nothing whatsoever.
    Since:
    5.1.0
    • Constructor Summary

      Constructors 
      Constructor Description
      NullGraphTraversalProcessor​(java.util.Set<ome.services.graphs.GraphPolicy.Ability> requiredAbilities)
      Construct a GraphTraversal.Processor that does nothing whatsoever.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assertMayProcess​(java.lang.String className, long id, ome.model.internal.Details details)  
      void deleteInstances​(java.lang.String className, java.util.Collection<java.lang.Long> ids)  
      java.util.Set<ome.services.graphs.GraphPolicy.Ability> getRequiredPermissions()  
      void nullProperties​(java.lang.String className, java.lang.String propertyName, java.util.Collection<java.lang.Long> ids)  
      void processInstances​(java.lang.String className, java.util.Collection<java.lang.Long> ids)  
      • Methods inherited from class java.lang.Object

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

      • NullGraphTraversalProcessor

        public NullGraphTraversalProcessor​(java.util.Set<ome.services.graphs.GraphPolicy.Ability> requiredAbilities)
        Construct a GraphTraversal.Processor that does nothing whatsoever.
        Parameters:
        requiredAbilities - the GraphPolicy.Ability set to be returned by getRequiredPermissions()
    • Method Detail

      • nullProperties

        public void nullProperties​(java.lang.String className,
                                   java.lang.String propertyName,
                                   java.util.Collection<java.lang.Long> ids)
        Specified by:
        nullProperties in interface ome.services.graphs.GraphTraversal.Processor
      • deleteInstances

        public void deleteInstances​(java.lang.String className,
                                    java.util.Collection<java.lang.Long> ids)
        Specified by:
        deleteInstances in interface ome.services.graphs.GraphTraversal.Processor
      • processInstances

        public void processInstances​(java.lang.String className,
                                     java.util.Collection<java.lang.Long> ids)
        Specified by:
        processInstances in interface ome.services.graphs.GraphTraversal.Processor
      • getRequiredPermissions

        public java.util.Set<ome.services.graphs.GraphPolicy.Ability> getRequiredPermissions()
        Specified by:
        getRequiredPermissions in interface ome.services.graphs.GraphTraversal.Processor
      • assertMayProcess

        public void assertMayProcess​(java.lang.String className,
                                     long id,
                                     ome.model.internal.Details details)
                              throws ome.services.graphs.GraphException
        Specified by:
        assertMayProcess in interface ome.services.graphs.GraphTraversal.Processor
        Throws:
        ome.services.graphs.GraphException