public class DynamicAccessImpl extends Object
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.
| Constructor and Description |
|---|
DynamicAccessImpl(Access m_access,
File reposHomeDir,
Hashtable dynamicSDefToDep) |
| Modifier and Type | Method and Description |
|---|---|
RepositoryInfo |
describeRepository(Context context) |
FieldSearchResult |
findObjects(Context context,
String[] resultFields,
int maxResults,
FieldSearchQuery query) |
MIMETypedStream |
getDatastreamDissemination(Context context,
String PID,
String dsID,
Date asOfDateTime) |
MIMETypedStream |
getDissemination(Context context,
String PID,
String sDefPID,
String methodName,
Property[] userParms,
Date asOfDateTime,
DOReader reader)
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) |
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.
|
boolean |
isDynamicDeployment(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.
|
FieldSearchResult |
resumeFindObjects(Context context,
String sessionToken) |
public String[] getServiceDefinitions(Context context, String PID, Date asOfDateTime) throws ServerException
context - PID - identifier of digital object being reflected uponasOfDateTime - ServerExceptionpublic 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 - ServerExceptionpublic 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 - ServerExceptionpublic MIMETypedStream getDissemination(Context context, String PID, String sDefPID, String methodName, Property[] userParms, Date asOfDateTime, DOReader reader) throws ServerException
context - PID - identifier of the digital object being disseminatedsDefPID - identifier of dynamic Service DefinitionmethodName - userParms - asOfDateTime - ServerExceptionpublic ObjectMethodsDef[] listMethods(Context context, String PID, Date asOfDateTime) throws ServerException
context - PID - identifier of digital object being reflected uponasOfDateTime - ServerExceptionpublic ObjectProfile getObjectProfile(Context context, String PID, Date asOfDateTime) throws ServerException
context - PID - identifier of digital object being reflected uponasOfDateTime - ServerExceptionpublic FieldSearchResult findObjects(Context context, String[] resultFields, int maxResults, FieldSearchQuery query) throws ServerException
ServerExceptionpublic FieldSearchResult resumeFindObjects(Context context, String sessionToken) throws ServerException
ServerExceptionpublic RepositoryInfo describeRepository(Context context) throws ServerException
ServerExceptionpublic String[] getObjectHistory(Context context, String PID) throws ServerException
ServerExceptionpublic boolean isDynamicDeployment(Context context, String PID, String sDefPID) throws ServerException
ServerExceptionpublic MIMETypedStream getDatastreamDissemination(Context context, String PID, String dsID, Date asOfDateTime) throws ServerException
ServerExceptionpublic DatastreamDef[] listDatastreams(Context context, String PID, Date asOfDateTime) throws ServerException
ServerExceptionCopyright © 2013 DuraSpace. All Rights Reserved.