changeset 2948:83c962be0dde

Add WAS user class The user class can be used to be stored in the httpsession. flys-client/trunk@4925 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Bjoern Ricks <bjoern.ricks@intevation.de>
date Wed, 11 Jul 2012 10:11:04 +0000
parents 645c774b3b98
children abf267708672
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/server/was/User.java
diffstat 2 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Jul 10 19:55:22 2012 +0000
+++ b/flys-client/ChangeLog	Wed Jul 11 10:11:04 2012 +0000
@@ -1,3 +1,8 @@
+2012-07-11	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/server/was/User.java:
+	  Add a first implementation of a WAS user class.
+
 2012-07-10	Sascha L. Teichmann	<sascha.teichmann@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/server/was/Response.java:
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/server/was/User.java	Wed Jul 11 10:11:04 2012 +0000
@@ -0,0 +1,24 @@
+package de.intevation.flys.client.server.was;
+
+import de.intevation.flys.client.shared.model.DefaultUser;
+
+public class User extends DefaultUser {
+
+    private String password;
+
+    public User(String name, String password) {
+        this.setName(name);
+        this.password = password;
+    }
+
+    public String getPassword() {
+        return this.password;
+    }
+
+    public Boolean hasExpired() {
+        //TODO
+        return false;
+    }
+}
+
+// vim:set ts=4 sw=4 si et fenc=utf8 tw=80:

http://dive4elements.wald.intevation.org