Ignore:
Timestamp:
2010-06-24T13:45:34+12:00 (14 years ago)
Author:
ak19
Message:
  1. Changes to get Fedora to work with Greenstone3: to let the Greenstone3 Reader Interface work with a Fedora Repository behind the scenes. 2. No longer returns XML Strings formatted for display, but unformatted, since when it's converted to XML DOM on the Greenstone end, new lines introduced due to whitespace interfere with Greenstone 3's default parsing of the XML.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/gs3-webservices-java-client/trunk/src/GS3Fedora/org/greenstone/fedora/services/FedoraGS3DL.java

    r15222 r22300  
    331331    /* METHODS FOR GETTING THE STRUCTURE OF DOCUMENTS */
    332332
    333     /** @return the XML content of the TOC of just that portion of the TOC which   
    334      * contains the section denoted by sectionID and its direct child subsections.
    335      * The children are returned in the order they are encountered, which
    336      * happens to be in the required order of ascending sectionID.
    337      * @param docPID is a fedora pid identifying a greenstone document object.
    338      * @param sectionID identifies the particular section in the
    339      * document denoted by docPID, may be a section name or number. */
    340     public Element getChildrenOfSectionXML(String docPID, String sectionID)
    341         throws RemoteException, UnsupportedEncodingException,
    342             SAXException, IOException;
    343 
    344     /** @return a string representing the XML content of the TOC of just
    345      * that portion of the TOC which contains the section denoted by sectionID 
    346      * and its direct child subsections.
    347      * The children are returned in the order they are encountered, which
    348      * happens to be in the required order of ascending sectionID.
    349      * @param docPID is a fedora pid identifying a greenstone document object.
    350      * @param sectionID identifies the particular section in the
    351      * document denoted by docPID, may be a section name or number. */
    352     public String getChildrenOfSection(String docPID, String sectionID)
    353         throws RemoteException, UnsupportedEncodingException,
    354             SAXException, IOException, TransformerException;
    355 
    356333    /** @return the part of the TOC XML file (which outlines doc structure) 
    357334     * relating to the given section. This includes the section denoted by
    358335     * sectionID as well as all descendent subsections thereof.
    359      * @param docPID is a fedora pid identifying a greenstone document object.
    360      * @param sectionID identifies the particular section in the
    361      * document denoted by docPID, may be a section name or number. */
    362     public Element getSubsectionXML(String docPID, String sectionID)
    363         throws RemoteException, UnsupportedEncodingException,
    364             SAXException, IOException;
    365 
    366     /** @return a String representation of the part of the TOC XML file   
    367      * (which outlines doc structure) relating to the given section. This   
    368      * includes the section denoted by sectionID as well as all descendent 
    369      * subsections thereof.
    370      * @param docPID is a fedora pid identifying a greenstone document object.
    371      * @param sectionID identifies the particular section in the
    372      * document denoted by docPID, may be a section name or number. */
    373     public String getSubsection(String docPID, String sectionID)
    374         throws RemoteException, UnsupportedEncodingException, SAXException, 
    375             IOException, TransformerException;
     336     * @param docPID - a fedora pid identifying a greenstone document object.
     337     * @param sectionID - identifies the particular section in the
     338     * document denoted by docPID, may be a section name or number.
     339     * @param structure can contain any combination of: ancestors, parent,
     340     * siblings, children, descendants, entire, specifying the portion of
     341     * the structure to retrieve.
     342     * @param info can contain any combination of: siblingPosition, numSiblings,
     343     * numChildren, requesting additional information about the structure. */
     344    public Element getSectionStructureXML(String docPID, String sectionID, String structure, String info)
     345        throws RemoteException, UnsupportedEncodingException, SAXException, IOException;
    376346
    377347    /* BROWSING */
Note: See TracChangeset for help on using the changeset viewer.