|
||||||||||
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)
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. |
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 managerMethod Detail |
---|
public void lockRead()
lockRead
in interface ReferralManager
public void lockWrite()
lockWrite
in interface ReferralManager
public void unlock()
unlock
in interface ReferralManager
public 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 ReferralManager
directoryService
- The associated LDAP servicesuffixes
- The partition list
java.lang.Exception
public void remove(DirectoryService directoryService, org.apache.directory.shared.ldap.name.DN suffix) throws java.lang.Exception
remove
in interface ReferralManager
directoryService
- The associated LDAP service
java.lang.Exception
public boolean hasParentReferral(org.apache.directory.shared.ldap.name.DN dn)
hasParentReferral
in interface ReferralManager
dn
- The DN we want to check for a referral in its partents
true
if there is a parent referralpublic org.apache.directory.shared.ldap.entry.ServerEntry getParentReferral(org.apache.directory.shared.ldap.name.DN dn)
getParentReferral
in interface ReferralManager
dn
- The DN from which we want to get the parent referral
public boolean isReferral(org.apache.directory.shared.ldap.name.DN dn)
isReferral
in interface ReferralManager
dn
- The entry's DN we want to check
true
if the DN is associated with a referralpublic 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 |