|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.authroles.authorization.strategies.role.metadata.ActionPermissions
public final class ActionPermissions
For each Action, holds a set of roles that can perform that action. Roles can be granted access to a given action via authorize(Action, String role) and denied access via unauthorize(Action, String role). All permissions can be removed for a given action via authorizeAll(Action).
| Constructor Summary | |
|---|---|
ActionPermissions()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionPermissions()
| Method Detail |
|---|
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 action
public final void unauthorize(Action action,
Roles rolesToRemove)
action - The actionrolesToRemove - The comma separated list of roles to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||