org.opends.server.authorization.dseecompat
Class TargetFilter

java.lang.Object
  extended by org.opends.server.authorization.dseecompat.TargetFilter

public class TargetFilter
extends java.lang.Object

This class represents a targetfilter keyword of an aci.


Method Summary
static TargetFilter decode(EnumTargetOperator op, java.lang.String expr)
          Decode a aci's targetfilter string.
 boolean isApplicable(AciTargetMatchContext matchCtx)
          Checks if a targetfilter matches an evaluation context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static TargetFilter decode(EnumTargetOperator op,
                                  java.lang.String expr)
                           throws AciException
Decode a aci's targetfilter string.

Parameters:
op - The operation enumeration of the expression.
expr - A string representing the target filter.
Returns:
A TargetFilter class suitable for using in a match.
Throws:
AciException - If the expression string is invalid.

isApplicable

public boolean isApplicable(AciTargetMatchContext matchCtx)
Checks if a targetfilter matches an evaluation context.

Parameters:
matchCtx - The evaluation context to use in the matching.
Returns:
True if the target filter matched the context.