Mercurial > lada > lada-server
changeset 86:d408eaa7c11b
Added success attribute which indicates that the operation on the repository
was successfull.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Fri, 07 Jun 2013 15:17:18 +0200 |
parents | 7b932d54719c |
children | 36b2191c3fcb |
files | src/main/java/de/intevation/lada/data/Repository.java |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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<String, Integer> errors; private Map<String, Integer> 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.