Package | Description |
---|---|
org.rvpf.metadata |
Metadata entities definition.
|
org.rvpf.metadata.entity |
Modifier and Type | Method and Description |
---|---|
static Permissions.Action |
Permissions.Action.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Permissions.Action[] |
Permissions.Action.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Permissions.check(Permissions.Action action,
Optional<Identity> identity)
Checks if an action is allowed by at least one role.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Set<Permissions.Action>> |
PermissionsEntity.getPermissions()
Gets the permissions.
|
Modifier and Type | Method and Description |
---|---|
void |
PermissionsEntity.allow(String role,
Permissions.Action action)
Allows an action for a role.
|
boolean |
PermissionsEntity.check(Permissions.Action action,
Optional<Identity> identity)
Checks if an action is allowed by at least one role.
|
void |
PermissionsEntity.deny(String role,
Permissions.Action action)
Denies an action for a role.
|
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.