} catch(Exception e) {
throw new Exception("Error while parsing table options: "+optionsString,e);
}
{
OperationAccess access = parseOption(jsonObj, Option.QUERY, tableSchema);
tableSchema.setQueryAccess(access);
}
{
OperationAccess access = parseOption(jsonObj, Option.INSERT, tableSchema);
if( access.isAllowed() && access.getWhereClauses().size() > 0 ) {
throw new Exception("Selection is not allowed on insert");
}
tableSchema.setInsertAccess(access);
}
{
OperationAccess access = parseOption(jsonObj, Option.UPDATE, tableSchema);
tableSchema.setUpdateAccess(access);
}
{
OperationAccess access = parseOption(jsonObj, Option.DELETE, tableSchema);
tableSchema.setDeleteAccess(access);
}
}