# HG changeset patch # User Raimund Renkert # Date 1372675498 -7200 # Node ID 7845b90dee189c68887a500e7cdea1440d7dced6 # Parent 4eba85fa365167cb2f77bb97f46f966955e43c51 New attribute 'readonly' for response. diff -r 4eba85fa3651 -r 7845b90dee18 src/main/java/de/intevation/lada/rest/Response.java --- a/src/main/java/de/intevation/lada/rest/Response.java Mon Jul 01 12:43:51 2013 +0200 +++ b/src/main/java/de/intevation/lada/rest/Response.java Mon Jul 01 12:44:58 2013 +0200 @@ -26,6 +26,7 @@ private Object data; private Map errors; private Map warnings; + private Boolean readonly; public Response(boolean success, int code, Object data) { this.success = success; @@ -33,6 +34,7 @@ this.data = data; this.errors = new HashMap(); this.warnings = new HashMap(); + this.readonly = Boolean.FALSE; } public Boolean getSuccess() { @@ -75,6 +77,14 @@ this.warnings = this.convertCodes(warnings); } + public Boolean getReadonly() { + return readonly; + } + + public void setReadonly(Boolean readonly) { + this.readonly = readonly; + } + private HashMap convertCodes(Map codes) { HashMap converted = new HashMap(); if (codes == null || codes.isEmpty()) {