# HG changeset patch # User Torsten Irländer # Date 1370611038 -7200 # Node ID d408eaa7c11b9500f5826f385a3ba950de06aac9 # Parent 7b932d54719c45e6e50cf4b395d141bb889272ef Added success attribute which indicates that the operation on the repository was successfull. diff -r 7b932d54719c -r d408eaa7c11b src/main/java/de/intevation/lada/data/Repository.java --- a/src/main/java/de/intevation/lada/data/Repository.java Fri Jun 07 14:50:53 2013 +0200 +++ b/src/main/java/de/intevation/lada/data/Repository.java Fri Jun 07 15:17:18 2013 +0200 @@ -30,6 +30,7 @@ /** * Errors/Warnings occured in repository operations. */ + private boolean success; private int generalError; private Map errors; private Map warnings; @@ -64,6 +65,25 @@ } /** + * Getter for the success boolean which indicates whether the request + * succeeds. + * + * @return The true or false. + */ + public boolean getSuccess() { + return this.success; + } + + /** + * Protected setter for the success boolean which indicates whether the + * request succeeds. + * + */ + public void setSuccess(boolean success) { + this.success = success; + } + + /** * Getter for the error code returned by the validator. * * @return The error code returned by the validator.