Package org.fcrepo.migration.foxml
Class AkubraFSIDResolver
- java.lang.Object
-
- org.fcrepo.migration.foxml.DirectoryScanningIDResolver
-
- org.fcrepo.migration.foxml.AkubraFSIDResolver
-
- All Implemented Interfaces:
InternalIDResolver
public class AkubraFSIDResolver extends DirectoryScanningIDResolver
An extension of DirectoryScanningIDResolver for datastream directories of fedora repositories using the akubra-fs storage implementation.- Author:
- mdurbin
-
-
Constructor Summary
Constructors Constructor Description AkubraFSIDResolver(File dsRoot)Basic constructor.AkubraFSIDResolver(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
-
AkubraFSIDResolver
public AkubraFSIDResolver(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
-
AkubraFSIDResolver
public AkubraFSIDResolver(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
-
-