org.springframework.webflow.security
Class SecurityRule

java.lang.Object
  extended by org.springframework.webflow.security.SecurityRule

public class SecurityRule
extends Object

Encapsulates the rules for comparing security attributes

Author:
Scott Andrews

Field Summary
static short COMPARISON_ALL
          Compare method where all attribute authorization allows access
static short COMPARISON_ANY
          Compare method where any attribute authorization allows access
static String SECURITY_ATTRIBUTE_NAME
          Attribute name for the location of the security rule
 
Constructor Summary
SecurityRule()
           
 
Method Summary
static Collection commaDelimitedListToSecurityAttributes(String attributes)
          Convert attributes from comma separated String to Collection
 Collection getAttributes()
          Gets security attributes
 short getComparisonType()
          Gets comparison type
static String securityAttributesToCommaDelimitedList(Collection attributes)
          Convert attributes to comma separated String
 void setAttributes(Collection attributes)
          Sets security attributes
 void setComparisonType(short comparisonType)
          Sets comparison type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SECURITY_ATTRIBUTE_NAME

public static final String SECURITY_ATTRIBUTE_NAME
Attribute name for the location of the security rule

See Also:
Constant Field Values

COMPARISON_ANY

public static final short COMPARISON_ANY
Compare method where any attribute authorization allows access

See Also:
Constant Field Values

COMPARISON_ALL

public static final short COMPARISON_ALL
Compare method where all attribute authorization allows access

See Also:
Constant Field Values
Constructor Detail

SecurityRule

public SecurityRule()
Method Detail

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 commaDelimitedListToSecurityAttributes(String attributes)
Convert attributes from comma separated String to Collection

Parameters:
attributes - the attributes to convert
Returns:
comma parsed Collection

getAttributes

public Collection getAttributes()
Gets security attributes

Returns:
security attributes

setAttributes

public void setAttributes(Collection attributes)
Sets security attributes

Parameters:
attributes - security attributes

getComparisonType

public short getComparisonType()
Gets comparison type

Returns:
comparison type

setComparisonType

public void setComparisonType(short comparisonType)
Sets comparison type

Parameters:
comparisonType - comparison type