Class Target
- java.lang.Object
-
- org.opends.server.authorization.dseecompat.Target
-
public final class Target extends Object
A class representing an ACI target keyword.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Target
decode(EnumTargetOperator operator, String expr, Dn aciDN)
Decode an expression string representing a target keyword expression.Dn
getDN()
Returns the URL DN of the expression.EnumTargetOperator
getOperator()
Returns the operator of this expression.boolean
isPattern()
Returns boolean if a pattern was seen during parsing.boolean
matchesPattern(Dn dn, Schema schema)
This method tries to match a pattern against a DN.
-
-
-
Method Detail
-
decode
public static Target decode(EnumTargetOperator operator, String expr, Dn aciDN) throws AciException
Decode an expression string representing a target keyword expression.- Parameters:
operator
- An enumeration of the operation of this target.expr
- A string representation of the target.aciDN
- The DN of the ACI entry used for a descendant check.- Returns:
- A Target class representing this target.
- Throws:
AciException
- If the expression string is invalid.
-
getOperator
public EnumTargetOperator getOperator()
Returns the operator of this expression.- Returns:
- An enumeration of the operation value.
-
getDN
public Dn getDN()
Returns the URL DN of the expression.- Returns:
- A DN of the URL or null if the URL contained a DN pattern.
-
isPattern
public boolean isPattern()
Returns boolean if a pattern was seen during parsing.- Returns:
- True if the URL contained a DN pattern.
-
-