public interface Privilege
Modifier and Type | Interface and Description |
---|---|
static class |
Privilege.Builder |
static class |
Privilege.Impl |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEntityId()
Returns Id of an entity for which these permissions are defined
|
EntityType |
getEntityType()
Returns type of an entity for which these permissions are defined
|
java.util.Set<Permission> |
getPermissions()
Returns non-null, immutable set of permissions associated with an entity.
|
boolean |
hasPermission(Permission p)
Returns true if this privilege contains specified permission, otherwise false.
|
java.lang.String getEntityId()
EntityType getEntityType()
java.util.Set<Permission> getPermissions()
boolean hasPermission(Permission p)