Class Target
java.lang.Object
org.opends.server.authorization.dseecompat.Target
A class representing an ACI target keyword.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Target
decode
(EnumTargetOperator operator, String expr, Dn aciDN) Decode an expression string representing a target keyword expression.getDN()
Returns the URL DN of the expression.Returns the operator of this expression.boolean
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 Details
-
decode
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
Returns the operator of this expression.- Returns:
- An enumeration of the operation value.
-
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.
-
matchesPattern
This method tries to match a pattern against a DN.- Parameters:
dn
- The DN to try an match.schema
- The schema- Returns:
- True if the pattern matches.
-