Package org.fcrepo.migration
Interface MigrationIDMapper
-
public interface MigrationIDMapper
An interface whose implementations represent methods to convert Fedora 3 PIDs into fedora 4 paths. At one point it was thought that this should be more sophisticated to support more advanced mapping (ie, passing more information about the object, but in order to use this to resolve the "fedora:info/pid" URI's within fedora's RELS-EXT we only have the pid. Therefore implementations that need to do something more sophisticated, should build a mapping using whatever tooling it needs (and has available) such that it can return the result with just the PID.- Author:
- mdurbin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetBaseURL()StringmapDatastreamPath(String pid, String dsid)Takes a Fedora 3 PID and DSID and returns the path that datastream would have in Fedora 4.StringmapObjectPath(String pid)Takes a Fedora 3 pid and returns the path that object would have in Fedora 4.
-
-
-
Method Detail
-
mapObjectPath
String mapObjectPath(String pid)
Takes a Fedora 3 pid and returns the path that object would have in Fedora 4.- Parameters:
pid- a PID for a Fedora 3 object.- Returns:
- a path suitable for use in Fedora 4.
-
mapDatastreamPath
String mapDatastreamPath(String pid, String dsid)
Takes a Fedora 3 PID and DSID and returns the path that datastream would have in Fedora 4.- Parameters:
pid- a PID for the Fedora 3 objectdsid- the DS id for the Fedora 3 datastream- Returns:
- a path suitable for use in Fedora 4.
-
getBaseURL
String getBaseURL()
- Returns:
- the fedora 4 base URL. Paths returned by
mapDatastreamPath(java.lang.String, java.lang.String)andmapObjectPath(java.lang.String)appended to this value will be resolvable URLs in the fedora 4 repository.
-
-