public final class ActionPermissions extends Object implements org.apache.wicket.util.io.IClusterable
| Constructor and Description |
|---|
ActionPermissions() |
| Modifier and Type | Method and Description |
|---|---|
void |
authorize(Action action,
Roles rolesToAdd)
Gives permission for the given roles to perform the given action
|
void |
authorizeAll(Action action)
Remove all authorization for the given action.
|
Roles |
rolesFor(Action action)
Gets the roles that have a binding for the given action.
|
void |
unauthorize(Action action,
Roles rolesToRemove)
Remove the given authorized role from an action.
|
public final void authorize(Action action, Roles rolesToAdd)
action - The actionrolesToAdd - The rolespublic final void authorizeAll(Action action)
action - The action to clearpublic final Roles rolesFor(Action action)
action - The actionpublic final void unauthorize(Action action, Roles rolesToRemove)
action - The actionrolesToRemove - The comma separated list of roles to removeCopyright © 2006–2016 Apache Software Foundation. All rights reserved.