public interface ReferralManager
Modifier and Type | Method and Description |
---|---|
void |
addReferral(org.apache.directory.api.ldap.model.entry.Entry entry)
Add a referral to the manager.
|
org.apache.directory.api.ldap.model.entry.Entry |
getParentReferral(org.apache.directory.api.ldap.model.name.Dn dn)
Get the Dn of the parent referral for a specific Dn
|
boolean |
hasParentReferral(org.apache.directory.api.ldap.model.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.api.ldap.model.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.api.ldap.model.name.Dn suffixes)
Remove a partition from the manager, reading all the referrals from the base.
|
void |
removeReferral(org.apache.directory.api.ldap.model.entry.Entry 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.api.ldap.model.name.Dn dn)
dn
- The entry's Dn we want to checktrue
if the Dn is associated with a referralboolean hasParentReferral(org.apache.directory.api.ldap.model.name.Dn dn)
dn
- The Dn we want to check for a referral in its partentstrue
if there is a parent referralorg.apache.directory.api.ldap.model.entry.Entry getParentReferral(org.apache.directory.api.ldap.model.name.Dn dn)
dn
- The Dn from which we want to get the parent referralvoid addReferral(org.apache.directory.api.ldap.model.entry.Entry entry)
entry
- The referral to addvoid removeReferral(org.apache.directory.api.ldap.model.entry.Entry entry) throws org.apache.directory.api.ldap.model.exception.LdapException
entry
- The referral to removeorg.apache.directory.api.ldap.model.exception.LdapException
- If the referal can't be removedvoid init(DirectoryService directoryService, String... suffixes) throws Exception
directoryService
- The associated LDAP servicesuffixes
- The partition listException
- If the initialization failedvoid remove(DirectoryService directoryService, org.apache.directory.api.ldap.model.name.Dn suffixes) throws Exception
directoryService
- The associated LDAP servicesuffixes
- The partition Dn to removeException
- If the removal failedCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.