Class TargetControl
- java.lang.Object
-
- org.opends.server.authorization.dseecompat.TargetControl
-
public final class TargetControl extends Object
This class represents an ACI's targetcontrol keyword.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetControl
decode(EnumTargetOperator operator, String expr)
Decode an targetcontrol expression string.boolean
isApplicable(AciTargetMatchContext matchCtx)
Check if a targetcontrol is applicable based on the provided target match context.
-
-
-
Method Detail
-
decode
public static TargetControl decode(EnumTargetOperator operator, 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.
-
-