org.fcrepo.server.access
Interface Access

All Known Implementing Classes:
DefaultAccess, DynamicAccessModule

public interface Access

Defines the Fedora Access subsystem interface.

Author:
Ross Wayland

Method Summary
 RepositoryInfo describeRepository(Context context)
          Gets information that describes the repository.
 FieldSearchResult findObjects(Context context, String[] resultFields, int maxResults, FieldSearchQuery query)
          Lists the specified fields of each object matching the given criteria.
 MIMETypedStream getDatastreamDissemination(Context context, String pid, String dsID, Date asOfDateTime)
           
 MIMETypedStream getDissemination(Context context, String pid, String sDefPID, String methodName, Property[] userParms, Date asOfDateTime)
          Disseminates the content produced by executing the specified method of the associated Service Deployment object of the specified digital object.
 String[] getObjectHistory(Context context, String pid)
          Gets the change history of an object by returning a list of timestamps that correspond to modification dates of components.
 ObjectProfile getObjectProfile(Context context, String pid, Date asOfDateTime)
          Gets object profile
 DatastreamDef[] listDatastreams(Context context, String pid, Date asOfDateTime)
           
 ObjectMethodsDef[] listMethods(Context context, String pid, Date asOfDateTime)
           
 FieldSearchResult resumeFindObjects(Context context, String sessionToken)
          Resumes an in-progress listing of object fields.
 

Method Detail

getDatastreamDissemination

MIMETypedStream getDatastreamDissemination(Context context,
                                           String pid,
                                           String dsID,
                                           Date asOfDateTime)
                                           throws ServerException
Throws:
ServerException

getDissemination

MIMETypedStream getDissemination(Context context,
                                 String pid,
                                 String sDefPID,
                                 String methodName,
                                 Property[] userParms,
                                 Date asOfDateTime)
                                 throws ServerException
Disseminates the content produced by executing the specified method of the associated Service Deployment object of the specified digital object.

Parameters:
context - The context of this request.
PID - The persistent identifier of the digital object.
sDefPID - The persistent identifier of the Service Definition object.
methodName - The name of the method to be executed.
userParms - An array of user-supplied method parameters consisting of name/value pairs.
asOfDateTime - The versioning datetime stamp.
Returns:
A MIME-typed stream containing the result of the dissemination.
Throws:
ServerException - If any type of error occurred fulfilling the request.

getObjectProfile

ObjectProfile getObjectProfile(Context context,
                               String pid,
                               Date asOfDateTime)
                               throws ServerException
Gets object profile

Parameters:
context - The context of this request.
PID - The persistent identifier of the digital object
asOfDateTime - The versioning datetime stamp
Returns:
An array of all methods associated with the specified digital object.
Throws:
ServerException - If any type of error occurred fulfilling the request.

listMethods

ObjectMethodsDef[] listMethods(Context context,
                               String pid,
                               Date asOfDateTime)
                               throws ServerException
Throws:
ServerException

listDatastreams

DatastreamDef[] listDatastreams(Context context,
                                String pid,
                                Date asOfDateTime)
                                throws ServerException
Throws:
ServerException

findObjects

FieldSearchResult findObjects(Context context,
                              String[] resultFields,
                              int maxResults,
                              FieldSearchQuery query)
                              throws ServerException
Lists the specified fields of each object matching the given criteria.

Parameters:
context - the context of this request
resultFields - the names of the fields to return
maxResults - the maximum number of results to return at a time
query - the query
Returns:
the specified fields of each object matching the given criteria.
Throws:
ServerException - If any type of error occurred fulfilling the request.

resumeFindObjects

FieldSearchResult resumeFindObjects(Context context,
                                    String sessionToken)
                                    throws ServerException
Resumes an in-progress listing of object fields.

Parameters:
context - the context of this request
sessionToken - the token of the session in which the remaining results can be obtained
Returns:
the remaining specified fields of each object matching the given criteria.
Throws:
ServerException - If any type of error occurred fulfilling the request.

describeRepository

RepositoryInfo describeRepository(Context context)
                                  throws ServerException
Gets information that describes the repository.

Parameters:
context - the context of this request
Returns:
information that describes the repository.
Throws:
ServerException - If any type of error occurred fulfilling the request.

getObjectHistory

String[] getObjectHistory(Context context,
                          String pid)
                          throws ServerException
Gets the change history of an object by returning a list of timestamps that correspond to modification dates of components. This currently includes changes to datastreams and disseminators.

Parameters:
context - The context of this request.
PID - The persistent identifier of the digitla object.
Returns:
An Array containing the list of timestamps indicating when changes were made to the object.
Throws:
ServerException - If any type of error occurred fulfilling the request.


Copyright © 2011 DuraSpace. All Rights Reserved.