Mercurial > dive4elements > framework
comparison artifacts/src/main/java/de/intevation/artifacts/UserFactory.java @ 130:147610c43863
The UserFactory got a setup() method that is called while bootstrap.
artifacts/trunk@1354 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Wed, 02 Mar 2011 07:36:00 +0000 |
parents | 2707b7ec273f |
children | 2950c6011afa |
comparison
equal
deleted
inserted
replaced
129:10d726907419 | 130:147610c43863 |
---|---|
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | 6 * or visit http://www.gnu.org/licenses/ if it does not exist. |
7 */ | 7 */ |
8 package de.intevation.artifacts; | 8 package de.intevation.artifacts; |
9 | 9 |
10 import org.w3c.dom.Document; | 10 import org.w3c.dom.Document; |
11 import org.w3c.dom.Node; | |
11 | 12 |
12 import java.io.Serializable; | 13 import java.io.Serializable; |
13 | 14 |
14 public interface UserFactory | 15 public interface UserFactory |
15 { | 16 { |
17 void setup(Document config, Node factoryNode); | |
18 | |
16 User createUser(String identifier, String name, Document role, Object context); | 19 User createUser(String identifier, String name, Document role, Object context); |
17 | 20 |
18 void deleteUser(User user, Object context); | 21 void deleteUser(User user, Object context); |
19 | 22 |
20 User getUser(String identifier, Object context); | 23 User getUser(String identifier, Object context); |