Class NumSubordinateHacker
- java.lang.Object
-
- org.opends.guitools.controlpanel.util.NumSubordinateHacker
-
public class NumSubordinateHacker extends Object
Class used to handle the case where numsubordinates does not work between databases.
-
-
Constructor Summary
Constructors Constructor Description NumSubordinateHacker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontains(LDAPURL url)Tells whether the list of unreliable contains the entry with LDAPURL url.booleancontainsChildrenOf(LDAPURL parentUrl)Tells whether the list of unreliable contains children of the entry with LDAPUrl parentUrl.voidupdate(Collection<DN> allSuffixes, Collection<DN> rootSuffixes, String serverHost, int serverPort)This method construct a list with the entries the entries that are parents of the suffix entries.
-
-
-
Method Detail
-
containsChildrenOf
public boolean containsChildrenOf(LDAPURL parentUrl)
Tells whether the list of unreliable contains children of the entry with LDAPUrl parentUrl.- Parameters:
parentUrl- the LDAPURL of the parent.- Returns:
trueif the list of unreliable entries contains a children of the parentUrl. Returnsfalseotherwise.
-
contains
public boolean contains(LDAPURL url)
Tells whether the list of unreliable contains the entry with LDAPURL url. It assumes that we previously called containsChildrenOf (there's no check of the host/port).- Parameters:
url- the LDAPURL of the parent.- Returns:
trueif the url correspond to an unreliable entry andfalseotherwise.
-
update
public void update(Collection<DN> allSuffixes, Collection<DN> rootSuffixes, String serverHost, int serverPort)
This method construct a list with the entries the entries that are parents of the suffix entries. This list is needed to overpass the fact that numsubordinates does not work between databases.- Parameters:
allSuffixes- a collection with all the suffixes.rootSuffixes- a collection with the root suffixes.serverHost- the name of the host where the server is installed.serverPort- the LDAP(s) port of the server.
-
-