comparison artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultUser.java @ 123:9187abefba8b

Added a default implementation of a UserFactory and a new constructor to create new DefaultUsers. artifacts/trunk@1346 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 01 Mar 2011 17:14:10 +0000
parents 3bb121d5b0b7
children 0ca9b1073ccf
comparison
equal deleted inserted replaced
122:c9cf5f33a230 123:9187abefba8b
31 31
32 /** 32 /**
33 * The default constructor. 33 * The default constructor.
34 */ 34 */
35 public DefaultUser() { 35 public DefaultUser() {
36 }
37
38
39 /**
40 * A constructor that creates a new user.
41 *
42 * @param identifier The uuid of the user.
43 * @param name The name of the user.
44 * @param role The role of the user.
45 */
46 public DefaultUser(String identifier, String name, Document role) {
47 this.identifier = identifier;
48 this.name = name;
49 this.role = role;
36 } 50 }
37 51
38 52
39 /** 53 /**
40 * Returns the identifier of this user. 54 * Returns the identifier of this user.

http://dive4elements.wald.intevation.org