Class SecuredModel

java.lang.Object
org.springframework.webflow.engine.model.AbstractModel
org.springframework.webflow.engine.model.SecuredModel
All Implemented Interfaces:
Model

public class SecuredModel extends AbstractModel
Model support for secured elements.

Secures a flow, state or transition. The user invoking this element must meet the required attributes otherwise access will be denied.

Warning: This model will only configure a security attribute in the definition. The flow execution must also be secured with a SecurityFlowExecutionListener.

Author:
Scott Andrews
See Also:
  • Constructor Details

    • SecuredModel

      public SecuredModel(String attributes)
      Create a security settings model
      Parameters:
      attributes - the security attributes
  • Method Details

    • isMergeableWith

      public boolean isMergeableWith(Model model)
      Description copied from interface: Model
      Determine if the model is able to be merged into the current model
      Parameters:
      model - the model to compare
      Returns:
      true if able to merge
    • merge

      public void merge(Model model)
      Description copied from interface: Model
      Merge the model into the current model
      Parameters:
      model - the model to merge with
    • createCopy

      public Model createCopy()
      Description copied from interface: Model
      Create a deep copy of this model. Needed when merging models and collections.
      Returns:
      a deep copy of this model
    • getAttributes

      public String getAttributes()
      Returns:
      the attributes
    • setAttributes

      public void setAttributes(String attributes)
      Parameters:
      attributes - the attributes to set
    • getMatch

      public String getMatch()
      Returns:
      the match
    • setMatch

      public void setMatch(String match)
      Parameters:
      match - the match to set