com.cafesoft.cams.oblig
Class AcrEvaluationResultMatch

java.lang.Object
  |
  +--com.cafesoft.cams.oblig.AcrEvaluationResultMatch
All Implemented Interfaces:
EvaluationResultMatch

public final class AcrEvaluationResultMatch
extends Object
implements EvaluationResultMatch

AcrEvaluationResultMatch is the implementation of EvaluationResultMatch for matching AccessControlRule EvaluationResult instances.

Since:
11/03/2004

Field Summary
static int EVALUATION_EXCEPTION_RETURN_VALUE
          The result pattern representing an EvaluationException thrown from an evaluated AccessControlRule.
static int FALSE_RETURN_VALUE
          The result pattern representing a false return value from an evaluated AccessControlRule.
static int NOT_APPLICABLE_REASON_CODE
          The reason pattern indicating that a reason code is not applicable because the AccessControlRule returned a true or false value.
static int TRUE_OR_FALSE_RETURN_VALUE
          The result pattern representing a true or false return value from an evaluated AccessControlRule.
static int TRUE_RETURN_VALUE
          The result pattern representing a true return value from an evaluated AccessControlRule.
 
Fields inherited from interface com.cafesoft.cams.oblig.EvaluationResultMatch
ANY_REASON_CODE
 
Constructor Summary
AcrEvaluationResultMatch(int returnValuePattern, int reason)
          Create a new AcrEvaluationResultMatch object.
 
Method Summary
 boolean matches(EvaluationResult evalResult)
          Returns true if a boolean AccessControlRule return value matches the return value pattern specified by this EvaluationResultMatch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FALSE_RETURN_VALUE

public static final int FALSE_RETURN_VALUE
The result pattern representing a false return value from an evaluated AccessControlRule.

See Also:
Constant Field Values

TRUE_RETURN_VALUE

public static final int TRUE_RETURN_VALUE
The result pattern representing a true return value from an evaluated AccessControlRule.

See Also:
Constant Field Values

TRUE_OR_FALSE_RETURN_VALUE

public static final int TRUE_OR_FALSE_RETURN_VALUE
The result pattern representing a true or false return value from an evaluated AccessControlRule.

See Also:
Constant Field Values

EVALUATION_EXCEPTION_RETURN_VALUE

public static final int EVALUATION_EXCEPTION_RETURN_VALUE
The result pattern representing an EvaluationException thrown from an evaluated AccessControlRule.

See Also:
Constant Field Values

NOT_APPLICABLE_REASON_CODE

public static final int NOT_APPLICABLE_REASON_CODE
The reason pattern indicating that a reason code is not applicable because the AccessControlRule returned a true or false value.

See Also:
Constant Field Values
Constructor Detail

AcrEvaluationResultMatch

public AcrEvaluationResultMatch(int returnValuePattern,
                                int reason)
Create a new AcrEvaluationResultMatch object.

Parameters:
returnValuePattern - the return value pattern used to match AccessControlRule return values.
reason - the EvaluationException reason to be matched. Use NOT_APPLICABLE_REASON_CODE if returnValuePattern is not EVALUATION_EXCEPTION_RETURN_VALUE.
Method Detail

matches

public boolean matches(EvaluationResult evalResult)
Returns true if a boolean AccessControlRule return value matches the return value pattern specified by this EvaluationResultMatch.

Specified by:
matches in interface EvaluationResultMatch
Parameters:
evalResult - the result of a security component evaluation.
Returns:
true if a match, else false.


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.