Class DirectoryScanningIDResolver

  • All Implemented Interfaces:
    InternalIDResolver
    Direct Known Subclasses:
    AkubraFSIDResolver, LegacyFSIDResolver

    public abstract class DirectoryScanningIDResolver
    extends Object
    implements InternalIDResolver
    An InternalIDResolver implementation that generates an index of datastream ids (filenames) to file paths for the contents of a datastream directory. The directory is expected to contain just other directories and/or FOXML files. The FOXML files are expected to have a filename that is reversibly mapped from a fedora internal id for that datastream version.
    Author:
    mdurbin
    • Constructor Detail

      • DirectoryScanningIDResolver

        public DirectoryScanningIDResolver​(File cachedIndexDir,
                                           File dsRoot)
                                    throws IOException
        directory scanning ID resolver
        Parameters:
        cachedIndexDir - the index directory. If it exists, the old cache will be used, if it doesn't a new cache will be built at that location. If it is null, a new cache will be built in the temp file space that will be deleted upon application shutdown.
        dsRoot - the datastream root
        Throws:
        IOException - IO exception creating temp and index files/directories