agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/util/DomainSetup.java
/**
     * turn all the domain object json lists into domain object maps for keyed access
     */
turn all the domain object json lists into domain object maps for keyed access
turn all the domain object json lists into domain object maps for keyed access
public void fillSystemMaps(){
        for(JSONObject json : jsonStorageList){
            try {
                String key = (String)json.get("id");
                storageSystemMap.put(key, StorageSystem.fromJSON(json));
            } catch (SystemException | JSONException e) {
                e.printStackTrace();
            }
        }
        for(JSONObject json : jsonExecutionList){
            try {
                String key = (String)json.get("id");
                executionSystemMap.put(key, ExecutionSystem.fromJSON(json));
            } catch (SystemException | JSONException | SystemArgumentException e) {
                e.printStackTrace();
            }
        }
    }
public void fillSystemMaps ( ) { for ( JSONObject json : jsonStorageList ) { try { String key = ( String ) json . get ( "id" ) ; storageSystemMap . put ( key , StorageSystem . fromJSON ( json ) ) ; } catch ( SystemException | JSONException e ) { e . printStackTrace ( ) ; } } for ( JSONObject json : jsonExecutionList ) { try { String key = ( String ) json . get ( "id" ) ; executionSystemMap . put ( key , ExecutionSystem . fromJSON ( json ) ) ; } catch ( SystemException | JSONException | SystemArgumentException e ) { e . printStackTrace ( ) ; } } }
turn all the domain object json lists into domain object maps for keyed access
turn all the domain object json lists into domain object maps for keyed access