Statistics
| Revision:

gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / identitymanagement / spi / AbstractSimpleIdentity.java @ 1207

History | View | Annotate | Download (1.04 KB)

1

    
2

    
3
package org.gvsig.tools.identitymanagement.spi;
4

    
5
import java.util.List;
6
import org.gvsig.tools.identitymanagement.SimpleIdentity;
7

    
8

    
9
public abstract class AbstractSimpleIdentity implements SimpleIdentity {
10
    
11
    public String getName() {
12
        return this.getID();
13
    }
14
    
15
    public String getFullName() {
16
        return this.getName();
17
    }
18
    
19
    public List getAttributeNames() {
20
        return null;
21
    }
22
    
23
    public String getAttribute(String name) {
24
        return null;
25
    }
26

    
27
    public boolean isAuthorized(String actionName) {
28
        boolean b = true;
29
        return b;
30
    }
31
    
32
    public boolean isAuthorized(String actionName, Object resource, String resourceName) {
33
        boolean b = true;
34
        return b;
35
    }
36

    
37
    public boolean canRead(Object resource, String resourceName) {
38
        return this.isAuthorized(READ_AUTHORIZATION, resource, resourceName);
39
    }
40

    
41
    public boolean canWrite(Object resource, String resourceName) {
42
        return this.isAuthorized(WRITE_AUTHORIZATION, resource, resourceName);
43
    }
44
    
45
}