}
// Add all schemas
{
logger.debug("Obtain list of all schemas");
CouchDesignDocument designDoc = couchDb.getDesignDocument("atlas");
CouchQuery query = new CouchQuery();
query.setViewName("schemas");
CouchQueryResults results = designDoc.performQuery(query);
List<JSONObject> rows = results.getRows();
for(JSONObject row : rows){
String docId = row.getString("id");
docIds.add(docId);
}
}
// Add all modules
{
logger.debug("Obtain list of all modules");
CouchDesignDocument designDoc = couchDb.getDesignDocument("atlas");
CouchQuery query = new CouchQuery();
query.setViewName("modules");
CouchQueryResults results = designDoc.performQuery(query);
List<JSONObject> rows = results.getRows();
for(JSONObject row : rows){
String docId = row.getString("id");
docIds.add(docId);
}