Class TargetFilter
- java.lang.Object
-
- org.opends.server.authorization.dseecompat.TargetFilter
-
public final class TargetFilter extends Object
This class represents a targetfilter keyword of an aci.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetFilter
decode(EnumTargetOperator op, String expr)
Decode a aci's targetfilter string.boolean
isApplicable(AciTargetMatchContext matchCtx)
Checks if a targetfilter matches an evaluation context.
-
-
-
Method Detail
-
decode
public static TargetFilter decode(EnumTargetOperator op, 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.
-
-