|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FedoraToGS3Interface
Most of the following methods return the same data as FedoraGS3DL, but formatted as Greenstone Response-Message XML. This way our java-client can parse the returned XML in the same way and store them in the same data structures.
Nested Class Summary | |
---|---|
static interface |
FedoraToGS3Interface.Constants
Interface declaring some string constants of literals to look for |
Method Summary | |
---|---|
java.lang.String |
browse(java.lang.String collectionName,
java.lang.String classifierID)
This method performs the implemented browse operation: allowing the user to browse the titles of documents in the given collection by letter and returning the results. |
java.lang.String |
browseMetadataRetrieve(java.lang.String[] classNodeIDs)
This method performs something equivalent to a greenstone3 ClassifierBrowseMetadataRetrieve on the classifierNodeIDs |
java.lang.String |
describeCollection(java.lang.String collectionName)
|
java.lang.String |
describeCollectionService(java.lang.String collectionName,
java.lang.String serviceName)
All collections in this Digital Library (Fedora Repository) share the same services, so this method returns the same as describeService(serviceName). |
java.lang.String |
describeCollectionServices(java.lang.String collectionName)
|
java.lang.String |
describeService(java.lang.String serviceName)
All collections in this Digital Library (Fedora Repository) share the same services, so this method returns the same as describeCollectionService(collName, serviceName). |
java.lang.String |
getChildren(java.lang.String docID)
|
java.lang.String |
getChildren(java.lang.String[] docIDs)
|
java.lang.String |
getCollectionList()
|
java.lang.String |
getCollectionMetadata(java.lang.String collID)
Given a collectionID, returns a GS3 DocumentMetadataRetrieve response message that gives the metadata for the collection identified |
java.lang.String |
getCollectionMetadata(java.lang.String[] collIDs)
Given a list of collectionIDs, returns a GS3 DocumentMetadataRetrieve response message that gives the metadata for each collection identified |
java.lang.String |
getContent(java.lang.String docID)
Given a list of document identifiers that are either docPIDs or concatenations of docPID+sectionID, this method retrieves their contents. |
java.lang.String |
getContent(java.lang.String[] docIDs)
Given a document identifier that is either a docPID or a concatenation of docPID+sectionID, this method retrieves the content for it. |
java.lang.String |
getDocumentMetadata(java.lang.String docID)
Given a document identifier, returns a GS3 DocumentMetadataRetrieve response message containing the metadata for the document. |
java.lang.String |
getDocumentMetadata(java.lang.String[] docIDs)
Given a list of document identifiers, a GS3 DocumentMetadataRetrieve response message is returned containing the metadata for each document. |
java.lang.String |
getDocumentStructure(java.lang.String docID)
|
java.lang.String |
getDocumentStructure(java.lang.String[] docIDs)
|
java.lang.String |
getGSearchIndexName()
|
java.lang.String |
getGSearchWSDLURL()
|
java.lang.String |
getMetadata(java.lang.String[] docIDsOrCollIDs)
|
java.lang.String |
getServiceList()
|
java.lang.String |
getTitleMetadata(java.lang.String docID)
Given a document identifier, returns a GS3 DocumentMetadataRetrieve response message containing ONLY the Title metadata for the document. |
java.lang.String |
getTitleMetadata(java.lang.String[] docIDs)
Given a document identifier, returns a GS3 DocumentMetadataRetrieve response message containing ONLY the Title metadata for the documents. |
java.lang.String |
query(java.lang.String collection,
java.lang.String service,
java.util.Map nameValParamsMap)
|
void |
setGSearchIndexName(java.lang.String indexName)
Sets the member variable gSearchIndexName that specifies the name of the index containing indexed GS3 documents. |
void |
setGSearchWSDLURL(java.lang.String url)
Sets the member variable gSearchWSDLURL that specify the location of the WSDL file of FedoraGSearch's web services. |
Method Detail |
---|
java.lang.String getGSearchWSDLURL()
void setGSearchWSDLURL(java.lang.String url)
url
- is the new url of the GSearch web services WSDL filejava.lang.String getGSearchIndexName()
void setGSearchIndexName(java.lang.String indexName)
indexName
- is the new name of the index containing indexed GS3
docs that GSearch should search in.java.lang.String getServiceList()
java.lang.String getCollectionList()
java.lang.String describeCollection(java.lang.String collectionName)
collectionName
- - the name of the collection that is to be described.
It will be converted to a fedora collection pid, which is of the form
"greenstone:<collectionName>-collection".
java.lang.String describeCollectionServices(java.lang.String collectionName)
collectionName
- - the name of the collection whose services are to
be described. It will be converted to a fedora collection pid, which is of
the form "greenstone:<collectionName>-collection".
java.lang.String describeCollectionService(java.lang.String collectionName, java.lang.String serviceName)
collectionName
- - the name of the collection whose service is to
be described. It will be converted to a fedora collection pid, which is of
the form "greenstone:<collectionName>-collection".serviceName
- - the name of the service in the collection which is to
be described.
java.lang.String describeService(java.lang.String serviceName)
serviceName
- - the name of the service in the collection which is to
be described.
java.lang.String getContent(java.lang.String docID)
docID
- is expected to be of the form
"greenstone:<collectionName>-<docPID>-<sectionNumber>" or
"greenstone:<collectionName>-<docPID>"
If it is "greenstone:<collectionName>-<docPID>", then the content for
"greenstone:<collectionName>-1" ("greenstone:<collectionName>-Section1")
is returned.java.lang.String getContent(java.lang.String[] docIDs)
docIDs
- an array of document IDs where each is expected to be of the
form "greenstone:<collectionName>-<docPID>-<sectionNumber>"
or "greenstone:<collectionName>-<docPID>"
If it is "greenstone:<collectionName>-<docPID>", then the content for
"greenstone:<collectionName>-1" ("greenstone:<collectionName>-Section1")
is returned.java.lang.String getDocumentStructure(java.lang.String docID)
docID
- the identifier for the document whose structure is required.
This is either of the format "greenstone:<collectionName>-<docPID>"
OR "greenstone:<collectionName>-<docPID>-"
where "greenstone:<collectionName>-<docPID>-1" is the same as
"greenstone:<collectionName>-<docPID>" and will return the same response
java.lang.String getChildren(java.lang.String docID)
docID
- the identifier for the document whose structure is required.
This is of the format "greenstone:<collectionName>-<docPID>"
OR "greenstone:<collectionName>-<docPID>-"
where "greenstone:<collectionName>-<docPID>-1" is the same as
"greenstone:<collectionName>-<docPID>" and will return the same response
java.lang.String getDocumentStructure(java.lang.String[] docIDs)
docIDs
- an array of document identifiers whose structures are requested
These are of the format "greenstone:<collectionName>-<docPID>"
OR "greenstone:<collectionName>-<docPID>-<sectionNumber>"
where "greenstone:<collectionName>-<docPID>-1" is the same as
"greenstone:<collectionName>-<docPID>" and will return the same response
java.lang.String getChildren(java.lang.String[] docIDs)
docIDs
- an array of document identifiers whose structures are requested
These are of the format "greenstone:<collectionName>-<docPID>"
OR "greenstone:<collectionName>-<docPID>-<sectionNumber>"
where "greenstone:<collectionName>-<docPID>-1" is the same as
"greenstone:<collectionName>-<docPID>" and will return the same response
java.lang.String getCollectionMetadata(java.lang.String[] collIDs)
collIDs
- is an array of fedora pids identifying collections in the
fedora repository
java.lang.String getDocumentMetadata(java.lang.String[] docIDs)
docIDs
- is an array of document identifiers (docID can either be <pid>s
items (documents) in the fedora repository, or "<pid>-sectionNumber".
java.lang.String getCollectionMetadata(java.lang.String collID)
collID
- is a fedora pid identifying a collection in its repository
java.lang.String getDocumentMetadata(java.lang.String docID)
docID
- is a document identifier (docID can either be a <pid>
of an item (document) in the fedora repository, or it can be
"<pid>-sectionNumber".
java.lang.String getMetadata(java.lang.String[] docIDsOrCollIDs)
docIDsOrCollIDs
- is an array of identifiers which may be either the
fedora pids for collections, or otherwise may be a document identifier.
In the last case, the document ID may consist of either
"documentPID-sectionNumber" or may just be just fedora documentPID
java.lang.String getTitleMetadata(java.lang.String docID)
docID
- is a document identifier (docID can either be a <pid>
of an item (document) in the fedora repository, or it can be
"<pid>-sectionNumber".
java.lang.String getTitleMetadata(java.lang.String[] docIDs)
docIDs
- is a list of document identifiers (where docID can either be
a <pid> of an item (document) in the fedora repository, or it can be
"<pid>-sectionNumber".
java.lang.String browseMetadataRetrieve(java.lang.String[] classNodeIDs)
classNodeIDs
- are the IDs of the classifierNode for which the metadata
needs to be returned
java.lang.String browse(java.lang.String collectionName, java.lang.String classifierID)
classifierID
- is the id of the classifier on which to browse. In
this case, the classifier indicates whether we browse titles by letter, or
browse (documents) by collection; and it is of the form <CL(letter)>.collectionName
- is the name of the collection whose documents
starting with the given letter will be returned.
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 |