Revision 6718
Added by ben leinfelder about 13 years ago
src/edu/ucsb/nceas/metacat/MetacatHandler.java | ||
---|---|---|
2336 | 2336 |
} |
2337 | 2337 |
|
2338 | 2338 |
try { |
2339 |
DBUtil dbutil = new DBUtil(); |
|
2340 |
Vector<String> docids = dbutil.getAllDocids(scope); |
|
2339 |
Vector<String> docids = DBUtil.getAllDocids(scope); |
|
2341 | 2340 |
out.println("<?xml version=\"1.0\"?>"); |
2342 | 2341 |
out.println("<idList>"); |
2343 | 2342 |
out.println(" <scope>" + scope + "</scope>"); |
src/edu/ucsb/nceas/metacat/DBUtil.java | ||
---|---|---|
437 | 437 |
/** |
438 | 438 |
* return all docids with a given doctype |
439 | 439 |
*/ |
440 |
public Vector<String> getAllDocidsByType(String doctype, boolean includeRevs) throws SQLException { |
|
440 |
public static Vector<String> getAllDocidsByType(String doctype, boolean includeRevs) throws SQLException {
|
|
441 | 441 |
Vector<String> resultVector = new Vector<String>(); |
442 | 442 |
String sep = "."; |
443 | 443 |
try { |
... | ... | |
506 | 506 |
/** |
507 | 507 |
* get the latest Accession Number from a particular scope |
508 | 508 |
*/ |
509 |
public Vector<String> getAllDocids(String scope) |
|
509 |
public static Vector<String> getAllDocids(String scope)
|
|
510 | 510 |
throws SQLException { |
511 | 511 |
Vector<String> resultVector = new Vector<String>(); |
512 | 512 |
// String accnum = null; |
Also available in: Unified diff
look up all docids is now a static method (ORE/SystemMetadata generation)