Package org.springframework.webflow.security

Examples of org.springframework.webflow.security.SecurityRule


    }
  }

  private void parseAndPutSecured(SecuredModel secured, MutableAttributeMap<Object> attributes) {
    if (secured != null) {
      SecurityRule rule = new SecurityRule();
      rule.setAttributes(SecurityRule.commaDelimitedListToSecurityAttributes(secured.getAttributes()));
      String comparisonType = secured.getMatch();
      if ("any".equals(comparisonType)) {
        rule.setComparisonType(SecurityRule.COMPARISON_ANY);
      } else if ("all".equals(comparisonType)) {
        rule.setComparisonType(SecurityRule.COMPARISON_ALL);
      } else {
        // default to any
        rule.setComparisonType(SecurityRule.COMPARISON_ANY);
      }
      attributes.put(SecurityRule.SECURITY_ATTRIBUTE_NAME, rule);
    }
  }
View Full Code Here

TOP

Related Classes of org.springframework.webflow.security.SecurityRule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.