|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ReferralManager
An interface for managing referrals in the server
| Method Summary | |
|---|---|
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,
java.lang.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. |
| Method Detail |
|---|
void lockRead()
void lockWrite()
void unlock()
boolean isReferral(org.apache.directory.shared.ldap.name.DN dn)
dn - The entry's DN we want to check
true 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 partents
true 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 referral
void 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 remove
void init(DirectoryService directoryService,
java.lang.String... suffixes)
throws java.lang.Exception
directoryService - The associated LDAP servicesuffixes - The partition list
If - the initialization failed
java.lang.Exception
void remove(DirectoryService directoryService,
org.apache.directory.shared.ldap.name.DN suffix)
throws java.lang.Exception
directoryService - The associated LDAP servicesuffixes - The partition DN to remove
If - the removal failed
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||