|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.Parameterized
org.fcrepo.server.Pluggable
org.fcrepo.server.Module
org.fcrepo.server.access.DefaultAccess
public class DefaultAccess
The Access Module, providing support for the Fedora Access subsystem.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DefaultAccess(Map<String,String> moduleParameters,
Server server,
String role)
Creates and initializes the Access Module. |
|
| 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 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 |
void |
initModule()
Initializes the module. |
DatastreamDef[] |
listDatastreams(Context context,
String PID,
Date asOfDateTime)
|
ObjectMethodsDef[] |
listMethods(Context context,
String PID,
Date asOfDateTime)
|
void |
postInitModule()
Second stage of Module initialization. |
FieldSearchResult |
resumeFindObjects(Context context,
String sessionToken)
Resumes an in-progress listing of object fields. |
| Methods inherited from class org.fcrepo.server.Module |
|---|
getRole, getServer, shutdownModule |
| Methods inherited from class org.fcrepo.server.Pluggable |
|---|
getHelp, getOptionalParameters, getParameterHelp, getRequiredModuleRoles, getRequiredParameters |
| Methods inherited from class org.fcrepo.server.Parameterized |
|---|
getParameter, getParameter, getParameter, getParameterList, getParameters, getParameters, parameterNames, setParameter, setParameters, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAccess(Map<String,String> moduleParameters,
Server server,
String role)
throws ModuleInitializationException
Creates and initializes the Access Module. When the server is starting up, this is invoked as part of the initialization process.
moduleParameters - A pre-loaded Map of name-value pairs comprising the intended
configuration of this Module.server - The Server instance.role - The role this module fulfills, a java class name.
ModuleInitializationException - If initilization values are invalid or initialization fails for
some other reason.| Method Detail |
|---|
public void initModule()
throws ModuleInitializationException
Initializes the module.
initModule in class ModuleModuleInitializationException - If the module cannot be initialized.
public void postInitModule()
throws ModuleInitializationException
Module
postInitModule in class ModuleModuleInitializationException - If initialization values are invalid or initialization fails for
some other reason.
public 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 deployment object of the specified digital object.
getDissemination in interface Accesscontext - 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.
ServerException - If any type of error occurred fulfilling the request.
public ObjectMethodsDef[] listMethods(Context context,
String PID,
Date asOfDateTime)
throws ServerException
listMethods in interface AccessServerException
public DatastreamDef[] listDatastreams(Context context,
String PID,
Date asOfDateTime)
throws ServerException
listDatastreams in interface AccessServerException
public ObjectProfile getObjectProfile(Context context,
String PID,
Date asOfDateTime)
throws ServerException
Access
getObjectProfile in interface Accesscontext - The context of this request.asOfDateTime - The versioning datetime stamp
ServerException - If any type of error occurred fulfilling the request.
public FieldSearchResult findObjects(Context context,
String[] resultFields,
int maxResults,
FieldSearchQuery query)
throws ServerException
Lists the specified fields of each object matching the given criteria.
findObjects in interface Accesscontext - the context of this requestresultFields - the names of the fields to returnmaxResults - the maximum number of results to return at a timequery - the query
ServerException - If any type of error occurred fulfilling the request.
public FieldSearchResult resumeFindObjects(Context context,
String sessionToken)
throws ServerException
Resumes an in-progress listing of object fields.
resumeFindObjects in interface Accesscontext - the context of this requestsessionToken - the token of the session in which the remaining results can be
obtained
ServerException - If any type of error occurred fulfilling the request.
public RepositoryInfo describeRepository(Context context)
throws ServerException
Gets information that describes the repository.
describeRepository in interface Accesscontext - the context of this request
ServerException - If any type of error occurred fulfilling the request.
public 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.
getObjectHistory in interface Accesscontext - The context of this request.PID - The persistent identifier of the digitla object.
ServerException - If any type of error occurred fulfilling the request.
public MIMETypedStream getDatastreamDissemination(Context context,
String PID,
String dsID,
Date asOfDateTime)
throws ServerException
getDatastreamDissemination in interface AccessServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||