|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DigitalLibraryServicesAPIA
Interface that defines the digital library methods that need to be provided by a digital library that's going to be incorporated into the Greenstone Java-Client, so that the client may be able to use/access its functionality. Note that the Strings returned by all defined methods -- with the exception of getLanguage() -- represent Greenstone3 XML response messages, as defined in the Greenstone3 manual. These methods do not throw exceptions, but rather embed any error information in the XML Strings returned, as is done in Greenstone3 XML response messages. The final 'A' of DigitalLibraryServicesAPIA stands for Access, as the methods defined here are to give access to a digital library's repository.
Nested Class Summary | |
---|---|
static class |
DigitalLibraryServicesAPIA.CancelException
If there's a dialog, then the CancelException can be used to indicate that the user cancelled out of it rather than having seen it through. |
Field Summary | |
---|---|
static java.io.File |
propertiesFile
The properties file containing the initial digital library connection settings which get displayed in the connection dialog fields |
Method Summary | |
---|---|
java.lang.String |
describe()
|
java.lang.String |
describeCollection(java.lang.String collection)
|
java.lang.String |
describeCollectionService(java.lang.String collection,
java.lang.String service)
|
java.lang.String |
describeService(java.lang.String service)
|
java.lang.String |
getAssocFileBaseURL()
|
java.lang.String |
getAssocFileBaseURL(DocumentNodeData docNode)
|
java.lang.String |
getDisplayName()
|
java.lang.String |
getLanguage()
Gets the language that's set as the preferred language. |
java.lang.String |
query(java.lang.String collection,
java.lang.String service,
java.util.Map nameValParamsMap)
|
java.lang.String |
retrieveBrowseMetadata(java.lang.String collection,
java.lang.String service,
java.lang.String[] nodeIDs)
|
java.lang.String |
retrieveBrowseStructure(java.lang.String collection,
java.lang.String service,
java.lang.String classifierID)
|
java.lang.String |
retrieveDocumentChildren(java.lang.String collection,
java.lang.String docID)
|
java.lang.String |
retrieveDocumentChildren(java.lang.String collection,
java.lang.String[] docIDs)
|
java.lang.String |
retrieveDocumentContent(java.lang.String collection,
java.lang.String docID)
|
java.lang.String |
retrieveDocumentContent(java.lang.String collection,
java.lang.String[] docIDs)
|
java.lang.String |
retrieveDocumentMetadata(java.lang.String collection,
java.lang.String docID)
|
java.lang.String |
retrieveDocumentMetadata(java.lang.String collection,
java.lang.String[] docIDs)
|
java.lang.String |
retrieveDocumentStructure(java.lang.String collection,
java.lang.String docID)
|
java.lang.String |
retrieveDocumentStructure(java.lang.String collection,
java.lang.String[] docIDs)
|
java.lang.String |
retrieveTitleMetadata(java.lang.String collection,
java.lang.String docID)
|
java.lang.String |
retrieveTitleMetadata(java.lang.String collection,
java.lang.String[] docIDs)
|
void |
setLanguage(java.lang.String language)
Sets the preferred language (code) for metadata and other content to be returned on request messages. |
Field Detail |
---|
static final java.io.File propertiesFile
Method Detail |
---|
java.lang.String getDisplayName()
java.lang.String getAssocFileBaseURL()
java.lang.String getAssocFileBaseURL(DocumentNodeData docNode)
void setLanguage(java.lang.String language)
language
- has to be a language code as recognised by Greenstone3
(the language codes used by W3C probably). E.g. "en" for English.java.lang.String getLanguage()
java.lang.String describe()
java.lang.String describeCollection(java.lang.String collection)
collection
- is the name of the collection to be described
java.lang.String describeCollectionService(java.lang.String collection, java.lang.String service)
collection
- is the name of the collection to be describedservice
- is the name of the collection's service to be described
java.lang.String describeService(java.lang.String service)
service
- is the name of the collection's service to be described
java.lang.String retrieveDocumentMetadata(java.lang.String collection, java.lang.String[] docIDs)
collection
- is the name of the collectiondocIDs
- is an array of document identifiers of documents whose
metadata is requested
java.lang.String retrieveDocumentMetadata(java.lang.String collection, java.lang.String docID)
collection
- is the name of the collectiondocID
- is the document identifier of the document whose metadata is
requested
java.lang.String retrieveTitleMetadata(java.lang.String collection, java.lang.String[] docIDs)
collection
- is the name of the collectiondocIDs
- is an array of document identifiers of documents whose titles
are requested
java.lang.String retrieveTitleMetadata(java.lang.String collection, java.lang.String docID)
collection
- is the name of the collectiondocID
- is the document identifier of the document whose titles is
requested
java.lang.String retrieveDocumentContent(java.lang.String collection, java.lang.String[] docIDs)
collection
- is the name of the collectiondocIDs
- is an array of document identifiers of documents whose (text)
contents are requested
java.lang.String retrieveDocumentContent(java.lang.String collection, java.lang.String docID)
collection
- is the name of the collectiondocID
- is the document identifier of the document whose (text)
content is requested
java.lang.String retrieveDocumentStructure(java.lang.String collection, java.lang.String[] docIDs)
collection
- is the name of the collectiondocIDs
- is an array of document identifiers of documents whose
hierarchical structures are requested
java.lang.String retrieveDocumentStructure(java.lang.String collection, java.lang.String docID)
collection
- is the name of the collectiondocID
- is the document identifier of the document whose hierarchical
structure is requested
java.lang.String retrieveDocumentChildren(java.lang.String collection, java.lang.String[] docIDs)
collection
- is the name of the collectiondocIDs
- is an array of document identifiers of documents whose
hierarchical structures are requested
java.lang.String retrieveDocumentChildren(java.lang.String collection, java.lang.String docID)
collection
- is the name of the collectiondocID
- is an document identifier of the document whose hierarchical
structure is requested
java.lang.String retrieveBrowseStructure(java.lang.String collection, java.lang.String service, java.lang.String classifierID)
classifierID
- is of the form CL# where the number (#) marks
out structured sections like CL1.1.3 or CL2collection
- is the name of the collectionservice
- is the name of the browse service (=ClassifierBrowse usually)
java.lang.String retrieveBrowseMetadata(java.lang.String collection, java.lang.String service, java.lang.String[] nodeIDs)
nodeIDs
- is of the form CL#.# where the number (#) marks
out structured sections like CL2.1.3. NodeIDs are generally subsections
of top-level classifierNodes (CL#, e.g. CL3).collection
- is the name of the collectionservice
- is the name of the Browse's MetadataRetrieve service
(usually the browse service is ClassifierBrowse, in which case it always
has a retrieve service called ClassifierBrowseMetadataRetrieve)
java.lang.String query(java.lang.String collection, java.lang.String service, java.util.Map nameValParamsMap)
nameValParamsMap
- is a Map of name and value pairs for all the
query field data values. The names match the field names that
describeCollectionService() would have returned for the query service.collection
- is the name of the collectionservice
- is the name of the query service
This method is only ever called when any of the services in the digital
library described themselves as type=query. Therefore any digital
libraries that have no query services, can just return emtpy message
strings (or even "") since this method will never be called on them
anyway.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |