org.fcrepo.server.storage
Interface RepositoryReader

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

public interface RepositoryReader

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

Author:
Chris Wilper

Method Summary
 DOReader getReader(boolean cachedObjectRequired, Context context, String pid)
          Gets a digital object reader.
 ServiceDefinitionReader getServiceDefinitionReader(boolean cachedObjectRequired, Context context, String pid)
           
 ServiceDeploymentReader getServiceDeploymentReader(boolean cachedObjectRequired, Context context, String pid)
           
 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,
                   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.

getServiceDeploymentReader

ServiceDeploymentReader getServiceDeploymentReader(boolean cachedObjectRequired,
                                                   Context context,
                                                   String pid)
                                                   throws ServerException
Throws:
ServerException

getServiceDefinitionReader

ServiceDefinitionReader getServiceDefinitionReader(boolean cachedObjectRequired,
                                                   Context context,
                                                   String pid)
                                                   throws ServerException
Throws:
ServerException

listObjectPIDs

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

Throws:
ServerException


Copyright © 2011 DuraSpace. All Rights Reserved.