Class SecurityRule
java.lang.Object
org.springframework.statemachine.security.SecurityRule
Encapsulates the rules for comparing security attributes and expression.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumSecurity comparison types.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Collection<String>commaDelimitedListToSecurityAttributes(String attributes) Convert attributes from comma separated String to CollectionGets the security attributes.Gets the comparison type.Gets the security expression.static StringsecurityAttributesToCommaDelimitedList(Collection<?> attributes) Convert attributes to comma separated StringvoidsetAttributes(Collection<String> attributes) Sets the security attributes.voidsetComparisonType(SecurityRule.ComparisonType comparisonType) Sets the comparison type.voidsetExpression(String expression) Sets the security expression.toString()
- 
Constructor Details- 
SecurityRulepublic SecurityRule()
 
- 
- 
Method Details- 
securityAttributesToCommaDelimitedListConvert attributes to comma separated String- Parameters:
- attributes- the attributes to convert
- Returns:
- comma separated String
 
- 
commaDelimitedListToSecurityAttributesConvert attributes from comma separated String to Collection- Parameters:
- attributes- the attributes to convert
- Returns:
- comma parsed Collection
 
- 
getAttributesGets the security attributes.- Returns:
- the security attributes
 
- 
setAttributesSets the security attributes.- Parameters:
- attributes- the new security attributes
 
- 
getComparisonTypeGets the comparison type.- Returns:
- the comparison type
 
- 
setComparisonTypeSets the comparison type.- Parameters:
- comparisonType- the new comparison type
 
- 
getExpressionGets the security expression.- Returns:
- the security expression
 
- 
setExpressionSets the security expression.- Parameters:
- expression- the new security expression
 
- 
toString
 
-