}
}
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);
}
}