Package org.fcrepo.migration.foxml
Class LegacyFSIDResolver
- java.lang.Object
-
- org.fcrepo.migration.foxml.DirectoryScanningIDResolver
-
- org.fcrepo.migration.foxml.LegacyFSIDResolver
-
- All Implemented Interfaces:
InternalIDResolver
public class LegacyFSIDResolver extends DirectoryScanningIDResolver
An extension of DirectoryScanningIDResolver for datastream directories of fedora repositories using the legacy-fs storage implementation.- Author:
- mdurbin
-
-
Constructor Summary
Constructors Constructor Description LegacyFSIDResolver(File dsRoot)Basic constructor.LegacyFSIDResolver(File indexDir, File dsRoot)Basic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetInternalIdForFile(File f)Determines the internal id for the given file.-
Methods inherited from class org.fcrepo.migration.foxml.DirectoryScanningIDResolver
resolveInternalID
-
-
-
-
Constructor Detail
-
LegacyFSIDResolver
public LegacyFSIDResolver(File indexDir, File dsRoot) throws IOException
Basic constructor.- Parameters:
indexDir- A directory that will serve as a lucene index directory to cache ID resolution.dsRoot- the root directory of the AkubraFS datastream store.- Throws:
IOException- IO exception creating temp and index files/directories
-
LegacyFSIDResolver
public LegacyFSIDResolver(File dsRoot) throws IOException
Basic constructor.- Parameters:
dsRoot- the root directory of the AkubraFS datastream store.- Throws:
IOException- IO exception creating temp and index files/directories
-
-
Method Detail
-
getInternalIdForFile
protected String getInternalIdForFile(File f)
Description copied from class:DirectoryScanningIDResolverDetermines the internal id for the given file.- Specified by:
getInternalIdForFilein classDirectoryScanningIDResolver- Parameters:
f- file to check for- Returns:
- string containing internal id for the file
-
-