Class SubtreeSpecificationModifier

java.lang.Object
org.apache.directory.api.ldap.model.subtree.SubtreeSpecificationModifier

public class SubtreeSpecificationModifier extends Object
SubtreeSpecification contains no setters so they must be built by a modifiable object containing all the necessary parameters to build the base object.
Author:
Apache Directory Project
  • Constructor Details

    • SubtreeSpecificationModifier

      public SubtreeSpecificationModifier()
  • Method Details

    • getSubtreeSpecification

      public SubtreeSpecification getSubtreeSpecification()
      Creates a SubtreeSpecification using any of the default paramters that may have been modified from their defaults.
      Returns:
      the newly created subtree specification
    • setBase

      public void setBase(Dn base)
      Sets the subtree base relative to the administration point.
      Parameters:
      base - subtree base relative to the administration point
    • setChopBeforeExclusions

      public void setChopBeforeExclusions(Set<Dn> chopBeforeExclusions)
      Sets the set of subordinates entries and their subordinates to exclude.
      Parameters:
      chopBeforeExclusions - the set of subordinates entries and their subordinates to exclude
    • addChopBeforeExclusions

      public void addChopBeforeExclusions(Dn chopBeforeExclusion)
      Add a subordinate entries and its subordinate to exclude.
      Parameters:
      chopBeforeExclusion - the subordinate entry and its subordinate to exclude
    • setChopAfterExclusions

      public void setChopAfterExclusions(Set<Dn> chopAfterExclusions)
      Sets the set of subordinates entries whose subordinates are to be excluded.
      Parameters:
      chopAfterExclusions - the set of subordinates entries whose subordinates are to be excluded
    • addChopAfterExclusions

      public void addChopAfterExclusions(Dn chopAfterExclusion)
      Add a subordinate entries and its subordinate to exclude.
      Parameters:
      chopAfterExclusion - the subordinate entry and its subordinate to exclude
    • setMinBaseDistance

      public void setMinBaseDistance(int minBaseDistance)
      Sets the minimum distance below base to start including entries.
      Parameters:
      minBaseDistance - the minimum distance below base to start including entries
    • setMaxBaseDistance

      public void setMaxBaseDistance(int maxBaseDistance)
      Sets the maximum distance from base past which entries are excluded.
      Parameters:
      maxBaseDistance - the maximum distance from base past which entries are excluded
    • setRefinement

      public void setRefinement(ExprNode refinement)
      Sets a filter using only assertions on objectClass attributes for subtree refinement.
      Parameters:
      refinement - a filter using only assertions on objectClass attributes for subtree refinement
    • setFilter

      public void setFilter(ExprNode filter)
      Sets a filter
      Parameters:
      filter - a filter