Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultUserFactory.java @ 409:4748949c4f19
Extend user class implementations to handle account information
artifacts/trunk@5245 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Thu, 23 Aug 2012 13:42:41 +0000 |
parents | 6e6965873a48 |
children |
comparison
equal
deleted
inserted
replaced
408:7cdd63310d5c | 409:4748949c4f19 |
---|---|
45 * This method creates a new DefaultUser with the given identifier, name and | 45 * This method creates a new DefaultUser with the given identifier, name and |
46 * role. | 46 * role. |
47 * | 47 * |
48 * @param identifier The identifier for the new user. | 48 * @param identifier The identifier for the new user. |
49 * @param name The name for the new user. | 49 * @param name The name for the new user. |
50 * @param account The name of the new users account. | |
50 * @param role The role for the new user. | 51 * @param role The role for the new user. |
51 * @param context The CallContext. | 52 * @param context The CallContext. |
52 */ | 53 */ |
53 public User createUser( | 54 public User createUser( |
54 String identifier, | 55 String identifier, |
55 String name, | 56 String name, |
57 String account, | |
56 Document role, | 58 Document role, |
57 Object context) | 59 Object context) |
58 { | 60 { |
59 logger.debug("DefaultUserFactory.createUser: " + name); | 61 logger.debug("DefaultUserFactory.createUser: " + name); |
60 return new DefaultUser(identifier, name, role); | 62 return new DefaultUser(identifier, name, account, role); |
61 } | 63 } |
62 } | 64 } |
63 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 65 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |