Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/ArtifactDatabaseImpl.java @ 154:1a72f08ce8d7
Propagate delete user errors correctly.
artifacts/trunk@1379 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 03 Mar 2011 09:36:03 +0000 |
parents | bf596b83d984 |
children | f797093c60bd |
comparison
equal
deleted
inserted
replaced
153:bf596b83d984 | 154:1a72f08ce8d7 |
---|---|
1053 ArtifactNamespaceContext.NAMESPACE_PREFIX); | 1053 ArtifactNamespaceContext.NAMESPACE_PREFIX); |
1054 | 1054 |
1055 Element root = ec.create("result"); | 1055 Element root = ec.create("result"); |
1056 result.appendChild(root); | 1056 result.appendChild(root); |
1057 | 1057 |
1058 try { | 1058 boolean success = factory.deleteUser(userId, context); |
1059 factory.deleteUser(userId, context); | 1059 |
1060 root.setTextContent(OPERATION_SUCCESSFUL); | 1060 root.setTextContent(success ? OPERATION_SUCCESSFUL: OPERATION_FAILURE); |
1061 } | |
1062 catch (Exception e) { | |
1063 logger.error(e.getMessage(), e); | |
1064 root.setTextContent(OPERATION_FAILURE); | |
1065 } | |
1066 | 1061 |
1067 return result; | 1062 return result; |
1068 } | 1063 } |
1069 | 1064 |
1070 | 1065 |