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

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


        DN oriChildName = opContext.getDn();
        DN newParentName = opContext.getParent();
       
        if ( oriChildName.getNormName().equalsIgnoreCase( subschemSubentryDn.getNormName() ) )
        {
            throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_258, subschemSubentryDn,
                subschemSubentryDn ), ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
       
        // check if child to move exists
        String msg = "Attempt to move to non-existant parent: ";
View Full Code Here


        DN oriChildName = opContext.getDn();
        DN parent = opContext.getParent();

        if ( oriChildName.getNormName().equalsIgnoreCase( subschemSubentryDn.getNormName() ) )
        {
            throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_258, subschemSubentryDn,
                subschemSubentryDn ), ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
       
        // check if child to move exists
        String msg = "Attempt to move to non-existant parent: ";
View Full Code Here

        }

       
        String msg = I18n.err( I18n.ERR_83, opContext.getDn() );
        LOG.error( msg );
        throw new LdapOperationNotSupportedException( msg, ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

            }
           
            return;
        }

        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

            return false;
        }
       
        LOG.error( String.format( I18n.err( I18n.ERR_84 ),
            opContext.getDn(), entry, opContext.getModItems() ) );
        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

        {
            schemaSynchronizer.rename( originalEntry, opContext.getNewRdn(), doCascadeModify );
            return;
        }
       
        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

        {
            schemaSynchronizer.move( opContext.getDn(), opContext.getParent(), entry, cascade );
            return;
        }
       
        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

            schemaSynchronizer.moveAndRename( opContext.getDn(), opContext.getParent(), opContext.getNewRdn(),
                opContext.getDelOldDn(), entry, cascade );
            return;
        }
       
        throw new LdapOperationNotSupportedException( ResultCodeEnum.UNWILLING_TO_PERFORM );
    }
View Full Code Here

            else
            {
                String msg = I18n.err( I18n.ERR_364, entry.getDn().getName(),
                    StringTools.listToString( errors ) );
                LOG.info( msg );
            throw new LdapOperationNotSupportedException( msg, ResultCodeEnum.UNWILLING_TO_PERFORM );
            }
        }
        else
        {
            // At least, we associates the Normalizer with the schema
            schemaManager.getRegistries().associateWithSchema( errors, normalizer );

            if ( !errors.isEmpty() )
            {
                String msg = I18n.err( I18n.ERR_365, entry.getDn().getName(),
                    StringTools.listToString( errors ) );

                throw new LdapOperationNotSupportedException( msg, ResultCodeEnum.UNWILLING_TO_PERFORM );
            }

            LOG.debug( "The normalizer {} cannot be added in schema {}", dn.getName(), schemaName );
        }
    }
View Full Code Here

        {
            if ( schemaManager.getRegistries().isReferenced( normalizer ) )
            {
                String msg = I18n.err( I18n.ERR_366, entry.getDn().getName(), getReferenced( normalizer ) );
                LOG.warn( msg );
                throw new LdapOperationNotSupportedException( msg, ResultCodeEnum.UNWILLING_TO_PERFORM );
            }

            // As the normalizer has the same OID than its attached MR, it won't
            // be loaded into the schemaManager if it's disabled
            deleteFromSchema( normalizer, schemaName );
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.