Class ManagedReaderSecurityCheck

  • All Implemented Interfaces:
    ome.io.nio.ReaderSecurityCheck

    public class ManagedReaderSecurityCheck
    extends java.lang.Object
    implements ome.io.nio.ReaderSecurityCheck
    Provide OMERO permissions checking for Bio-Formats readers applied to managed repository filesets. Cf. 2019-SV1.
    Since:
    5.5.6
    • Constructor Summary

      Constructors 
      Constructor Description
      ManagedReaderSecurityCheck​(ome.api.IQuery iQuery, java.util.Set<java.lang.String> managedRepoUuids)
      Construct a new thread-safe used-file security checker.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void assertUsedFilesReadable​(loci.formats.IFormatReader reader)  
      • Methods inherited from class java.lang.Object

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

      • ManagedReaderSecurityCheck

        public ManagedReaderSecurityCheck​(ome.api.IQuery iQuery,
                                          java.util.Set<java.lang.String> managedRepoUuids)
        Construct a new thread-safe used-file security checker.
        Parameters:
        iQuery - a query service for checking repository roots and image file accessibility
        managedRepoUuids - the UUIDs of the managed repositories; will not be taken as final
    • Method Detail

      • assertUsedFilesReadable

        public void assertUsedFilesReadable​(loci.formats.IFormatReader reader)
                                     throws ome.conditions.SecurityViolation
        Specified by:
        assertUsedFilesReadable in interface ome.io.nio.ReaderSecurityCheck
        Throws:
        ome.conditions.SecurityViolation