org.springframework.security.access.vote
Interface LabelParameterStrategy

All Known Implementing Classes:
InterfaceBasedLabelParameterStrategy

public interface LabelParameterStrategy

This is a strategy interface for determining which parts of a method invocation are labeled. Not all arguments are necessarily labeled. This offers a plugabble mechanism to define various ways to label data.


Method Summary
 java.lang.String getLabel(java.lang.reflect.Method method, java.lang.Object arg)
          Get the actual label associated with the argument.
 boolean isLabeled(java.lang.reflect.Method method, java.lang.Object arg)
          Evaluate if one particular argument is labeled.
 

Method Detail

getLabel

java.lang.String getLabel(java.lang.reflect.Method method,
                          java.lang.Object arg)
Get the actual label associated with the argument. NOTE: This currently only supports one label per argument.

Parameters:
method -
arg -
Returns:
string value of the label

isLabeled

boolean isLabeled(java.lang.reflect.Method method,
                  java.lang.Object arg)
Evaluate if one particular argument is labeled. The context of the method is also provided should that have bearing on the label.

Parameters:
method -
arg -
Returns:
boolean