gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / identitymanagement / spi / AbstractSimpleIdentityManager.java @ 1229
History | View | Annotate | Download (911 Bytes)
1 |
|
---|---|
2 |
package org.gvsig.tools.identitymanagement.spi; |
3 |
|
4 |
import java.util.Collection; |
5 |
import java.util.Collections; |
6 |
import java.util.Set; |
7 |
import java.util.TreeSet; |
8 |
import org.gvsig.tools.identitymanagement.SimpleIdentity; |
9 |
import org.gvsig.tools.identitymanagement.SimpleIdentityManager; |
10 |
|
11 |
public abstract class AbstractSimpleIdentityManager implements SimpleIdentityManager { |
12 |
|
13 |
protected Set registeredActions = null; |
14 |
|
15 |
protected AbstractSimpleIdentityManager() {
|
16 |
this.registeredActions = new TreeSet(); |
17 |
} |
18 |
|
19 |
public SimpleIdentity getAdministrator() {
|
20 |
return this.getCurrentIdentity(); |
21 |
} |
22 |
|
23 |
public boolean needDomain() { |
24 |
return false; |
25 |
} |
26 |
|
27 |
public void registerAction(String actionName) { |
28 |
this.registeredActions.add(actionName);
|
29 |
} |
30 |
|
31 |
public Collection getActions() { |
32 |
return Collections.unmodifiableCollection(this.registeredActions); |
33 |
} |
34 |
} |