public interface SwarmModel<T> extends ISecureModel<T>
ISecureModel
used to check DataPermission
s. Note that although the
current implementation is required to work with ISecureModel
s, it is recommended to
implement SwarmModel instead as it allows you more control to specify a name for the permission.
If you do use a regular ISecureModel we fall back to the toString method.Modifier and Type | Method and Description |
---|---|
String |
getSecurityId(org.apache.wicket.Component component)
Returns a string identifying this model for security purposes.
|
isAuthenticated, isAuthorized
String getSecurityId(org.apache.wicket.Component component)
DataPermission
by
AbstractSwarmStrategy.isModelAuthorized(ISecureModel, Component, org.wicketstuff.security.actions.WaspAction)
And is therefore required to remain consistent or each invocation provided the same component
is used.component
- the component requesting the idCopyright © 2015. All rights reserved.