|
||||||||||
| 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.DynamicAccessModule
public class DynamicAccessModule
Module Wrapper for DynamicAccessImpl.
The Dynamic Access module will associate dynamic disseminators with a digital object. It will look to the Fedora repository configuration file to obtain a list of dynamic disseminators. Currently, the system supports two types of dynamic disseminators: - Default (SDefPID=fedora-system:3 and SDepPID=fedora-system:4) - Bootstrap (SDefPID=fedora-system:1 and SDepPID=fedora-system:2). The Default disseminator that is associated with every object in the repository. The Default Disseminator endows the objects with a set of basic generic behaviors that enable a simplistic view of the object contents (the Item Index) and a list of all disseminations available on the object (the Dissemination Index). The Bootstrap disseminator is associated with every Service Definition and Service Deployment object. It defines methods to get the special metadata datastreams out of them, and some other methods. (NOTE: The Bootstrap Disseminator functionality is NOT YET IMPLEMENTED.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DynamicAccessModule(Map moduleParameters,
Server server,
String role)
Creates and initializes the Dynmamic 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)
Perform a dissemination for a method that belongs to a dynamic disseminator that is associate with the digital object. |
MethodDef[] |
getMethods(Context context,
String PID,
String sDefPID,
Date asOfDateTime)
Get the method defintions for a given dynamic disseminator that is associated with the digital object. |
MIMETypedStream |
getMethodsXML(Context context,
String PID,
String sDefPID,
Date asOfDateTime)
Get an XML encoding of the service defintions for a given dynamic disseminator that is associated with the 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)
Get the profile information for the digital object. |
String[] |
getServiceDefinitions(Context context,
String PID,
Date asOfDateTime)
Get a list of service definition identifiers for dynamic disseminators associated with the digital object. |
protected boolean |
isDynamicService(Context context,
String PID,
String sDefPID)
|
DatastreamDef[] |
listDatastreams(Context context,
String PID,
Date asOfDateTime)
|
ObjectMethodsDef[] |
listMethods(Context context,
String PID,
Date asOfDateTime)
Get the definitions for all dynamic disseminations on the object. |
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, initModule, 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 DynamicAccessModule(Map moduleParameters,
Server server,
String role)
throws ModuleInitializationException
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 postInitModule()
throws ModuleInitializationException
Module
postInitModule in class ModuleModuleInitializationException - If initialization values are invalid or initialization fails for
some other reason.
public String[] getServiceDefinitions(Context context,
String PID,
Date asOfDateTime)
throws ServerException
context - PID - identifier of digital object being reflected uponasOfDateTime -
ServerException
public MethodDef[] getMethods(Context context,
String PID,
String sDefPID,
Date asOfDateTime)
throws ServerException
context - PID - identifier of digital object being reflected uponsDefPID - identifier of dynamic service definitionasOfDateTime -
ServerException
public MIMETypedStream getMethodsXML(Context context,
String PID,
String sDefPID,
Date asOfDateTime)
throws ServerException
context - PID - identifier of digital object being reflected uponsDefPID - identifier of dynamic service definitionasOfDateTime -
ServerException
public MIMETypedStream getDatastreamDissemination(Context context,
String PID,
String dsID,
Date asOfDateTime)
throws ServerException
getDatastreamDissemination in interface AccessServerException
public MIMETypedStream getDissemination(Context context,
String PID,
String sDefPID,
String methodName,
Property[] userParms,
Date asOfDateTime)
throws ServerException
getDissemination in interface Accesscontext - PID - identifier of the digital object being disseminatedsDefPID - identifier of dynamic Service DefinitionmethodName - userParms - asOfDateTime -
ServerException
public ObjectMethodsDef[] listMethods(Context context,
String PID,
Date asOfDateTime)
throws ServerException
This will return the method definitions for all methods for all of the dynamic disseminators associated with the object.
listMethods in interface Accesscontext - PID - identifier of digital object being reflected uponasOfDateTime -
ServerException
public ObjectProfile getObjectProfile(Context context,
String PID,
Date asOfDateTime)
throws ServerException
getObjectProfile in interface Accesscontext - PID - identifier of digital object being reflected uponasOfDateTime -
ServerException
public FieldSearchResult findObjects(Context context,
String[] resultFields,
int maxResults,
FieldSearchQuery query)
throws ServerException
Access
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
Access
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
Access
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
Access
getObjectHistory in interface Accesscontext - The context of this request.
ServerException - If any type of error occurred fulfilling the request.
protected boolean isDynamicService(Context context,
String PID,
String sDefPID)
throws ServerException
ServerException
public DatastreamDef[] listDatastreams(Context context,
String PID,
Date asOfDateTime)
throws ServerException
listDatastreams in interface AccessServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||