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

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


            }
            catch ( ParseException e )
            {
                String msg = I18n.err( I18n.ERR_10, aciString );
                LOG.error( msg, e );
                throw new LdapNamingException( msg, ResultCodeEnum.OPERATIONS_ERROR );
            }

            tuples.addAll( item.toTuples() );
        }
    }
View Full Code Here


            }
            catch ( ParseException e )
            {
                String msg = I18n.err( I18n.ERR_11, aciString );
                LOG.error( msg, e );
                throw new LdapNamingException( msg, ResultCodeEnum.OPERATIONS_ERROR );
            }

            tuples.addAll( item.toTuples() );
        }
    }
View Full Code Here

           
            if ( objectClass.contains( SchemaConstants.ALIAS_OC ) )
            {
                String msg = I18n.err( I18n.ERR_252, name.getName() );
                ResultCodeEnum rc = ResultCodeEnum.ALIAS_PROBLEM;
                LdapNamingException e = new LdapNamingException( msg, rc );
                e.setResolvedName( new DN( parentDn.getName() ) );
                throw e;
            }
            else
            {
                synchronized ( notAliasCache )
View Full Code Here

       
        if ( oc.contains( SchemaConstants.ORGANIZATIONAL_UNIT_OC ) )
        {
            if ( opContext.getDn().size() != 3 )
            {
                throw new LdapNamingException( I18n.err( I18n.ERR_378 ), ResultCodeEnum.UNWILLING_TO_PERFORM );
            }
           
            String ouValue = ( String ) opContext.getDn().getRdn().getNormValue();
            ouValue = ouValue.trim().toLowerCase();
           
View Full Code Here

    private void checkOidIsUniqueForNormalizer( String oid ) throws NamingException
    {
        if ( schemaManager.getNormalizerRegistry().contains( oid ) )
        {
            throw new LdapNamingException( I18n.err( I18n.ERR_369, oid ),
                ResultCodeEnum.OTHER );
        }
    }
View Full Code Here

    {
        String oid = getOid( entry );

        if ( schemaManager.getNormalizerRegistry().contains( oid ) )
        {
            throw new LdapNamingException( I18n.err( I18n.ERR_369, oid ),
                ResultCodeEnum.OTHER );
        }
    }
View Full Code Here

    {
        String oid = getOid( entry );

        if ( schemaManager.getGlobalOidRegistry().contains( oid ) )
        {
            throw new LdapNamingException( I18n.err( I18n.ERR_335, oid ),
                ResultCodeEnum.OTHER );
        }
    }
View Full Code Here

   
    private void checkOidIsUniqueForComparator( String oid ) throws NamingException
    {
        if ( super.targetRegistries.getComparatorRegistry().hasComparator( oid ) )
        {
            throw new LdapNamingException( "Oid " + oid + " for new schema comparator is not unique.",
                ResultCodeEnum.OTHER );
        }
    }
View Full Code Here

    {
        String oid = getOid( entry );
       
        if ( super.targetRegistries.getComparatorRegistry().hasComparator( oid ) )
        {
            throw new LdapNamingException( "Oid " + oid + " for new schema comparator is not unique.",
                ResultCodeEnum.OTHER );
        }
    }
View Full Code Here

           
            if ( objectClass.contains( SchemaConstants.ALIAS_OC ) )
            {
                String msg = "Attempt to add entry to alias '" + name.getUpName() + "' not allowed.";
                ResultCodeEnum rc = ResultCodeEnum.ALIAS_PROBLEM;
                LdapNamingException e = new LdapNamingException( msg, rc );
                e.setResolvedName( new LdapDN( parentDn.getUpName() ) );
                throw e;
            }
            else
            {
                synchronized ( notAliasCache )
View Full Code Here

TOP

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

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.