|
||||||||||
| 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.InstantiationPermissions
public class InstantiationPermissions
An internal data structure that maps a given component class to a set of role strings. Permissions can be granted to instantiate a given component class via authorize(Class, Roles roles) and denied via unauthorize(Class, Roles roles). All authorization can be removed for a given class with authorizeAll(Class).
| Constructor Summary | |
|---|---|
InstantiationPermissions()
|
|
| Method Summary | ||
|---|---|---|
|
authorize(Class<T> componentClass,
Roles rolesToAdd)
Gives the given role permission to instantiate the given class. |
|
|
authorizeAll(Class<T> componentClass)
Gives all roles permission to instantiate the given class. |
|
|
authorizedRoles(Class<T> componentClass)
Gets the roles that have a binding with the given component class. |
|
protected Map<Class<? extends Component>,Roles> |
getRolesForComponentClass()
|
|
|
unauthorize(Class<T> componentClass,
Roles rolesToRemove)
Removes permission for the given role to instantiate the given class. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InstantiationPermissions()
| Method Detail |
|---|
public final <T extends Component> void authorize(Class<T> componentClass,
Roles rolesToAdd)
T - componentClass - The component classrolesToAdd - The roles to addpublic final <T extends Component> void authorizeAll(Class<T> componentClass)
T - componentClass - The component classpublic <T extends IRequestableComponent> Roles authorizedRoles(Class<T> componentClass)
T - componentClass - the component class
public final <T extends Component> void unauthorize(Class<T> componentClass,
Roles rolesToRemove)
T - componentClass - The classrolesToRemove - The role to denyprotected final Map<Class<? extends Component>,Roles> getRolesForComponentClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||