org.wicketstuff.security.swarm.models
Interface SwarmModel<T>
- All Superinterfaces:
- org.apache.wicket.util.io.IClusterable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<T>, org.wicketstuff.security.models.ISecureModel<T>, Serializable
- All Known Implementing Classes:
- SwarmCompoundPropertyModel, SwarmCompoundPropertyModel.AttachedSwarmCompoundPropertyModel
public interface SwarmModel<T>
- extends org.wicketstuff.security.models.ISecureModel<T>
A customized ISecureModel used to check DataPermissions. Note that although the
current implementation is required to work with ISecureModels, 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.
- Author:
- marrink
- See Also:
AbstractSwarmStrategy.isModelAuthorized(ISecureModel, Component,
org.wicketstuff.security.actions.WaspAction)
|
Method Summary |
String |
getSecurityId(org.apache.wicket.Component component)
Returns a string identifying this model for security purposes. |
| Methods inherited from interface org.wicketstuff.security.models.ISecureModel |
isAuthenticated, isAuthorized |
| Methods inherited from interface org.apache.wicket.model.IModel |
getObject, setObject |
| Methods inherited from interface org.apache.wicket.model.IDetachable |
detach |
getSecurityId
String getSecurityId(org.apache.wicket.Component component)
- Returns a string identifying this model for security purposes. This id is used as the name of
a
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.
- Parameters:
component - the component requesting the id
- Returns:
- a non null id
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.