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

Constructor Index

 o Fedora.Storage.DigitalObjectIDResolver()
Constructor

Method Index

 o GetLocation(String)
Return a String that is the fully qualified file path of the file identified by the DigitalObject key.
 o ListLocalDOIDs()
list all digital objects in the digital object resolver table.
 o NumberOfLocalDOs()
returns the number of digital objects stored locally.
 o RegisterLocalDOID(String, String)
Register a local digital object in the local digital object resolver table.
 o UnregisterLocalDOID(String)
Unregister a local digital object from the digital object resolver table.
 o Verify(String)
method to determine whether an particular digital object exists in the digital object resolver table.

Constructors

 o DigitalObjectIDResolver
public DigitalObjectIDResolver() throws RepositorySystemError
Constructor

Methods

 o 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.
 o 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.
 o 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
 o 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
 o 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
 o 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