Examples of LdapInvalidAttributeIdentifierException


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

        //AttributeTypeRegistry registry = schemaManager.getAttributeTypeRegistry();
       
        // complain if we do not recognize the attribute being compared
        if ( !schemaManager.getAttributeTypeRegistry().contains( compareContext.getOid() ) )
        {
            throw new LdapInvalidAttributeIdentifierException( I18n.err( I18n.ERR_266, compareContext.getOid() ) );
        }

        AttributeType attrType = schemaManager.lookupAttributeTypeRegistry( compareContext.getOid() );
       
        EntryAttribute attr = partition.lookup( compareContext.newLookupContext(
View Full Code Here

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

                     && modification.getOperation() == ModificationOperation.REPLACE_ATTRIBUTE )
                {
                    // The attributeType does not exist in the schema.
                    // It's an error
                    String message = I18n.err( I18n.ERR_467, id );
                    throw new LdapInvalidAttributeIdentifierException( message );
                }
                else
                {
                    // TODO : handle options
                    AttributeType attributeType = schemaManager.lookupAttributeTypeRegistry( id );
View Full Code Here

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

            if ( attrType == null )
            {
                if ( !schemaManager.getAttributeTypeRegistry().contains( attr.getUpId() ) )
                {
                    throw new LdapInvalidAttributeIdentifierException();
                }
                else
                {
                    attrType = schemaManager.lookupAttributeTypeRegistry( attr.getUpId() );
                }
View Full Code Here

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

        for ( AttributeType attributeType : entry.getAttributeTypes() )
        {
            if ( !schemaManager.getAttributeTypeRegistry().contains( attributeType.getName() ) )
            {
                throw new LdapInvalidAttributeIdentifierException( I18n.err( I18n.ERR_275,
                    attributeType.getName() ) );
            }
        }

        // We will check some elements :
View Full Code Here

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

            if ( attrType == null )
            {
                if ( !attrTypeRegistry.hasAttributeType( attr.getUpId() ) )
                {
                    throw new LdapInvalidAttributeIdentifierException();
                }
                else
                {
                    attrType = attrTypeRegistry.lookup( attr.getUpId() );
                }
View Full Code Here

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

            // TODO/ handle http://issues.apache.org/jira/browse/DIRSERVER-1198
            if ( ( change.getAttributeType() == null ) && !atRegistry.hasAttributeType( change.getUpId() )
                && !objectClass.contains( SchemaConstants.EXTENSIBLE_OBJECT_OC ) )
            {
                throw new LdapInvalidAttributeIdentifierException();
            }

            // We will forbid modification of operational attributes which are not
            // user modifiable.
            AttributeType attributeType = change.getAttributeType();
View Full Code Here

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

        for ( AttributeType attributeType : entry.getAttributeTypes() )
        {
            if ( !atRegistry.hasAttributeType( attributeType.getName() ) )
            {
                throw new LdapInvalidAttributeIdentifierException( attributeType.getName()
                    + " not found in attribute registry!" );
            }
        }

        // We will check some elements :
View Full Code Here

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

        AttributeTypeRegistry registry = registries.getAttributeTypeRegistry();
       
        // complain if we do not recognize the attribute being compared
        if ( !registry.hasAttributeType( compareContext.getOid() ) )
        {
            throw new LdapInvalidAttributeIdentifierException( compareContext.getOid() + " not found within the attributeType registry" );
        }

        AttributeType attrType = registry.lookup( compareContext.getOid() );
       
        EntryAttribute attr = partition.lookup( compareContext.newLookupContext(
View Full Code Here

Examples of org.apache.ldap.common.exception.LdapInvalidAttributeIdentifierException

        AttributeTypeRegistry registry = factoryCfg.getGlobalRegistries().getAttributeTypeRegistry();

        // complain if we do not recognize the attribute being compared
        if ( ! registry.hasAttributeType( oid ) )
        {
            throw new LdapInvalidAttributeIdentifierException( oid + " not found within the attributeType registry" );
        }

        AttributeType attrType = registry.lookup( oid );
        Attribute attr = partition.lookup( name ).get( attrType.getName() );
View Full Code Here

Examples of org.apache.ldap.common.exception.LdapInvalidAttributeIdentifierException

            String id = ( String ) changes.next();
            Attribute change = mods.get( id );

            if ( ! atRegistry.hasAttributeType( change.getID() ) && ! objectClass.contains( "extensibleObject" ) )
            {
                throw new LdapInvalidAttributeIdentifierException( "unrecognized attributeID " + change.getID() );
            }

            if ( modOp == DirContext.REMOVE_ATTRIBUTE && entry.get( change.getID() ) == null )
            {
                throw new LdapNoSuchAttributeException();
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.