Class Deletion


  • public class Deletion
    extends java.lang.Object
    Maintain state about a delete itself. That makes a central class for providing reusable delete logic. (Note: much of this code has been refactored out of DeleteHandleI for reuse by DeleteI etc.)
    Since:
    4.4.0
    See Also:
    IDelete
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Deletion.Builder
      Inner class which can be used to generate a Deletion.
    • Constructor Summary

      Constructors 
      Constructor Description
      Deletion​(ome.io.nio.AbstractFileSystemService afs, ome.system.OmeroContext ctx)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deleteFiles​(com.google.common.collect.SetMultimap<java.lang.String,​java.lang.Long> deleteTargets)
      For each Report use the map of tables to deleted ids to remove the files under Files, Pixels and Thumbnails if the ids no longer exist in the db.
      • Methods inherited from class java.lang.Object

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

      • Deletion

        public Deletion​(ome.io.nio.AbstractFileSystemService afs,
                        ome.system.OmeroContext ctx)
    • Method Detail

      • deleteFiles

        public void deleteFiles​(com.google.common.collect.SetMultimap<java.lang.String,​java.lang.Long> deleteTargets)
        For each Report use the map of tables to deleted ids to remove the files under Files, Pixels and Thumbnails if the ids no longer exist in the db. Create a map of failed ids (not yet passed back to client).