public abstract class AbstractPageAuthorizationStrategy extends IAuthorizationStrategy.AllowAllAuthorizationStrategy
isPageAuthorized(Class), which gets called for Page classes when they are being constructed.
|Constructor and Description|
|Modifier and Type||Method and Description|
Works like instanceof operator where instanceOf(a, b) is the runtime equivalent of (a instanceof b).
Checks whether an instance of the given component class may be created.
Whether to page may be created.
public final <T extends IRequestableComponent> boolean isInstantiationAuthorized(Class<T> componentClass)
IUnauthorizedComponentInstantiationListenerthat is configured in the
security settingswill be called. The default implementation of that listener throws a
If you wish to implement a strategy that authenticates users which cannot access a given Page
(or other Component), you can simply throw a
RestartResponseAtInterceptPageException in your implementation of
componentClass- The component class to check
type- The type to check
superType- The interface or superclass that the type needs to implement or extend
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.