Examples of LdapReferralException


Examples of org.apache.directory.shared.ldap.model.exception.LdapReferralException

                {
                    // Throw a Referral Exception
                    // Unlock the referral manager
                    directoryService.getReferralManager().unlock();

                    LdapReferralException exception = buildReferralExceptionForSearch( parentEntry, childDn,
                        searchContext.getScope() );
                    throw exception;
                }
            }
            else if ( directoryService.getReferralManager().hasParentReferral( dn ) )
            {
                // We can't search an entry which has an ancestor referral

                // Depending on the Context.REFERRAL property value, we will throw
                // a different exception.
                if ( searchContext.isReferralIgnored() )
                {
                    directoryService.getReferralManager().unlock();

                    LdapPartialResultException exception = buildLdapPartialResultException( childDn );
                    throw exception;
                }
                else
                {
                    // Unlock the referral manager
                    directoryService.getReferralManager().unlock();

                    LdapReferralException exception = buildReferralExceptionForSearch( parentEntry, childDn,
                        searchContext.getScope() );
                    throw exception;
                }
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.