|
||||||||||
| 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.DefaultAccess
public class DefaultAccess
Title: DefaultAccess.java
Description: The Access Module, providing support for the Fedora Access subsystem.
| 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 | |
|---|---|
DefaultAccess(java.util.Map moduleParameters,
Server server,
java.lang.String role)
Creates and initializes the 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. |
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)
Disseminates the content produced by executing the specified method of the associated Behavior Mechanism object of the specified 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)
Gets object profile |
void |
initModule()
Initializes the module. |
DatastreamDef[] |
listDatastreams(Context context,
java.lang.String PID,
java.util.Date asOfDateTime)
|
ObjectMethodsDef[] |
listMethods(Context context,
java.lang.String PID,
java.util.Date asOfDateTime)
Gets a list of all Behavior Definition object PIDs and method names associated with the specified digital 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, 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 DefaultAccess(java.util.Map moduleParameters,
Server server,
java.lang.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,
java.lang.String PID,
java.lang.String bDefPID,
java.lang.String methodName,
Property[] userParms,
java.util.Date asOfDateTime)
throws ServerException
Disseminates the content produced by executing the specified method of the associated Behavior Mechanism object of the specified digital object.
getDissemination in interface Accesscontext - The context of this request.PID - The persistent identifier of the digital object.bDefPID - The persistent identifier of the Behavior 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,
java.lang.String PID,
java.util.Date asOfDateTime)
throws ServerException
AccessGets a list of all Behavior Definition object PIDs and method names associated with the specified digital object.
listMethods in interface Accesscontext - The context of this request.PID - The persistent identifier of the digital objectasOfDateTime - The versioning datetime stamp
ServerException - If any type of error occurred fulfilling the
request.
public DatastreamDef[] listDatastreams(Context context,
java.lang.String PID,
java.util.Date asOfDateTime)
throws ServerException
listDatastreams in interface AccessServerException
public ObjectProfile getObjectProfile(Context context,
java.lang.String PID,
java.util.Date asOfDateTime)
throws ServerException
AccessGets object profile
getObjectProfile in interface Accesscontext - The context of this request.PID - The persistent identifier of the digital objectasOfDateTime - The versioning datetime stamp
ServerException - If any type of error occurred fulfilling the
request.
public FieldSearchResult findObjects(Context context,
java.lang.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,
java.lang.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 java.lang.String[] getObjectHistory(Context context,
java.lang.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,
java.lang.String PID,
java.lang.String dsID,
java.util.Date asOfDateTime)
throws ServerException
getDatastreamDissemination in interface AccessServerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||