Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/server/auth/UserClient.java @ 3697:2e12518ff5b4
Removed trailing whitespace. Reverted functional change in parsing plain user file.
flys-client/trunk@5396 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sat, 08 Sep 2012 12:22:53 +0000 |
parents | a050cb5f303f |
children |
comparison
equal
deleted
inserted
replaced
3696:a050cb5f303f | 3697:2e12518ff5b4 |
---|---|
52 public boolean createUser(User user) throws ConnectionException { | 52 public boolean createUser(User user) throws ConnectionException { |
53 if(user == null) { | 53 if(user == null) { |
54 logger.warn("createUser: given user is null"); | 54 logger.warn("createUser: given user is null"); |
55 return false; | 55 return false; |
56 } | 56 } |
57 | 57 |
58 logger.debug("Creating new user " + user.getName()); | 58 logger.debug("Creating new user " + user.getName()); |
59 HttpClient client = new HttpClientImpl(this.url); | 59 HttpClient client = new HttpClientImpl(this.url); |
60 | 60 |
61 Document document = XMLUtils.newDocument(); | 61 Document document = XMLUtils.newDocument(); |
62 | 62 |
113 | 113 |
114 public Element findUser(User user) throws ConnectionException { | 114 public Element findUser(User user) throws ConnectionException { |
115 if(user == null) { | 115 if(user == null) { |
116 throw new IllegalArgumentException("user is null"); | 116 throw new IllegalArgumentException("user is null"); |
117 } | 117 } |
118 | 118 |
119 HttpClient client = new HttpClientImpl(this.url); | 119 HttpClient client = new HttpClientImpl(this.url); |
120 | 120 |
121 Document document = XMLUtils.newDocument(); | 121 Document document = XMLUtils.newDocument(); |
122 | 122 |
123 XMLUtils.ElementCreator creator = new XMLUtils.ElementCreator( | 123 XMLUtils.ElementCreator creator = new XMLUtils.ElementCreator( |