Examples of LdapNameNotFoundException


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( "Id for parent '" + parentDn + "' not found!" );
        }

        EntryAttribute objectClass = entry.get( OBJECT_CLASS_AT );

        if ( objectClass == null )
View Full Code Here

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

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

        // don't continue if id is null
        if ( id == null )
        {
            throw new LdapNameNotFoundException( "Could not find entry at '" + dn + "' to delete it!" );
        }

        if ( getChildCount( id ) > 0 )
        {
            LdapContextNotEmptyException cnee = new LdapContextNotEmptyException( "[66] Cannot delete entry " + dn
View Full Code Here

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

        ServerEntry targetEntry = (ServerEntry)SchemaUtils.getTargetEntry( mods , entry );

        if ( entry == null )
        {
            LOG.error( "No entry with this name :{}", name );
            throw new LdapNameNotFoundException( "The entry which name is " + name + " is not found." );
        }

        // We will use this temporary entry to check that the modifications
        // can be applied as atomic operations
        ServerEntry tmpEntry = ( ServerEntry ) entry.clone();
View Full Code Here

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

                return new BaseEntryFilteringCursor( new SingletonCursor<ServerEntry>( serverEntry ), opContext );
            }

            // TODO : handle searches based on the RootDSE
            throw new LdapNameNotFoundException();
        }

        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( " Cannot find a partition for " + dn );
        }
        else
        {
            return parent;
        }
View Full Code Here

Examples of org.apache.ldap.common.exception.LdapNameNotFoundException

                SearchResult result = new SearchResult( "", null, attrs, false );

                return new SingletonEnumeration( result );
            }

            throw new LdapNameNotFoundException();
        }

        ContextPartition backend = getBackend( base );

        return backend.search( base, env, filter, searchCtls );
View Full Code Here

Examples of org.apache.ldap.common.exception.LdapNameNotFoundException

        BigInteger id = db.getEntryId( dn.toString() );

        // don't continue if id is null
        if ( id == null )
        {
            throw new LdapNameNotFoundException( "Could not find entry at '"
                    + dn + "' to delete it!");
        }

        if ( db.getChildCount( id ) > 0 )
        {
View Full Code Here

Examples of org.apache.ldap.common.exception.LdapNameNotFoundException

     */
    private void assertHasEntry( String msg, Name dn ) throws NamingException
    {
        if ( !nexus.hasEntry( dn ) )
        {
            LdapNameNotFoundException e = null;

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

            e.setResolvedName( nexus.getMatchedDn( dn, false ) );
            throw e;
        }
    }
View Full Code Here

Examples of org.apache.ldap.common.exception.LdapNameNotFoundException

        }

        // don't keep going if we cannot find the parent Id
        if ( parentId == null )
        {
            throw new LdapNameNotFoundException( "Id for parent '" + dn.getSuffix( 1 ).toString() + "' not found!" );
        }

        Attribute objectClass = entry.get( "objectClass" );

        if ( objectClass == null )
View Full Code Here

Examples of org.apache.ldap.common.exception.LdapNameNotFoundException

        Attributes userEntry = rootNexus.lookup( principalDn );

        if ( userEntry == null )
        {
            throw new LdapNameNotFoundException();
        }

        Object userPassword;

        Attribute userPasswordAttr = userEntry.get( "userPassword" );
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.