Ignore:
Timestamp:
2016-12-13T20:36:01+13:00 (7 years ago)
Author:
ak19
Message:

Commit for GS3 server side part of OAI deletion police implementation. Still to implement the GS2 server side part. The earlier commits implemented the PERL side, the oai-inf db implementation. I think I've now got the GS3 server side working, but have yet to try validating against the OAI validator. (I need to test that on a machine that is publicly accessible).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/JDBMWrapper.java

    r30516 r31230  
    217217    }
    218218
     219    /** Returns all the keys of the database as Strings */
     220    public ArrayList<String> getAllEntryKeys() {
     221   
     222    ArrayList<String> keys = new ArrayList<String>();
     223   
     224    try {
     225        FastIterator iter = hashtable_.keys();
     226       
     227        String key = (String) iter.next();
     228       
     229        while (key != null) {
     230        keys.add(key);
     231        key = (String) iter.next();
     232        }
     233       
     234        recman_.commit();
     235    } catch (IOException e) {
     236        logger.error("Failed to get all keys from JDBM database");
     237        return null;
     238    }
     239   
     240    return keys;
     241    }
     242   
     243
    219244    /**
    220245     * returns a string of key-value entries that can be printed for debugging
     
    247272        catch (IOException e)
    248273        {
    249             logger.error("Failed get all keys and values from JDBM database");
     274            logger.error("Failed to get all keys and values from JDBM database");
    250275            return null;
    251276        }
Note: See TracChangeset for help on using the changeset viewer.