org.wicketstuff.security.swarm.models
Class SwarmCompoundPropertyModel.AttachedSwarmCompoundPropertyModel<Y>

java.lang.Object
  extended by org.apache.wicket.model.ChainingModel<T>
      extended by org.apache.wicket.model.AbstractPropertyModel<Y>
          extended by org.wicketstuff.security.swarm.models.SwarmCompoundPropertyModel.AttachedSwarmCompoundPropertyModel<Y>
All Implemented Interfaces:
Serializable, org.apache.wicket.model.IChainingModel<Y>, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<Y>, org.apache.wicket.model.IObjectClassAwareModel<Y>, org.apache.wicket.model.IPropertyReflectionAwareModel<Y>, org.apache.wicket.model.IWrapModel<Y>, org.apache.wicket.util.io.IClusterable, org.wicketstuff.security.models.ISecureModel<Y>, SwarmModel<Y>
Enclosing class:
SwarmCompoundPropertyModel<T>

protected class SwarmCompoundPropertyModel.AttachedSwarmCompoundPropertyModel<Y>
extends org.apache.wicket.model.AbstractPropertyModel<Y>
implements SwarmModel<Y>

A wrapping model delegating all security calls to the SwarmCompoundPropertyModel instance.

Author:
marrink
See Also:
Serialized Form

Constructor Summary
SwarmCompoundPropertyModel.AttachedSwarmCompoundPropertyModel(org.apache.wicket.Component owner)
          Construct.
 
Method Summary
 String getSecurityId(org.apache.wicket.Component component)
          Returns a string identifying this model for security purposes.
 
Methods inherited from class org.apache.wicket.model.AbstractPropertyModel
getInnermostModelOrObject, getObject, getObjectClass, getPropertyExpression, getPropertyField, getPropertyGetter, getPropertySetter, setObject
 
Methods inherited from class org.apache.wicket.model.ChainingModel
getChainedModel, getTarget, setChainedModel, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

SwarmCompoundPropertyModel.AttachedSwarmCompoundPropertyModel

public SwarmCompoundPropertyModel.AttachedSwarmCompoundPropertyModel(org.apache.wicket.Component owner)
Construct.

Parameters:
owner -
Method Detail

getSecurityId

public String getSecurityId(org.apache.wicket.Component component)
Description copied from interface: SwarmModel
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.

Specified by:
getSecurityId in interface SwarmModel<Y>
Parameters:
component - the component requesting the id
Returns:
a non null id
See Also:
SwarmModel.getSecurityId(org.apache.wicket.Component)


Copyright © 2006–2018 Apache Software Foundation. All rights reserved.