Package com.isode.dsapi.aci
Class ACISubtreeSpec
java.lang.Object
com.isode.dsapi.aci.ACISubtreeSpec
- All Implemented Interfaces:
Serializable
,Comparable<ACISubtreeSpec>
Cut-down subtree specification used by access-control: i.e. no
refinements permitted (see X.501: 18.4.2.4 c). This is immutable.
It is only used for the case where users are specified using a
subtree spec instead of a group DN or user DN.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal DN
Base of subtree.Chop after list (never null).Chop before list (never null).final int
Maximum depth, or -1 for infinite.final int
Minimum depth, or 0 for all. -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a blank SubtreeSpec.Construct SubtreeSpec from a BAC.SubtreeSpecification.Make a deep copy of a SubtreeSpec.Construct a SubtreeSpec from components. -
Method Summary
-
Field Details
-
base
Base of subtree. -
min
public final int minMinimum depth, or 0 for all. -
max
public final int maxMaximum depth, or -1 for infinite. -
chop_before
Chop before list (never null). -
chop_after
Chop after list (never null).
-
-
Constructor Details
-
ACISubtreeSpec
public ACISubtreeSpec()Construct a blank SubtreeSpec. -
ACISubtreeSpec
public ACISubtreeSpec(DN base, int min, int max, List<DN> chop_before, List<DN> chop_after) throws BadValueException Construct a SubtreeSpec from components.- Throws:
BadValueException
-
ACISubtreeSpec
Construct SubtreeSpec from a BAC.SubtreeSpecification. 'specificationFilter' is ignored, as specified in X.501 18.4.2.4 (c). Chop DNs are converted from the relative form as stored, into full DNs.- Throws:
BadDNException
-
ACISubtreeSpec
Make a deep copy of a SubtreeSpec.
-
-
Method Details
-
dup
Duplicate a SubtreeSpec (deep copy). -
equals
Test for equality. -
compareTo
Compare according to DN order of base DN.- Specified by:
compareTo
in interfaceComparable<ACISubtreeSpec>
-
hashCode
public int hashCode()Hashcode. -
toString
Debugging string.
-