public abstract class AbstractSecurityCheck extends Object implements ISecurityCheck
ISecurityCheck
,
Serialized FormModifier | 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
WaspAction s. |
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, wait
isActionAuthorized, isAuthenticated
protected AbstractSecurityCheck()
protected ActionFactory getActionFactory()
WaspAction
s.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 WaspAction
Copyright © 2015. All rights reserved.