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(org.apache.wicket.authorization.Action action,
Roles rolesToAdd)
Gives permission for the given roles to perform the given action
|
void |
authorizeAll(org.apache.wicket.authorization.Action action)
Remove all authorization for the given action.
|
Roles |
rolesFor(org.apache.wicket.authorization.Action action)
Gets the roles that have a binding for the given action.
|
void |
unauthorize(org.apache.wicket.authorization.Action action,
Roles rolesToRemove)
Remove the given authorized role from an action.
|
public final void authorize(org.apache.wicket.authorization.Action action,
Roles rolesToAdd)
action - The actionrolesToAdd - The rolespublic final void authorizeAll(org.apache.wicket.authorization.Action action)
action - The action to clearpublic final Roles rolesFor(org.apache.wicket.authorization.Action action)
action - The actionpublic final void unauthorize(org.apache.wicket.authorization.Action action,
Roles rolesToRemove)
action - The actionrolesToRemove - The comma separated list of roles to removeCopyright © 2006–2020 Apache Software Foundation. All rights reserved.