public interface Permission
Modifier and Type | Method and Description |
---|---|
Permission |
clone()
Creates an exact copy of this instance.
|
String |
getName()
A string literal that identifies a resource or set of resources this permission object relates to.
|
AuthorizationResult |
getResult()
The authorization result or permission status.
|
boolean |
implies(Permission other)
Basically, "permission p1 implies permission p2" means that
if one is granted permission p1, one is naturally granted permission p2.
|
boolean |
impliesName(Permission other)
If "permission p1 impliesName permission p2" means that the feature represented by p1 is a superset of p2.
|
boolean |
impliesResult(Permission other)
If "permission p1 impliesResult permission p2" means that both permissions give the same result.
|
void |
setResult(AuthorizationResult result)
Change the authorzation result.
|
String getName()
It's up to every Permission implementation to define what's the set the name's format.
AuthorizationResult getResult()
void setResult(AuthorizationResult result)
result
- GRANT / DENY / ABSTAINboolean implies(Permission other)
Both calls to impliesName(Permission)
& impliesResult(Permission)
return true.
other
- the permission to check against.boolean impliesName(Permission other)
other
- the permission to check against.boolean impliesResult(Permission other)
other
- the permission to check against.Permission clone()
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.