|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.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 | |
|---|---|
void |
authorize(java.lang.Class<? extends org.apache.wicket.Component> componentClass,
Roles rolesToAdd)
Gives the given role permission to instantiate the given class. |
void |
authorizeAll(java.lang.Class<? extends org.apache.wicket.Component> componentClass)
Gives all roles permission to instantiate the given class. |
Roles |
authorizedRoles(java.lang.Class<? extends org.apache.wicket.Component> componentClass)
Gets the roles that have a binding with the given component class. |
protected java.util.Map<java.lang.Class<? extends org.apache.wicket.Component>,Roles> |
getRolesForComponentClass()
|
void |
unauthorize(java.lang.Class<? extends org.apache.wicket.Component> 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 void authorize(java.lang.Class<? extends org.apache.wicket.Component> componentClass,
Roles rolesToAdd)
componentClass - The component classrolesToAdd - The roles to addpublic final void authorizeAll(java.lang.Class<? extends org.apache.wicket.Component> componentClass)
componentClass - The component classpublic Roles authorizedRoles(java.lang.Class<? extends org.apache.wicket.Component> componentClass)
componentClass - the component class
public final void unauthorize(java.lang.Class<? extends org.apache.wicket.Component> componentClass,
Roles rolesToRemove)
componentClass - The classrolesToRemove - The role to denyprotected final java.util.Map<java.lang.Class<? extends org.apache.wicket.Component>,Roles> getRolesForComponentClass()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||