public class InstantiationPermissions extends Object implements org.apache.wicket.util.io.IClusterable
| Constructor and Description |
|---|
InstantiationPermissions() |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.apache.wicket.Component> |
authorize(Class<T> componentClass,
Roles rolesToAdd)
Gives the given role permission to instantiate the given class.
|
<T extends org.apache.wicket.Component> |
authorizeAll(Class<T> componentClass)
Gives all roles permission to instantiate the given class.
|
<T extends org.apache.wicket.request.component.IRequestableComponent> |
authorizedRoles(Class<T> componentClass)
Gets the roles that have a binding with the given component class.
|
protected Map<Class<? extends org.apache.wicket.Component>,Roles> |
getRolesForComponentClass() |
<T extends org.apache.wicket.Component> |
unauthorize(Class<T> componentClass,
Roles rolesToRemove)
Removes permission for the given role to instantiate the given class.
|
public final <T extends org.apache.wicket.Component> void authorize(Class<T> componentClass, Roles rolesToAdd)
T - componentClass - The component classrolesToAdd - The roles to addpublic final <T extends org.apache.wicket.Component> void authorizeAll(Class<T> componentClass)
T - componentClass - The component classpublic <T extends org.apache.wicket.request.component.IRequestableComponent> Roles authorizedRoles(Class<T> componentClass)
T - componentClass - the component classpublic final <T extends org.apache.wicket.Component> void unauthorize(Class<T> componentClass, Roles rolesToRemove)
T - componentClass - The classrolesToRemove - The role to denyCopyright © 2006–2021 Apache Software Foundation. All rights reserved.