Examples of LdapNameNotFoundException


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

                // don't feed the above Cursors' list to a BaseEntryFilteringCursor it is skipping the naming context entry of each partition
                return new CursorList( cursors, opContext );
            }
   
            // TODO : handle searches based on the RootDSE
            throw new LdapNameNotFoundException();
        }
   
        base.normalize( schemaManager.getNormalizerMapping() );
        Partition backend = getPartition( base );
        return backend.search( opContext );
View Full Code Here

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

    {
        Partition parent = partitionLookupTree.getParentElement( dn );
       
        if ( parent == null )
        {
            throw new LdapNameNotFoundException( I18n.err( I18n.ERR_268, dn ) );
        }
        else
        {
            return parent;
        }
View Full Code Here

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

        }

        // don't keep going if we cannot find the parent Id
        if ( parentId == null )
        {
            throw new LdapNameNotFoundException( I18n.err( I18n.ERR_216, parentDn ) );
        }

        EntryAttribute objectClass = entry.get( OBJECT_CLASS_AT );

        if ( objectClass == null )
View Full Code Here

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

        ID id = getEntryId( dn.getNormName() );

        // don't continue if id is null
        if ( id == null )
        {
            throw new LdapNameNotFoundException( I18n.err( I18n.ERR_699, dn ) );
        }

        if ( getChildCount( id ) > 0 )
        {
            LdapContextNotEmptyException cnee = new LdapContextNotEmptyException( I18n.err( I18n.ERR_700, dn ) );
View Full Code Here

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

        }

        // don't keep going if we cannot find the parent Id
        if ( parentId == null )
        {
            throw new LdapNameNotFoundException( I18n.err( I18n.ERR_216, parentDn ) );
        }

        EntryAttribute objectClass = entry.get( OBJECT_CLASS_AT );

        if ( objectClass == null )
View Full Code Here

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

            {
                attrs = opContext.lookup( parentDn, ByPassConstants.LOOKUP_BYPASS );
            }
            catch ( Exception e )
            {
                LdapNameNotFoundException e2 = new LdapNameNotFoundException( I18n.err( I18n.ERR_251,
                    parentDn.getName() ) );
                e2.setResolvedName( new DN( nexus.getMatchedName(
                    new GetMatchedNameOperationContext( opContext.getSession(), parentDn ) ).getName() ) );
                throw e2;
            }
           
            EntryAttribute objectClass = attrs.getOriginalEntry().get( SchemaConstants.OBJECT_CLASS_AT );
View Full Code Here

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

        // Check to see if the renamed entry exists
        if ( opContext.getEntry() == null )
        {
            // This is a nonsense : we can't rename an entry which does not exist
            // on the server
            LdapNameNotFoundException ldnfe;
            ldnfe = new LdapNameNotFoundException( I18n.err( I18n.ERR_256, dn.getName() ) );
            ldnfe.setResolvedName( new DN( dn.getName() ) );
            throw ldnfe;
        }
       
        // check to see if target entry exists
        DN newDn = opContext.getNewDn();
View Full Code Here

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

            return;
        }
       
        if ( ! opContext.hasEntry( dn, ByPassConstants.HAS_ENTRY_BYPASS ) )
        {
            LdapNameNotFoundException e;

            if ( msg != null )
            {
                e = new LdapNameNotFoundException( msg + dn.getName() );
            }
            else
            {
                e = new LdapNameNotFoundException( dn.getName() );
            }

            e.setResolvedName(
                new DN(
                    opContext.getSession().getDirectoryService().getOperationManager().getMatchedName(
                        new GetMatchedNameOperationContext( opContext.getSession(), dn ) ).getName() ) );
            throw e;
        }
View Full Code Here

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

            {
                attrs = opContext.lookup( parentDn, ByPassConstants.LOOKUP_BYPASS );
            }
            catch ( Exception e )
            {
                LdapNameNotFoundException e2 = new LdapNameNotFoundException( "Parent " + parentDn.getUpName()
                    + " not found" );
                e2.setResolvedName( new LdapDN( nexus.getMatchedName(
                    new GetMatchedNameOperationContext( opContext.getSession(), parentDn ) ).getUpName() ) );
                throw e2;
            }
           
            EntryAttribute objectClass = attrs.getOriginalEntry().get( SchemaConstants.OBJECT_CLASS_AT );
View Full Code Here

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

            return;
        }
       
        if ( ! opContext.hasEntry( dn, ByPassConstants.HAS_ENTRY_BYPASS ) )
        {
            LdapNameNotFoundException e;

            if ( msg != null )
            {
                e = new LdapNameNotFoundException( msg + dn.getUpName() );
            }
            else
            {
                e = new LdapNameNotFoundException( dn.getUpName() );
            }

            e.setResolvedName(
                new LdapDN(
                    opContext.getSession().getDirectoryService().getOperationManager().getMatchedName(
                        new GetMatchedNameOperationContext( opContext.getSession(), dn ) ).getUpName() ) );
            throw e;
        }
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.