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
 String getLabel(Method method, Object arg)
          Get the actual label associated with the argument.
 boolean isLabeled(Method method, Object arg)
          Evaluate if one particular argument is labeled.
 

Method Detail

getLabel

String getLabel(Method method,
                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(Method method,
                  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