Package | Description |
---|---|
org.apache.wicket |
The core Wicket package.
|
org.apache.wicket.authorization |
Contains classes that allow the user to specify authorization constraints
via IAuthorizationStrategy.
|
org.apache.wicket.authorization.strategies | |
org.apache.wicket.authorization.strategies.action | |
org.apache.wicket.authroles.authorization.strategies.role.annotations | |
org.apache.wicket.authroles.authorization.strategies.role.metadata |
Modifier and Type | Field and Description |
---|---|
static Action |
Component.ENABLE
Action used with IAuthorizationStrategy to determine whether a component is allowed to be
enabled.
|
static Action |
Component.RENDER
Action used with IAuthorizationStrategy to determine whether a component and its children are
allowed to be rendered.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Component.isActionAuthorized(Action action)
Authorizes an action for a component.
|
Modifier and Type | Method and Description |
---|---|
Action |
UnauthorizedActionException.getAction() |
Modifier and Type | Method and Description |
---|---|
boolean |
IAuthorizationStrategy.isActionAuthorized(Component component,
Action action)
Gets whether the given action is permitted.
|
boolean |
IAuthorizationStrategy.AllowAllAuthorizationStrategy.isActionAuthorized(Component c,
Action action) |
Constructor and Description |
---|
UnauthorizedActionException(Component component,
Action action)
Construct.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CompoundAuthorizationStrategy.isActionAuthorized(Component component,
Action action) |
Modifier and Type | Method and Description |
---|---|
Action |
IActionAuthorizer.getAction()
Gets the action that this authorizer authorizes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ActionAuthorizationStrategy.isActionAuthorized(Component component,
Action action) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
AnnotationsRoleAuthorizationStrategy.isActionAuthorized(Class<?> componentClass,
Action action) |
boolean |
AnnotationsRoleAuthorizationStrategy.isActionAuthorized(Component component,
Action action) |
Modifier and Type | Method and Description |
---|---|
void |
ActionPermissions.authorize(Action action,
Roles rolesToAdd)
Gives permission for the given roles to perform the given action
|
static void |
MetaDataRoleAuthorizationStrategy.authorize(Component component,
Action action,
String roles)
Authorizes the given role to perform the given action on the given component.
|
void |
ActionPermissions.authorizeAll(Action action)
Remove all authorization for the given action.
|
static void |
MetaDataRoleAuthorizationStrategy.authorizeAll(Component component,
Action action)
Grants permission to all roles to perform the given action on the given component.
|
boolean |
MetaDataRoleAuthorizationStrategy.isActionAuthorized(Component component,
Action action)
Uses component level meta data to match roles for component action execution.
|
Roles |
ActionPermissions.rolesFor(Action action)
Gets the roles that have a binding for the given action.
|
void |
ActionPermissions.unauthorize(Action action,
Roles rolesToRemove)
Remove the given authorized role from an action.
|
static void |
MetaDataRoleAuthorizationStrategy.unauthorize(Component component,
Action action,
String roles)
Removes permission for the given role to perform the given action on the given component.
|
static void |
MetaDataRoleAuthorizationStrategy.unauthorizeAll(Component component,
Action action)
Grants authorization to perform the given action to just the role NO_ROLE, effectively
denying all other roles.
|
Copyright © 2006–2021 Apache Software Foundation. All rights reserved.