Class Fedora.Storage.DigitalObjectIDResolver
All Packages Class Hierarchy This Package Previous Next Index
Class Fedora.Storage.DigitalObjectIDResolver
Object
|
+----Fedora.Storage.DigitalObjectIDResolver
- public class DigitalObjectIDResolver
- extends Object
-
Fedora.Storage.DigitalObjectIDResolver()
- Constructor
-
GetLocation(String)
- Return a String that is the fully qualified file path
of the file identified by the DigitalObject key.
-
ListLocalDOIDs()
- list all digital objects in the digital object resolver table.
-
NumberOfLocalDOs()
- returns the number of digital objects stored locally.
-
RegisterLocalDOID(String, String)
- Register a local digital object in the local digital object resolver table.
-
UnregisterLocalDOID(String)
- Unregister a local digital object from the digital object resolver table.
-
Verify(String)
- method to determine whether an particular digital object
exists in the digital object resolver table.
DigitalObjectIDResolver
public DigitalObjectIDResolver() throws RepositorySystemError
- Constructor
GetLocation
public java.lang.String GetLocation(String DOID)
- Return a String that is the fully qualified file path
of the file identified by the DigitalObject key.
- Parameters:
- DOID - unique id of file for the serialized DigitalObject
- Returns:
- the String of the file path.
ListLocalDOIDs
public java.lang.String[] ListLocalDOIDs()
- list all digital objects in the digital object resolver table.
- Returns:
- an array of Strings, each of which is a DOID in the
digital object resolver table. If the table is empty,
return null.
NumberOfLocalDOs
public int NumberOfLocalDOs()
- returns the number of digital objects stored locally.
- Returns:
- an int equal to the number of digital objects in
the digital object resolver table
RegisterLocalDOID
public boolean RegisterLocalDOID(String DOID,
String location) throws RepositorySystemError
- Register a local digital object in the local digital object resolver table.
- Parameters:
- DOID - unique id of digital object file the for the serialized component
- location - the string of the local file path for this digital object
- Returns:
- true if it registered the local digital object, false otherwise
UnregisterLocalDOID
public boolean UnregisterLocalDOID(String DOID) throws RepositorySystemError
- Unregister a local digital object from the digital object resolver table.
- Parameters:
- DOID - unique id of the local digital object
- Returns:
- true if component is no longer registered, false otherwise
Verify
public int Verify(String DOID)
- method to determine whether an particular digital object
exists in the digital object resolver table.
- Parameters:
- DOID - unique id for the DigitalObject
- Returns:
- 1 if DOID is in table, 0 otherwise
NOTE that this isn't boolean because IDL level idea
is that there may be more than two return values
(e.g. local, non-local, non-existent ...)
All Packages Class Hierarchy This Package Previous Next Index