|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.server.core.ReferralManagerImpl
public class ReferralManagerImpl
Implement a referral Manager, handling the requests from the LDAP protocol.
Referrals are stored in a tree, where leaves are the referrals. We are using
the very same structure than for the partition manager.
| Constructor Summary | |
|---|---|
ReferralManagerImpl(DirectoryService directoryService)
Creates a new instance of ReferralManagerImpl. |
|
| Method Summary | |
|---|---|
void |
addReferral(org.apache.directory.shared.ldap.entry.ServerEntry entry)
|
org.apache.directory.shared.ldap.entry.ServerEntry |
getParentReferral(org.apache.directory.shared.ldap.name.DN dn)
|
boolean |
hasParentReferral(org.apache.directory.shared.ldap.name.DN dn)
|
void |
init(DirectoryService directoryService,
java.lang.String... suffixes)
|
boolean |
isReferral(org.apache.directory.shared.ldap.name.DN dn)
|
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)
|
void |
removeReferral(org.apache.directory.shared.ldap.entry.ServerEntry entry)
|
void |
unlock()
Release the read-write lock on the referralManager. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReferralManagerImpl(DirectoryService directoryService)
throws java.lang.Exception
directoryService - The directory service
java.lang.Exception - If we can't initialize the manager| Method Detail |
|---|
public void lockRead()
lockRead in interface ReferralManagerpublic void lockWrite()
lockWrite in interface ReferralManagerpublic void unlock()
unlock in interface ReferralManagerpublic void addReferral(org.apache.directory.shared.ldap.entry.ServerEntry entry)
addReferral in interface ReferralManager
public void init(DirectoryService directoryService,
java.lang.String... suffixes)
throws java.lang.Exception
init in interface ReferralManagerjava.lang.Exception
public void remove(DirectoryService directoryService,
org.apache.directory.shared.ldap.name.DN suffix)
throws java.lang.Exception
remove in interface ReferralManagerjava.lang.Exceptionpublic boolean hasParentReferral(org.apache.directory.shared.ldap.name.DN dn)
hasParentReferral in interface ReferralManagerpublic org.apache.directory.shared.ldap.entry.ServerEntry getParentReferral(org.apache.directory.shared.ldap.name.DN dn)
getParentReferral in interface ReferralManagerpublic boolean isReferral(org.apache.directory.shared.ldap.name.DN dn)
isReferral in interface ReferralManagerpublic void removeReferral(org.apache.directory.shared.ldap.entry.ServerEntry entry)
removeReferral in interface ReferralManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||