Ignore:
Timestamp:
2010-06-23T15:44:44+12:00 (14 years ago)
Author:
ak19
Message:

Changes to get Fedora to work with Greenstone3: to let the Greenstone3 Reader Interface work with a Fedora Repository behind the scenes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/gs3-webservices-java-client/trunk/src/GS3DemoClient/org/greenstone/gs3client/dlservices/GS3ServicesAPIA.java

    r21835 r22298  
    254254     * @return a String representing Greenstone3 DocumentMetadataRetrieve XML
    255255     * containing all the metadata of all the documents indicated by docIDs
    256     */
    257     public String retrieveDocumentMetadata(String collection, String[] docIDs) {
    258         return this.retrieveAllDocumentMetadata(collection, language, docIDs);
     256     * @param metadata is the list of metadata elements to be retrieved for each doc.
     257    */
     258    public String retrieveDocumentMetadata(String collection, String[] docIDs, String[] metafields) {
     259        return this.retrieveDocumentMetadata(collection, language, docIDs, metafields);
    259260    }
    260261   
     
    266267     * @return a String representing Greenstone3 DocumentMetadataRetrieve XML
    267268     * containing all the metadata of the document denoted by docID
    268     */
    269     public String retrieveDocumentMetadata(String collection, String docID) {
    270         return this.retrieveAllDocumentMetadata(collection, language,
    271                 new String[] { docID });
     269     * @param metadata is the list of metadata elements to be retrieved for each doc.
     270    */
     271    public String retrieveDocumentMetadata(String collection, String docID, String[] metafields) {
     272        return this.retrieveDocumentMetadata(collection, language,
     273                            new String[] { docID }, metafields);
    272274    }
    273275   
     
    298300                new String[] { docID }, titleMetaName);
    299301    }
     302
     303    /** @return a String representing Greenstone3 DocumentMetadataRetrieve XML
     304     * containing the requested portion of the document structure of the documents
     305     * indicated by docIDs:
     306     * @param collection is the name of the collection.
     307     * @param docIDs is an array of document identifiers of documents whose
     308     * hierarchical structures are requested.
     309     * @param structure - strings specifying the required structure of each document.
     310     * It can be a combination of: ancestors, parent, siblings, children, descendants, entire.
     311     * @param info - strings specifying the required structural info of each document.
     312     * It can be any combination of: siblingPosition, numSiblings, numChildren.
     313    */
     314    public String retrieveDocumentStructure(String collection, String[] docIDs, String[] structure, String[] info) {
     315    return retrieveDocumentStructure(collection, language, docIDs, structure, info);
     316    }
     317
     318
     319        /** @return a String representing Greenstone3 DocumentMetadataRetrieve XML
     320     * containing the requested portion of the document structure of the documents
     321     * indicated by docIDs:
     322     * @param collection is the name of the collection.
     323     * @param docID is the document identifier of the document whose hierarchical
     324     * structure is requested.
     325     * @param structure - strings specifying the required structure of the document.
     326     * It can be a combination of: ancestors, parent, siblings, children, descendants, entire.
     327     * @param info - strings specifying the required structural info of the document.
     328     * It can be any combination of: siblingPosition, numSiblings, numChildren.
     329    */
     330    public String retrieveDocumentStructure(String collection, String docID, String[] structure, String[] info) {
     331    return retrieveDocumentStructure(collection, language,
     332                  new String[] {docID}, structure, info);
     333    }
    300334   
    301335    /** Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface
     
    310344        return this.retrieveEntireDocumentStructure(collection, language, docIDs);
    311345    }
     346
    312347    /** Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface
    313348     * contract.
     
    322357                new String[] { docID });
    323358    }
     359
    324360   
    325361    /** Part of the GS3 Java-Client's DigitalLibraryServicesAPIA interface
     
    360396     * @param collection is the name of the collection
    361397     * @param service is the name of the browse service (=ClassifierBrowse usually)
    362     */
    363     public String retrieveBrowseStructure(
    364             String collection, String service, String[] classifierIDs)
     398     * @param structure - the requested browse substructure. Can be any combination
     399     * of ancestors, parent, siblings, children, descendants.
     400     * @param info - the requested structural info. Can be numSiblings, siblingPosition,
     401     * numChildren
     402    */
     403    public String retrieveBrowseStructure(String collection, String service,
     404                          String[] classifierIDs, String[] structure, String[] info)
    365405    {
    366         return this.browseDescendants(collection, service,
    367                 language, classifierIDs );
     406        return this.browse(collection, service, language, classifierIDs, structure, info);
    368407    }
    369408   
     
    376415     * out structured sections like CL2.1.3. NodeIDs are generally subsections
    377416     * of top-level classifierNodes (CL#, e.g. CL3).
     417     * @param metafields are the classifier metadata fields that are to be returned.
    378418     * @param collection is the name of the collection
    379419     * @param service is the name of the Browse's MetadataRetrieve service
    380420     * (usually the browse service is ClassifierBrowse, in which case it always
    381421     * has a retrieve service called ClassifierBrowseMetadataRetrieve) */
    382     public String retrieveBrowseMetadata(
    383             String collection, String service, String[] nodeIDs)
     422    public String retrieveBrowseMetadata(String collection, String service,
     423                         String[] nodeIDs, String[] metafields)
    384424    {
    385         return this.retrieveAllBrowseMetadata(collection, service,
    386                 language, nodeIDs);
     425        return this.retrieveBrowseMetadata(collection, service, language, nodeIDs, metafields);
    387426    }
    388427   
Note: See TracChangeset for help on using the changeset viewer.