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

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


        MatchingRule oldMr = factory.getMatchingRule( entry, targetRegistries, schema.getSchemaName() );
        Set<ServerEntry> dependees = dao.listMatchingRuleDependents( oldMr );
       
        if ( dependees != null && dependees.size() > 0 )
        {
            throw new LdapOperationNotSupportedException( "The matchingRule with OID " + oldMr.getOid()
                + " cannot be deleted until all entities"
                + " using this matchingRule have also been deleted.  The following dependees exist: "
                + getOids( dependees ),
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
View Full Code Here


        MatchingRule oldMr = factory.getMatchingRule( entry, targetRegistries, oldSchema.getSchemaName() );
        Set<ServerEntry> dependees = dao.listMatchingRuleDependents( oldMr );
       
        if ( dependees != null && dependees.size() > 0 )
        {
            throw new LdapOperationNotSupportedException( "The matchingRule with OID " + oldMr.getOid()
                + " cannot be deleted until all entities"
                + " using this matchingRule have also been deleted.  The following dependees exist: "
                + getOids( dependees ),
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
View Full Code Here

        MatchingRule oldMr = factory.getMatchingRule( entry, targetRegistries, oldSchema.getSchemaName() );
        Set<ServerEntry> dependees = dao.listMatchingRuleDependents( oldMr );
       
        if ( dependees != null && dependees.size() > 0 )
        {
            throw new LdapOperationNotSupportedException( "The matchingRule with OID " + oldMr.getOid()
                + " cannot be deleted until all entities"
                + " using this matchingRule have also been deleted.  The following dependees exist: "
                + getOids( dependees ),
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
View Full Code Here

    public void delete( String oid, boolean cascade ) throws NamingException
    {
        if ( matchingRuleRegistry.hasMatchingRule( oid ) )
        {
            throw new LdapOperationNotSupportedException( "The comparator with OID " + oid
                + " cannot be deleted until all "
                + "matchingRules using that comparator have also been deleted.",
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
       
View Full Code Here

    {
        String oldOid = getOid( entry );

        if ( matchingRuleRegistry.hasMatchingRule( oldOid ) )
        {
            throw new LdapOperationNotSupportedException( "The comparator with OID " + oldOid
                + " cannot have it's OID changed until all "
                + "matchingRules using that comparator have been deleted.",
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
View Full Code Here

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

        if ( matchingRuleRegistry.hasMatchingRule( oldOid ) )
        {
            throw new LdapOperationNotSupportedException( "The comparator with OID " + oldOid
                + " cannot have it's OID changed until all "
                + "matchingRules using that comparator have been deleted.",
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
View Full Code Here

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

        if ( matchingRuleRegistry.hasMatchingRule( oid ) )
        {
            throw new LdapOperationNotSupportedException( "The comparator with OID " + oid
                + " cannot be moved to another schema until all "
                + "matchingRules using that comparator have been deleted.",
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
View Full Code Here

        AttributeType at = factory.getAttributeType( entry, targetRegistries, schemaName );
        Set<ServerEntry> dependees = dao.listAttributeTypeDependents( at );
       
        if ( dependees != null && dependees.size() > 0 )
        {
            throw new LdapOperationNotSupportedException( "The attributeType with OID " + at.getOid()
                + " cannot be deleted until all entities"
                + " using this attributeType have also been deleted.  The following dependees exist: "
                + getOids( dependees ),
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
View Full Code Here

        AttributeType oldAt = factory.getAttributeType( entry, targetRegistries, schema.getSchemaName() );
        Set<ServerEntry> dependees = dao.listAttributeTypeDependents( oldAt );
       
        if ( dependees != null && dependees.size() > 0 )
        {
            throw new LdapOperationNotSupportedException( "The attributeType with OID " + oldAt.getOid()
                + " cannot be deleted until all entities"
                + " using this attributeType have also been deleted.  The following dependees exist: "
                + getOids( dependees ),
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
View Full Code Here

        AttributeType oldAt = factory.getAttributeType( entry, targetRegistries, oldSchema.getSchemaName() );
        Set<ServerEntry> dependees = dao.listAttributeTypeDependents( oldAt );
       
        if ( dependees != null && dependees.size() > 0 )
        {
            throw new LdapOperationNotSupportedException( "The attributeType with OID " + oldAt.getOid()
                + " cannot be deleted until all entities"
                + " using this attributeType have also been deleted.  The following dependees exist: "
                + getOids( dependees ),
                ResultCodeEnum.UNWILLING_TO_PERFORM );
        }
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.