Package org.apache.directory.shared.ldap.exception

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


     * UNWILLING_TO_PERFORM LdapException.
     */
    public void move( DN oriChildName, DN newParentName,
        ServerEntry entry, boolean cascade ) throws NamingException
    {
        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_383 ),
            ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here


        if ( schema == null )
        {
            // This is not possible. We can't enable a schema which is not loaded.
            String msg = I18n.err( I18n.ERR_85, schemaName );
            LOG.error( msg );
            throw new LdapOperationNotSupportedException( msg, ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
       
        return schemaManager.disable( schemaName );

        /*
 
View Full Code Here

            {
                String dependency = value.getString();
               
                if ( ! loaded.containsKey( dependency ) )
                {
                    throw new LdapOperationNotSupportedException(
                        "Unwilling to perform operation on enabled schema with disabled or missing dependencies: "
                        + dependency, ResultCodeEnum.UNWILLING_TO_PERFORM );
                }
            }
        }
        else
        {
            for ( Value<?> value:dependencies )
            {
                String dependency = value.getString();
               
                if ( schemaManager.getLoadedSchema( StringTools.toLowerCase( dependency ) ) == null )
                {
                    throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_385, dependency ),
                        ResultCodeEnum.UNWILLING_TO_PERFORM );
                }
            }
        }
    }
View Full Code Here

            {
                // We have some error : reject the addition and get out
                String msg = I18n.err( I18n.ERR_350, entry.getDn().getName(), StringTools.listToString(
                    schemaManager.getErrors() ) );
                LOG.info( msg );
                throw new LdapOperationNotSupportedException( msg, ResultCodeEnum.UNWILLING_TO_PERFORM );
            }
        }
        else
        {
            LOG.debug( "The Comparator {} cannot be added in the disabled schema {}", dn.getName(), schemaName );
View Full Code Here

            else
            {
                String msg = I18n.err( I18n.ERR_352, entry.getDn().getName(), StringTools.listToString(
                    errors ) );
                LOG.info( msg );
                throw new LdapOperationNotSupportedException( msg, ResultCodeEnum.UNWILLING_TO_PERFORM );
            }
        }
        else
        {
            LOG.debug( "The Comparator {} cannot be deleted from the disabled schema {}", dn.getName(), schemaName );
View Full Code Here

    {
        String oldOid = getOid( entry );

        if ( schemaManager.getMatchingRuleRegistry().contains( oldOid ) )
        {
            throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_353, oldOid ),
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }

        String oid = ( String ) newRdn.getNormValue();
        checkOidIsUniqueForComparator( oid );
View Full Code Here

        checkNewParent( newParentName );
        String oldOid = getOid( entry );

        if ( schemaManager.getMatchingRuleRegistry().contains( oldOid ) )
        {
            throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_353, oldOid ),
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }

        String oid = ( String ) newRdn.getNormValue();
        checkOidIsUniqueForComparator( oid );
View Full Code Here

        checkNewParent( newParentName );
        String oid = getOid( entry );

        if ( schemaManager.getMatchingRuleRegistry().contains( oid ) )
        {
            throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_354, oid ),
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }

        String newSchemaName = getSchemaName( newParentName );
View Full Code Here

    {
        DN name = opContext.getDn();
       
        if ( name.getNormName().equalsIgnoreCase( subschemSubentryDn.getNormName() ) )
        {
            throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_253, subschemSubentryDn ),
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
       
        // check if entry to delete exists
        String msg = "Attempt to delete non-existant entry: ";
View Full Code Here

    {
        DN dn = opContext.getDn();
       
        if ( dn.equals( subschemSubentryDn ) )
        {
            throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_255, subschemSubentryDn,
                subschemSubentryDn ), ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
       
        // Check to see if the renamed entry exists
        if ( opContext.getEntry() == null )
View Full Code Here

TOP

Related Classes of org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedException

Copyright © 2018 www.massapicom. 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.