Revision 2590 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/identitymanagement/UnauthorizedException.java
UnauthorizedException.java | ||
---|---|---|
2 | 2 |
|
3 | 3 |
import org.apache.commons.lang3.StringUtils; |
4 | 4 |
import org.gvsig.tools.ToolsLocator; |
5 |
import org.gvsig.tools.identitymanagement.spi.AbstractSimpleIdentity; |
|
5 | 6 |
|
6 | 7 |
public class UnauthorizedException extends RuntimeException { |
7 | 8 |
|
... | ... | |
21 | 22 |
} |
22 | 23 |
} |
23 | 24 |
|
25 |
public UnauthorizedException(String identityId, String actionName, Object resource, String resourceName) { |
|
26 |
this(new AbstractSimpleIdentity(null) { |
|
27 |
@Override |
|
28 |
public String getID() { |
|
29 |
return identityId; |
|
30 |
} |
|
31 |
}, actionName, resource, resourceName); |
|
32 |
} |
|
33 |
|
|
24 | 34 |
public UnauthorizedException(String actionName, Object resource, String resourceName) { |
25 |
this(null, actionName, resource, resourceName); |
|
35 |
this((SimpleIdentity)null, actionName, resource, resourceName);
|
|
26 | 36 |
} |
27 | 37 |
|
28 | 38 |
@Override |
Also available in: Unified diff