Class Aci
java.lang.Object
org.opends.server.authorization.dseecompat.Aci
- All Implemented Interfaces:
Comparable<Aci>
The Aci class represents ACI strings.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintCompares this Aci with the provided Aci based on a natural order.static Acidecode(String aciString, Dn dn, ServerContext serverContext) Decode an ACI byte string.getDN()Returns the DN of the entry containing the ACI.getName()Returns the name string of this ACI.Returns the targets of the ACI.toString()Return the string representation of the ACI.
-
Field Details
-
SUPPORTED_VERSION
-
-
Method Details
-
decode
Decode an ACI byte string.- Parameters:
aciString- the ACI string.dn- DN of the ACI entry.serverContext- the server context- Returns:
- Returns a decoded ACI representing the string argument.
- Throws:
AciException- If the parsing of the ACI string fails.
-
toString
-
getTargets
Returns the targets of the ACI.- Returns:
- Any AciTargets of the ACI. There may be no targets so this might be null.
-
getDN
Returns the DN of the entry containing the ACI.- Returns:
- the DN of the entry containing the ACI
-
getName
-
compareTo
Compares this Aci with the provided Aci based on a natural order. This order will be first hierarchical (ancestors will come before descendants) and then alphabetical by attribute name(s) and value(s).- Specified by:
compareToin interfaceComparable<Aci>- Parameters:
aci- The Aci against which to compare this Aci.- Returns:
- A negative integer if this Aci should come before the provided Aci, a positive integer if this Aci should come after the provided Aci, or zero if there is no difference with regard to ordering.
-