public interface ReferralManager
| Modifier and Type | Method and Description |
|---|---|
void |
addReferral(org.apache.directory.shared.ldap.entry.ServerEntry entry)
Add a referral to the manager.
|
org.apache.directory.shared.ldap.entry.ServerEntry |
getParentReferral(org.apache.directory.shared.ldap.name.DN dn)
Get the DN of the parent referral for a specific DN
|
boolean |
hasParentReferral(org.apache.directory.shared.ldap.name.DN dn)
Tells if this DN has a parent which is a referral.
|
void |
init(DirectoryService directoryService,
String... suffixes)
Initialize the manager, reading all the referrals from the base.
|
boolean |
isReferral(org.apache.directory.shared.ldap.name.DN dn)
Tells if a DN is a referral (its associated entry contains the Referral ObjectClass).
|
void |
lockRead()
Get a read-lock on the referralManager.
|
void |
lockWrite()
Get a write-lock on the referralManager.
|
void |
remove(DirectoryService directoryService,
org.apache.directory.shared.ldap.name.DN suffix)
Remove a partition from the manager, reading all the referrals from the base.
|
void |
removeReferral(org.apache.directory.shared.ldap.entry.ServerEntry entry)
Remove a referral from the manager.
|
void |
unlock()
Release the read-write lock on the referralManager.
|
void lockRead()
void lockWrite()
void unlock()
boolean isReferral(org.apache.directory.shared.ldap.name.DN dn)
dn - The entry's DN we want to checktrue if the DN is associated with a referralboolean hasParentReferral(org.apache.directory.shared.ldap.name.DN dn)
dn - The DN we want to check for a referral in its partentstrue if there is a parent referralorg.apache.directory.shared.ldap.entry.ServerEntry getParentReferral(org.apache.directory.shared.ldap.name.DN dn)
dn - The DN from which we want to get the parent referralvoid addReferral(org.apache.directory.shared.ldap.entry.ServerEntry entry)
dn - The referral to addvoid removeReferral(org.apache.directory.shared.ldap.entry.ServerEntry entry)
dn - The referral to removevoid init(DirectoryService directoryService, String... suffixes) throws Exception
directoryService - The associated LDAP servicesuffixes - The partition listIf - the initialization failedExceptionvoid remove(DirectoryService directoryService, org.apache.directory.shared.ldap.name.DN suffix) throws Exception
directoryService - The associated LDAP servicesuffixes - The partition DN to removeIf - the removal failedExceptionCopyright © 2003-2012 Apache Software Foundation. All Rights Reserved.