Changeset 9874 for trunk/gsdl3/src/java/org/greenstone/gsdl3/service/AbstractGS3DocumentRetrieve.java
- Timestamp:
- 2005-05-16T11:02:50+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/AbstractGS3DocumentRetrieve.java
r9000 r9874 20 20 21 21 // Greenstone classes 22 import org.greenstone.gsdl3.core.GSException; 22 23 import org.greenstone.gsdl3.util.GSXML; 23 24 import org.greenstone.gsdl3.util.GSFile; … … 62 63 // set up a macro resolver 63 64 } 64 65 66 public void cleanUp() { 67 super.cleanUp(); 68 this.database.closeConnection(); 69 } 65 70 66 71 /** configure this service */ … … 109 114 } 110 115 111 /** if an id is not a greenstone id (an external id) then translate112 it to a greenstone one*/113 protected String translateExternalId(String node_id){114 // dont have this yet115 return node_id;116 }117 118 116 /** returns the id of the root node of the document containing node node_id. . may be the same as node_id */ 119 117 protected String getRootId(String node_id) { … … 150 148 // assumes only one value per metadata 151 149 protected Element getMetadataList(String node_id, boolean all_metadata, 152 ArrayList metadata_names) { 150 ArrayList metadata_names) 151 throws GSException { 153 152 Element metadata_list = this.doc.createElement(GSXML.METADATA_ELEM+GSXML.LIST_MODIFIER); 154 153 … … 215 214 * <nodeContent>text content or other elements</nodeContent> 216 215 */ 217 abstract protected Element getNodeContent(String doc_id) ;216 abstract protected Element getNodeContent(String doc_id) throws GSException; 218 217 219 218 }
Note:
See TracChangeset
for help on using the changeset viewer.