Revision 1211 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/identitymanagement/spi/AbstractSimpleIdentityManager.java
AbstractSimpleIdentityManager.java | ||
---|---|---|
1 | 1 |
|
2 | 2 |
package org.gvsig.tools.identitymanagement.spi; |
3 | 3 |
|
4 |
import java.util.Collection; |
|
5 |
import java.util.Collections; |
|
6 |
import java.util.Set; |
|
7 |
import java.util.TreeSet; |
|
4 | 8 |
import org.gvsig.tools.identitymanagement.SimpleIdentityManager; |
5 | 9 |
|
6 | 10 |
public abstract class AbstractSimpleIdentityManager implements SimpleIdentityManager { |
7 | 11 |
|
12 |
protected Set registeredActions = null; |
|
13 |
|
|
14 |
protected AbstractSimpleIdentityManager() { |
|
15 |
this.registeredActions = new TreeSet(); |
|
16 |
} |
|
17 |
|
|
8 | 18 |
public boolean needDomain() { |
9 | 19 |
return false; |
10 | 20 |
} |
11 | 21 |
|
22 |
public void registerAction(String actionName) { |
|
23 |
this.registeredActions.add(actionName); |
|
24 |
} |
|
25 |
|
|
26 |
public Collection getActions() { |
|
27 |
return Collections.unmodifiableCollection(this.registeredActions); |
|
28 |
} |
|
12 | 29 |
} |
Also available in: Unified diff