changeset 3506:f2a4e6e92ffd

Send account data to artifact rest interface to create a user flys-client/trunk@5258 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Fri, 24 Aug 2012 11:42:31 +0000
parents 637d114232b2
children 59c77a9551c8
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/server/auth/UserClient.java
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Fri Aug 24 10:52:27 2012 +0000
+++ b/flys-client/ChangeLog	Fri Aug 24 11:42:31 2012 +0000
@@ -1,3 +1,8 @@
+2012-08-24	Björn Ricks <bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/server/auth/UserClient.java:
+	  Send account data to REST interface.
+
 2012-08-24	Björn Ricks <bjoern.ricks@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/server/auth/UserClient.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/server/auth/UserClient.java	Fri Aug 24 10:52:27 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/auth/UserClient.java	Fri Aug 24 11:42:31 2012 +0000
@@ -66,8 +66,11 @@
         type.setAttribute("name", "create");
         Element artuser = creator.create("user");
         artuser.setAttribute("name", user.getName());
+        Element account = creator.create("account");
+        account.setAttribute("name", user.getAccount());
 
         //TODO create roles
+        artuser.appendChild(account);
         action.appendChild(type);
         action.appendChild(artuser);
         document.appendChild(action);

http://dive4elements.wald.intevation.org