|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.server.Parameterized
fedora.server.Pluggable
fedora.server.Module
fedora.server.access.DynamicAccessModule
public class DynamicAccessModule
Title: DynamicAccessModule.java
Description: Module Wrapper for DynamicAccessImpl.java. The Dynamic Access module will associate dynamic disseminators with the 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 (BDefPID=fedora-system:3 and BMechPID=fedora-system:4) - Bootstrap (BDefPID=fedora-system:1 and BMechPID=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 behavior definition and behavior mechanism 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 fedora.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary |
|---|
| Fields inherited from interface fedora.common.Constants |
|---|
ACTION, BDEF, BMECH, DATASTREAM, DC, DISSEMINATOR, ENVIRONMENT, FEDORA, FEDORA_HOME, FEDORA_SYSTEM_DEF_PID, FEDORA_SYSTEM_DEF_URI, HTTP_REQUEST, MODEL, OBJECT, RDF, RECOVERY, RELS_EXT, RESOURCE, SUBJECT, TUCANA, VIEW, XSD |
| Constructor Summary | |
|---|---|
DynamicAccessModule(java.util.Map moduleParameters,
Server server,
java.lang.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,
java.lang.String[] resultFields,
int maxResults,
FieldSearchQuery query)
Lists the specified fields of each object matching the given criteria. |
java.lang.String[] |
getBehaviorDefinitions(Context context,
java.lang.String PID,
java.util.Date asOfDateTime)
Get a list of behavior definition identifiers for dynamic disseminators associated with the digital object. |
MethodDef[] |
getBehaviorMethods(Context context,
java.lang.String PID,
java.lang.String bDefPID,
java.util.Date asOfDateTime)
Get the behavior method defintions for a given dynamic disseminator that is associated with the digital object. |
MIMETypedStream |
getBehaviorMethodsXML(Context context,
java.lang.String PID,
java.lang.String bDefPID,
java.util.Date asOfDateTime)
Get an XML encoding of the behavior defintions for a given dynamic disseminator that is associated with the digital object. |
MIMETypedStream |
getDatastreamDissemination(Context context,
java.lang.String PID,
java.lang.String dsID,
java.util.Date asOfDateTime)
|
MIMETypedStream |
getDissemination(Context context,
java.lang.String PID,
java.lang.String bDefPID,
java.lang.String methodName,
Property[] userParms,
java.util.Date asOfDateTime)
Perform a dissemination for a behavior method that belongs to a dynamic disseminator that is associate with the digital object. |
java.lang.String[] |
getObjectHistory(Context context,
java.lang.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,
java.lang.String PID,
java.util.Date asOfDateTime)
Get the profile information for the digital object. |
protected boolean |
isDynamicBehaviorDefinition(Context context,
java.lang.String PID,
java.lang.String bDefPID)
|
DatastreamDef[] |
listDatastreams(Context context,
java.lang.String PID,
java.util.Date asOfDateTime)
|
ObjectMethodsDef[] |
listMethods(Context context,
java.lang.String PID,
java.util.Date asOfDateTime)
Get the definitions for all dynamic disseminations on the object. |
void |
postInitModule()
Second stage of Module initialization. |
FieldSearchResult |
resumeFindObjects(Context context,
java.lang.String sessionToken)
Resumes an in-progress listing of object fields. |
| Methods inherited from class fedora.server.Module |
|---|
getRole, getServer, initModule, shutdownModule |
| Methods inherited from class fedora.server.Pluggable |
|---|
getHelp, getOptionalParameters, getParameterHelp, getRequiredModuleRoles, getRequiredParameters |
| Methods inherited from class fedora.server.Parameterized |
|---|
getParameter, getParameter, getParameters, parameterNames, setParameter, setParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicAccessModule(java.util.Map moduleParameters,
Server server,
java.lang.String role)
throws ModuleInitializationException
Creates and initializes the Dynmamic 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 postInitModule()
throws ModuleInitializationException
Module
postInitModule in class ModuleModuleInitializationException - If initialization values are
invalid or initialization fails for some other reason.
public java.lang.String[] getBehaviorDefinitions(Context context,
java.lang.String PID,
java.util.Date asOfDateTime)
throws ServerException
context - PID - identifier of digital object being reflected uponasOfDateTime -
ServerException
public MethodDef[] getBehaviorMethods(Context context,
java.lang.String PID,
java.lang.String bDefPID,
java.util.Date asOfDateTime)
throws ServerException
context - PID - identifier of digital object being reflected uponbDefPID - identifier of dynamic behavior definitionasOfDateTime -
ServerException
public MIMETypedStream getBehaviorMethodsXML(Context context,
java.lang.String PID,
java.lang.String bDefPID,
java.util.Date asOfDateTime)
throws ServerException
context - PID - identifier of digital object being reflected uponbDefPID - identifier of dynamic behavior definitionasOfDateTime -
ServerException
public MIMETypedStream getDatastreamDissemination(Context context,
java.lang.String PID,
java.lang.String dsID,
java.util.Date asOfDateTime)
throws ServerException
getDatastreamDissemination in interface AccessServerException
public MIMETypedStream getDissemination(Context context,
java.lang.String PID,
java.lang.String bDefPID,
java.lang.String methodName,
Property[] userParms,
java.util.Date asOfDateTime)
throws ServerException
getDissemination in interface Accesscontext - PID - identifier of the digital object being disseminatedbDefPID - identifier of dynamic behavior definitionmethodName - userParms - asOfDateTime -
ServerException
public ObjectMethodsDef[] listMethods(Context context,
java.lang.String PID,
java.util.Date asOfDateTime)
throws ServerException
listMethods in interface Accesscontext - PID - identifier of digital object being reflected uponasOfDateTime -
ServerException
public ObjectProfile getObjectProfile(Context context,
java.lang.String PID,
java.util.Date asOfDateTime)
throws ServerException
getObjectProfile in interface Accesscontext - PID - identifier of digital object being reflected uponasOfDateTime -
ServerException
public FieldSearchResult findObjects(Context context,
java.lang.String[] resultFields,
int maxResults,
FieldSearchQuery query)
throws ServerException
AccessLists 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,
java.lang.String sessionToken)
throws ServerException
AccessResumes 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
AccessGets 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 java.lang.String[] getObjectHistory(Context context,
java.lang.String PID)
throws ServerException
AccessGets 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.
protected boolean isDynamicBehaviorDefinition(Context context,
java.lang.String PID,
java.lang.String bDefPID)
throws ServerException
ServerException
public DatastreamDef[] listDatastreams(Context context,
java.lang.String PID,
java.util.Date asOfDateTime)
throws ServerException
listDatastreams in interface AccessServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||