public abstract class ComponentAuthorizationStrategy extends Object implements org.apache.wicket.authorization.IAuthorizationStrategy
| Constructor and Description |
|---|
ComponentAuthorizationStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isActionAuthorized(org.apache.wicket.Component component,
org.apache.wicket.authorization.Action action) |
protected abstract boolean |
isEditable(org.apache.wicket.Component component)
Checks if the given component is editable.
|
<T extends org.apache.wicket.request.component.IRequestableComponent> |
isInstantiationAuthorized(Class<T> componentClass) |
protected abstract boolean |
isRenderable(org.apache.wicket.Component component)
Checks if the given component is renderable.
|
protected abstract <T extends org.apache.wicket.request.component.IRequestableComponent> |
onInstantiationAuthorized(Class<T> componentClass)
This callback method is invoked at the end of the method
isInstantiationAuthorized(Class). |
public boolean isActionAuthorized(org.apache.wicket.Component component,
org.apache.wicket.authorization.Action action)
isActionAuthorized in interface org.apache.wicket.authorization.IAuthorizationStrategyprotected abstract boolean isEditable(org.apache.wicket.Component component)
component - the componentpublic <T extends org.apache.wicket.request.component.IRequestableComponent> boolean isInstantiationAuthorized(Class<T> componentClass)
isInstantiationAuthorized in interface org.apache.wicket.authorization.IAuthorizationStrategyprotected abstract boolean isRenderable(org.apache.wicket.Component component)
component - the componentprotected abstract <T extends org.apache.wicket.request.component.IRequestableComponent> boolean onInstantiationAuthorized(Class<T> componentClass)
isInstantiationAuthorized(Class). Here you can call
special Authorization logic.T - the generic typecomponentClass - the component classCopyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.