Class ACISubtreeSpec

java.lang.Object
com.isode.dsapi.aci.ACISubtreeSpec
All Implemented Interfaces:
Serializable, Comparable<ACISubtreeSpec>

public class ACISubtreeSpec extends Object implements 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 Details

    • base

      public final DN base
      Base of subtree.
    • min

      public final int min
      Minimum depth, or 0 for all.
    • max

      public final int max
      Maximum depth, or -1 for infinite.
    • chop_before

      public final List<DN> chop_before
      Chop before list (never null).
    • chop_after

      public final List<DN> 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

      public ACISubtreeSpec(BAC.SubtreeSpecification ss) throws BadDNException
      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

      public ACISubtreeSpec(ACISubtreeSpec old)
      Make a deep copy of a SubtreeSpec.
  • Method Details