Class SecurityRule

java.lang.Object
org.springframework.statemachine.security.SecurityRule

public class SecurityRule extends Object
Encapsulates the rules for comparing security attributes and expression.
  • Constructor Details

    • SecurityRule

      public SecurityRule()
  • Method Details

    • securityAttributesToCommaDelimitedList

      public static String securityAttributesToCommaDelimitedList(Collection<?> attributes)
      Convert attributes to comma separated String
      Parameters:
      attributes - the attributes to convert
      Returns:
      comma separated String
    • commaDelimitedListToSecurityAttributes

      public static Collection<String> commaDelimitedListToSecurityAttributes(String attributes)
      Convert attributes from comma separated String to Collection
      Parameters:
      attributes - the attributes to convert
      Returns:
      comma parsed Collection
    • getAttributes

      public Collection<String> getAttributes()
      Gets the security attributes.
      Returns:
      the security attributes
    • setAttributes

      public void setAttributes(Collection<String> attributes)
      Sets the security attributes.
      Parameters:
      attributes - the new security attributes
    • getComparisonType

      public SecurityRule.ComparisonType getComparisonType()
      Gets the comparison type.
      Returns:
      the comparison type
    • setComparisonType

      public void setComparisonType(SecurityRule.ComparisonType comparisonType)
      Sets the comparison type.
      Parameters:
      comparisonType - the new comparison type
    • getExpression

      public String getExpression()
      Gets the security expression.
      Returns:
      the security expression
    • setExpression

      public void setExpression(String expression)
      Sets the security expression.
      Parameters:
      expression - the new security expression
    • toString

      public String toString()
      Overrides:
      toString in class Object