}
List<Map<String, Object>> items = Utils.getJsonReader(List.class).readValue(is);
// WARN: objects will not be validated here as this would require them to be read first
for (Map<String, Object> item : items) {
if (item != null && item.containsKey(Config._ID) && item.containsKey(Config._TYPE)) {
ParaObject pobj = Utils.setAnnotatedFields(null, item, Locked.class);
if (pobj != null) {
pobj.setId((String) item.get(Config._ID));
pobj.setType((String) item.get(Config._TYPE));
pobj.setShardKey(app.isShared() ? app.getAppIdentifier() : null);
objects.add(pobj);
}
}
}
Para.getDAO().updateAll(app.getAppIdentifier(), objects);