public abstract class AbstractSecurityCheck extends Object implements ISecurityCheck
ISecurityCheck,
Serialized Form| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSecurityCheck()
Noop constructor for Serialization.
|
| Modifier and Type | Method and Description |
|---|---|
protected ActionFactory |
getActionFactory()
Utility method to get the factory to create
WaspActions. |
protected Class<? extends org.apache.wicket.Page> |
getLoginPage()
Utility method to get the class of the loginpage.
|
protected WaspAuthorizationStrategy |
getStrategy()
Utility method to get to the
WaspAuthorizationStrategy. |
boolean |
isActionAuthorized(Class<? extends WaspAction> waspAction)
Shortcut to
ISecurityCheck.isActionAuthorized(WaspAction) if you quickly want to
check an action. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisActionAuthorized, isAuthenticatedprotected AbstractSecurityCheck()
protected ActionFactory getActionFactory()
WaspActions.WaspApplication.getActionFactory()protected WaspAuthorizationStrategy getStrategy()
WaspAuthorizationStrategy.WaspSession.getAuthorizationStrategy()protected final Class<? extends org.apache.wicket.Page> getLoginPage()
WaspApplication.getLoginPage()public boolean isActionAuthorized(Class<? extends WaspAction> waspAction)
ISecurityCheck.isActionAuthorized(WaspAction) if you quickly want to
check an action. Note that this is the same as doing something like
check.isActionAuthorized(((WaspApplication)Application.get()).getActionFactory().getAction(Render.class));
waspAction - org.apache.wicket.WicketRuntimeException - if the class is not an instance of WaspActionCopyright © 2015. All rights reserved.