fedora.server.storage
Interface RepositoryReader

All Known Subinterfaces:
DOManager
All Known Implementing Classes:
DefaultDOManager, DirectoryBasedRepositoryReader, GSearchDOManager, RebuildDOManager

public interface RepositoryReader

Title: RepositoryReader.java

Description: Provides context-appropriate digital object readers and the ability to list all objects (accessible in the given context) within the repository.

Version:
$Id: RepositoryReader.java 3996 2005-04-25 19:30:57Z wdn5e $
Author:
cwilper@cs.cornell.edu

Method Summary
 BDefReader getBDefReader(boolean cachedObjectRequired, Context context, java.lang.String pid)
           
 BMechReader getBMechReader(boolean cachedObjectRequired, Context context, java.lang.String pid)
           
 DOReader getReader(boolean cachedObjectRequired, Context context, java.lang.String pid)
          Gets a digital object reader.
 java.lang.String[] listObjectPIDs(Context context)
          Gets a list of PIDs (accessible in the given context) of all objects in the repository.
 

Method Detail

getReader

DOReader getReader(boolean cachedObjectRequired,
                   Context context,
                   java.lang.String pid)
                   throws ServerException
Gets a digital object reader.

Parameters:
context - The context of this request.
pid - The PID of the object.
Returns:
A reader.
Throws:
ServerException - If anything went wrong.

getBMechReader

BMechReader getBMechReader(boolean cachedObjectRequired,
                           Context context,
                           java.lang.String pid)
                           throws ServerException
Throws:
ServerException

getBDefReader

BDefReader getBDefReader(boolean cachedObjectRequired,
                         Context context,
                         java.lang.String pid)
                         throws ServerException
Throws:
ServerException

listObjectPIDs

java.lang.String[] listObjectPIDs(Context context)
                                  throws ServerException
Gets a list of PIDs (accessible in the given context) of all objects in the repository.

Throws:
ServerException