Changeset 36976
- Timestamp:
- 2022-12-07T12:05:59+13:00 (6 months ago)
- Location:
- main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/AbstractBasicDocument.java
r29089 r36976 66 66 } 67 67 68 abstract public boolean isValidOID(String doc_id); 68 69 /** 69 70 * adds all the children of doc_id to the doc element, and if -
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/BasicDocument.java
r29089 r36976 41 41 } 42 42 43 public boolean isValidOID(String document_id) { 44 return true; 45 } 43 46 /** 44 47 * returns the structural information asked for. info_type may be one of -
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/BasicDocumentDatabase.java
r29089 r36976 74 74 return (coll_db != null); 75 75 } 76 76 77 public boolean isValidOID(String doc_id) { 78 DBInfo info = this.coll_db.getInfo(doc_id); 79 if (info == null) { 80 return false; 81 } 82 return true; 83 } 77 84 public void cleanUp() { 78 85 this.coll_db.closeDatabase();
Note:
See TracChangeset
for help on using the changeset viewer.