Class Aci
java.lang.Object
org.opends.server.authorization.dseecompat.Aci
- All Implemented Interfaces:
Comparable<Aci>
The Aci class represents ACI strings.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Compares this Aci with the provided Aci based on a natural order.static Aci
decode
(String aciString, Dn dn, ServerContext serverContext) Decode an ACI byte string.getDN()
Return 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
Version that we support.- See Also:
-
-
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
Return the string representation of the ACI. This was the string that was used to create the Aci class. -
getTargets
Returns the targets of the ACI.- Returns:
- Any AciTargets of the ACI. There may be no targets so this might be null.
-
getDN
Return the DN of the entry containing the ACI.- Returns:
- The DN of the entry containing the ACI.
-
getName
Returns the name string of this ACI.- Returns:
- The name string.
-
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:
compareTo
in 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.
-