Examples of LdapNoSuchObjectException


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

        String oldId = getEntryId( oldDn );

        if ( oldId == null )
        {
            // This is not allowed : the old entry must exist
            LdapNoSuchObjectException nse = new LdapNoSuchObjectException(
                I18n.err( I18n.ERR_256_NO_SUCH_OBJECT, oldDn ) );
            throw nse;
        }

        // Check that the new superior exist
        String newSuperiorId = getEntryId( newSuperiorDn );

        if ( newSuperiorId == null )
        {
            // This is not allowed : the new superior must exist
            LdapNoSuchObjectException nse = new LdapNoSuchObjectException(
                I18n.err( I18n.ERR_256_NO_SUCH_OBJECT, newSuperiorDn ) );
            throw nse;
        }

        Dn newDn = newSuperiorDn.add( newRdn );
View Full Code Here

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

                return searchResult;
            }
            else
            {
                // The search base doesn't exist
                throw new LdapNoSuchObjectException( I18n.err( I18n.ERR_648, baseDn ) );
            }
        }

        // --------------------------------------------------------------------
        // Determine the effective base with aliases
View Full Code Here

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

            }

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

            // Get a new UUID for the added entry if it does not have any already
            Attribute entryUUID = entry.get( ENTRY_UUID_AT );
View Full Code Here

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

            {
                attrs = opContext.lookup( parentDn, ByPassConstants.LOOKUP_BYPASS );
            }
            catch ( Exception e )
            {
                LdapNoSuchObjectException e2 = new LdapNoSuchObjectException( I18n.err( I18n.ERR_251,
                    parentDn.getName() ) );
                //e2.setResolvedName( new DN( nexus.getMatchedName(
                  //  new GetMatchedNameOperationContext( opContext.getSession(), parentDn ) ).getName() ) );
                throw e2;
            }
View Full Code Here

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

        // 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
            LdapNoSuchObjectException ldnfe;
            ldnfe = new LdapNoSuchObjectException( I18n.err( I18n.ERR_256, dn.getName() ) );
            //ldnfe.setResolvedName( new DN( dn.getName() ) );
            throw ldnfe;
        }
       
        // check to see if target entry exists
View Full Code Here

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

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

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

            //e.setResolvedName(
            //    new DN(
            //        opContext.getSession().getDirectoryService().getOperationManager().getMatchedName(
View Full Code Here

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

        }

        // don't keep going if we cannot find the parent Id
        if ( parentId == null )
        {
            throw new LdapNoSuchObjectException( 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.LdapNoSuchObjectException

                // 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 LdapNoSuchObjectException();
        }
   
        base.normalize( schemaManager.getNormalizerMapping() );
        Partition backend = getPartition( base );
        return backend.search( opContext );
View Full Code Here

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

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

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

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

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

        if ( getChildCount( id ) > 0 )
        {
            LdapContextNotEmptyException cnee = new LdapContextNotEmptyException( I18n.err( I18n.ERR_700, dn ) );
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.