Class BaseGraphTraversalProcessor

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

    public abstract class BaseGraphTraversalProcessor
    extends java.lang.Object
    implements ome.services.graphs.GraphTraversal.Processor
    Useful methods for GraphTraversal.Processor instances to share.
    Since:
    5.1.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.hibernate.Session session  
    • 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 deleteFiles​(ome.services.delete.Deletion deletionInstance)
      Delete data from the filesystem in the order in which the related batches were passed to deleteInstances(String, Collection).
      void deleteInstances​(java.lang.String className, java.util.Collection<java.lang.Long> ids)  
      void nullProperties​(java.lang.String className, java.lang.String propertyName, 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
      • Methods inherited from interface ome.services.graphs.GraphTraversal.Processor

        getRequiredPermissions, processInstances
    • Field Detail

      • session

        protected final org.hibernate.Session session
    • Constructor Detail

      • BaseGraphTraversalProcessor

        public BaseGraphTraversalProcessor​(org.hibernate.Session session)
    • 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)
                             throws ome.services.graphs.GraphException
        Specified by:
        deleteInstances in interface ome.services.graphs.GraphTraversal.Processor
        Throws:
        ome.services.graphs.GraphException
      • deleteFiles

        public void deleteFiles​(ome.services.delete.Deletion deletionInstance)
        Delete data from the filesystem in the order in which the related batches were passed to deleteInstances(String, Collection).
        Parameters:
        deletionInstance - a deletion instance for deleting files
      • 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