public interface ISecureModel<T>
extends org.apache.wicket.model.IModel<T>
WaspAuthorizationStrategy
, but it is not
unimaginable that models are targeted at specific wasp implementations and take care of there
authentication or authorization themself. Note authentication should rarely take place at the
model level.WaspAuthorizationStrategy
,
ISecurityCheck
Modifier and Type | Method and Description |
---|---|
boolean |
isAuthenticated(org.apache.wicket.Component component)
Checks if the user is authenticated for this model.
|
boolean |
isAuthorized(org.apache.wicket.Component component,
WaspAction action)
Checks if the component is authorized for this model.
|
boolean isAuthorized(org.apache.wicket.Component component, WaspAction action)
component
- the (owning) component of the model, some models might allow null.action
- WaspAuthorizationStrategy.isModelAuthorized(ISecureModel, Component, WaspAction)
boolean isAuthenticated(org.apache.wicket.Component component)
component
- the (owning) component of the model, some models might allow null.WaspAuthorizationStrategy.isModelAuthenticated(IModel, Component)
Copyright © 2015. All rights reserved.