Class SubtreeSpecificationModifier
java.lang.Object
org.apache.directory.api.ldap.model.subtree.SubtreeSpecificationModifier
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChopAfterExclusions(Dn chopAfterExclusion) Add a subordinate entries and its subordinate to exclude.voidaddChopBeforeExclusions(Dn chopBeforeExclusion) Add a subordinate entries and its subordinate to exclude.Creates a SubtreeSpecification using any of the default paramters that may have been modified from their defaults.voidSets the subtree base relative to the administration point.voidsetChopAfterExclusions(Set<Dn> chopAfterExclusions) Sets the set of subordinates entries whose subordinates are to be excluded.voidsetChopBeforeExclusions(Set<Dn> chopBeforeExclusions) Sets the set of subordinates entries and their subordinates to exclude.voidSets a filtervoidsetMaxBaseDistance(int maxBaseDistance) Sets the maximum distance from base past which entries are excluded.voidsetMinBaseDistance(int minBaseDistance) Sets the minimum distance below base to start including entries.voidsetRefinement(ExprNode refinement) Sets a filter using only assertions on objectClass attributes for subtree refinement.
-
Constructor Details
-
SubtreeSpecificationModifier
public SubtreeSpecificationModifier()
-
-
Method Details
-
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
Sets the subtree base relative to the administration point.- Parameters:
base- subtree base relative to the administration point
-
setChopBeforeExclusions
-
addChopBeforeExclusions
Add a subordinate entries and its subordinate to exclude.- Parameters:
chopBeforeExclusion- the subordinate entry and its subordinate to exclude
-
setChopAfterExclusions
-
addChopAfterExclusions
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
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
-