Ignore:
Timestamp:
2005-05-16T11:02:50+12:00 (19 years ago)
Author:
kjdon
Message:

merged from branch ant-install-branch: merge 1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/service/AbstractGS3DocumentRetrieve.java

    r9000 r9874  
    2020
    2121// Greenstone classes
     22import org.greenstone.gsdl3.core.GSException;
    2223import org.greenstone.gsdl3.util.GSXML;
    2324import org.greenstone.gsdl3.util.GSFile;
     
    6263    // set up a macro resolver
    6364    }
    64 
     65   
     66    public void cleanUp() {
     67    super.cleanUp();
     68    this.database.closeConnection();
     69    }
    6570
    6671    /** configure this service */
     
    109114    }
    110115   
    111     /** if an id is not a greenstone id (an external id) then translate
    112     it to a greenstone one*/
    113     protected String translateExternalId(String node_id){
    114     // dont have this yet
    115     return node_id;
    116     }
    117 
    118116    /** returns the id of the root node of the document containing node node_id. . may be the same as node_id */
    119117    protected String getRootId(String node_id) {
     
    150148    // assumes only one value per metadata
    151149    protected Element getMetadataList(String node_id, boolean all_metadata,
    152                       ArrayList metadata_names) {
     150                      ArrayList metadata_names)   
     151    throws GSException {
    153152    Element metadata_list = this.doc.createElement(GSXML.METADATA_ELEM+GSXML.LIST_MODIFIER);
    154153
     
    215214     * <nodeContent>text content or other elements</nodeContent>
    216215     */
    217     abstract protected Element getNodeContent(String doc_id);
     216    abstract protected Element getNodeContent(String doc_id) throws GSException;
    218217
    219218}   
Note: See TracChangeset for help on using the changeset viewer.