org.opends.server.authorization.dseecompat
Class TargetControl

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

public class TargetControl
extends java.lang.Object

This class represents an ACI's targetcontrol keyword.


Method Summary
static TargetControl decode(EnumTargetOperator operator, java.lang.String expr)
          Decode an targetcontrol expression string.
 boolean isApplicable(AciTargetMatchContext matchCtx)
          Check if a targetcontrol is applicable based on the provided target match context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

decode

public static TargetControl decode(EnumTargetOperator operator,
                                   java.lang.String expr)
                            throws AciException
Decode an targetcontrol expression string.

Parameters:
operator - An enumeration representing the operator type.
expr - A string representing the targetcontrol expression.
Returns:
A class representing the targetcontrol expression that can be used to evaluate an ACI.
Throws:
AciException - If the specified expression string is invalid.

isApplicable

public boolean isApplicable(AciTargetMatchContext matchCtx)
Check if a targetcontrol is applicable based on the provided target match context.

Parameters:
matchCtx - The target match context to use in the check.
Returns:
True if the targetcontrol is applicable based on the context.