Examples of LdapReferralException


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

                    // This is a referral. We can return it if the ManageDsaIt flag is true
                    // Otherwise, we just throw a LdapReferralException
                    if ( !searchContext.isReferralIgnored() )
                    {
                        // Throw a Referral Exception
                        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() )
                    {
                        LdapPartialResultException exception = buildLdapPartialResultException( childDn );
                        throw exception;
                    }
                    else
                    {
                        LdapReferralException exception = buildReferralExceptionForSearch( parentEntry, childDn,
                            searchContext.getScope() );
                        throw exception;
                    }
                }
            }
View Full Code Here

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

                    return ( ( SearchResultEntry ) response ).getEntry();
                }

                if ( response instanceof SearchResultReference )
                {
                    throw new LdapReferralException( ( ( SearchResultReference ) response ).getReferral().getLdapUrls() );
                }
            }
            while ( next() && !( response instanceof SearchResultDone ) );
        }
        catch ( LdapReferralException lre )
View Full Code Here

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

                    return ( ( SearchResultEntry ) response ).getEntry();
                }

                if ( response instanceof SearchResultReference )
                {
                    throw new LdapReferralException( ( ( SearchResultReference ) response ).getReferral().getLdapUrls() );
                }
            }
            while ( next() && !( response instanceof SearchResultDone ) );
        }
        catch ( LdapReferralException lre )
View Full Code Here

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

        {
            throw new LdapOperationErrorException( luee.getMessage(), luee );
        }

        // Return with an exception
        LdapReferralException lre = new LdapReferralException( urls );
        lre.setRemainingDn( childDn );
        lre.setResolvedDn( parentEntry.getDn() );
        lre.setResolvedObject( parentEntry );

        return lre;
    }
View Full Code Here

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

                urls.add( url.getString() );
            }
        }

        // Return with an exception
        LdapReferralException lre = new LdapReferralException( urls );
        lre.setRemainingDn( childDn );
        lre.setResolvedDn( parentEntry.getDn() );
        lre.setResolvedObject( parentEntry );

        return lre;
    }
View Full Code Here

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

                    LdapPartialResultException exception = buildLdapPartialResultException( childDn );
                    throw exception;
                }
                else
                {
                    LdapReferralException exception = buildReferralException( parentEntry, childDn );
                    throw exception;
                }
            }
        }
        finally
View Full Code Here

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

                    // This is a referral. We can delete it if the ManageDsaIt flag is true
                    // Otherwise, we just throw a LdapReferralException
                    if ( !compareContext.isReferralIgnored() )
                    {
                        // Throw a Referral Exception
                        LdapReferralException exception = buildReferralException( parentEntry, childDn );
                        throw exception;
                    }
                }
                else if ( directoryService.getReferralManager().hasParentReferral( dn ) )
                {
                    // Depending on the Context.REFERRAL property value, we will throw
                    // a different exception.
                    if ( compareContext.isReferralIgnored() )
                    {
                        LdapPartialResultException exception = buildLdapPartialResultException( childDn );
                        throw exception;
                    }
                    else
                    {
                        LdapReferralException exception = buildReferralException( parentEntry, childDn );
                        throw exception;
                    }
                }
            }
        }
View Full Code Here

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

            ldapUrl.setDn( urlDn );
            urls.add( ldapUrl.toString() );
        }
       
        // Return with an exception
        LdapReferralException lre = new LdapReferralException( urls );
        lre.setRemainingName( childDn );
        lre.setResolvedName( parentEntry.getDn() );
        lre.setResolvedObj( parentEntry );
       
        return lre;
    }
View Full Code Here

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

                urls.add( url.getString() );
            }
        }
       
        // Return with an exception
        LdapReferralException lre = new LdapReferralException( urls );
        lre.setRemainingName( childDn );
        lre.setResolvedName( parentEntry.getDn() );
        lre.setResolvedObj( parentEntry );
       
        return lre;
    }
View Full Code Here

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

            ldapUrl.setDn( urlDn );
            urls.add( ldapUrl.toString() );
        }
       
        // Return with an exception
        LdapReferralException lre = new LdapReferralException( urls );
        lre.setRemainingDn( childDn );
        lre.setResolvedDn( parentEntry.getDn() );
        lre.setResolvedObject( parentEntry );
       
        return lre;
    }
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.