comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/DefaultUser.java @ 6188:733c32da04b8

Extend the shared interface User with the SAML ticket so that it can be communicated to the GWT client. Part of flys/issue1265
author Bernhard Herzog <bh@intevation.de>
date Tue, 04 Jun 2013 17:20:50 +0200
parents ea9eef426962
children
comparison
equal deleted inserted replaced
6187:7bc35bbd8b27 6188:733c32da04b8
20 protected String identifier; 20 protected String identifier;
21 21
22 /** The name of the user.*/ 22 /** The name of the user.*/
23 protected String name; 23 protected String name;
24 24
25 /** The saml ticket used for single sign-on.*/
26 protected String samlXML;
25 27
26 /** 28 /**
27 * The default constructor. 29 * The default constructor.
28 */ 30 */
29 public DefaultUser() { 31 public DefaultUser() {
34 * A constructor that creates a new user. 36 * A constructor that creates a new user.
35 * 37 *
36 * @param identifier The uuid of the user. 38 * @param identifier The uuid of the user.
37 * @param name The name of the user. 39 * @param name The name of the user.
38 */ 40 */
39 public DefaultUser(String identifier, String name) { 41 public DefaultUser(String identifier, String name, String samlXML) {
40 this.identifier = identifier; 42 this.identifier = identifier;
41 this.name = name; 43 this.name = name;
44 this.samlXML = samlXML;
42 } 45 }
43 46
44 47
45 /** 48 /**
46 * Returns the identifier of this user. 49 * Returns the identifier of this user.
61 return name; 64 return name;
62 } 65 }
63 66
64 67
65 /** 68 /**
69 * Returns the SAML ticket for single sign-on.
70 *
71 * @return the SAML ticket as base64 encoded XML
72 */
73 public String getSamlXMLBase64() {
74 return samlXML;
75 }
76
77
78 /**
66 * Set the identifier of the user. 79 * Set the identifier of the user.
67 * 80 *
68 * @param identifier The new identifier. 81 * @param identifier The new identifier.
69 */ 82 */
70 public void setIdentifier(String identifier) { 83 public void setIdentifier(String identifier) {
78 * @param name The name for this user. 91 * @param name The name for this user.
79 */ 92 */
80 public void setName(String name) { 93 public void setName(String name) {
81 this.name = name; 94 this.name = name;
82 } 95 }
96
97 /**
98 * Set the SAML Ticket for single sign-on.
99 *
100 * @param samlXML the SAML ticket as base64 encoded XML.
101 */
102 public void setSamlXMLBase64(String samlXML) {
103 this.samlXML = samlXML;
104 }
83 } 105 }
84 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 106 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org