Examples of NoOpNormalizer


Examples of org.apache.directory.shared.ldap.schema.normalizers.NoOpNormalizer

        {
            normalizer = rule.getNormalizer();
        }
        else
        {
            normalizer = new NoOpNormalizer( type.getSyntaxOid() );
        }

        // compile the regular expression to search for a matching attribute
        regex = node.getRegex( normalizer );
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.normalizers.NoOpNormalizer

    {
        store = new MemoryChangeLogStore();

        // The uid/UserId/0.9.2342.19200300.100.1.1 normalizer
        OidNormalizer uidOidNormalizer = new OidNormalizer( SchemaConstants.UID_AT_OID,
            new NoOpNormalizer( SchemaConstants.UID_AT_OID ) );
       
        oidsMap.put( SchemaConstants.UID_AT, uidOidNormalizer );
        oidsMap.put( SchemaConstants.USER_ID_AT, uidOidNormalizer );
        oidsMap.put( SchemaConstants.UID_AT_OID, uidOidNormalizer );
       
        // The ou/organizationalUnit/2.5.4.11 normalizer
        OidNormalizer ouOidNormalizer = new OidNormalizer( SchemaConstants.OU_AT_OID,
            new NoOpNormalizer( SchemaConstants.OU_AT_OID ) );
       
        oidsMap.put( SchemaConstants.OU_AT, ouOidNormalizer );
        oidsMap.put( SchemaConstants.ORGANIZATIONAL_UNIT_NAME_AT, ouOidNormalizer );
        oidsMap.put( SchemaConstants.OU_AT_OID, ouOidNormalizer );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.normalizers.NoOpNormalizer

            MatchingRule mr = type.getEquality();

            if ( mr == null )
            {
                normalizer = new NoOpNormalizer( type.getOid() );
                comparator = null;
            }
            else
            {
                normalizer = mr.getNormalizer();
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.normalizers.NoOpNormalizer

    @Before
    public void setUp() throws Exception
    {
        store = new MemoryChangeLogStore();

        oidsMap.put( SchemaConstants.UID_AT, new OidNormalizer( SchemaConstants.UID_AT_OID, new NoOpNormalizer() ) );
        oidsMap.put( SchemaConstants.USER_ID_AT, new OidNormalizer( SchemaConstants.UID_AT_OID, new NoOpNormalizer() ) );
        oidsMap.put( SchemaConstants.UID_AT_OID, new OidNormalizer( SchemaConstants.UID_AT_OID, new NoOpNormalizer() ) );
       
        oidsMap.put( SchemaConstants.OU_AT, new OidNormalizer( SchemaConstants.OU_AT_OID, new NoOpNormalizer()  ) );
        oidsMap.put( SchemaConstants.ORGANIZATIONAL_UNIT_NAME_AT, new OidNormalizer( SchemaConstants.OU_AT_OID, new NoOpNormalizer()  ) );
        oidsMap.put( SchemaConstants.OU_AT_OID, new OidNormalizer( SchemaConstants.OU_AT_OID, new NoOpNormalizer()  ) );
    }
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.normalizers.NoOpNormalizer

                if ( val.equals( "MEDIUM" ) ) { return 1; }
                if ( val.equals( "HIGH" ) ) { return 2; }
                throw new IllegalArgumentException( "Not a valid value" );
            }
        };
        mr.normalizer = new NoOpNormalizer();
        at.setEquality( mr );
        at.setSyntax( s );

        // check that normalization and syntax checks work as expected
        ServerStringValue value = new ServerStringValue( at, "HIGH" );
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.normalizers.NoOpNormalizer

       
        try
        {
            Map<String, OidNormalizer> oidsMap = new HashMap<String, OidNormalizer>();
           
            oidsMap.put( SchemaConstants.UID_AT, new OidNormalizer( SchemaConstants.UID_AT_OID, new NoOpNormalizer() ) );
            oidsMap.put( SchemaConstants.USER_ID_AT, new OidNormalizer( SchemaConstants.UID_AT_OID, new NoOpNormalizer() ) );
            oidsMap.put( SchemaConstants.UID_AT_OID, new OidNormalizer( SchemaConstants.UID_AT_OID, new NoOpNormalizer() ) );
           
            oidsMap.put( SchemaConstants.OU_AT, new OidNormalizer( SchemaConstants.OU_AT_OID, new NoOpNormalizer()  ) );
            oidsMap.put( SchemaConstants.ORGANIZATIONAL_UNIT_NAME_AT, new OidNormalizer( SchemaConstants.OU_AT_OID, new NoOpNormalizer()  ) );
            oidsMap.put( SchemaConstants.OU_AT_OID, new OidNormalizer( SchemaConstants.OU_AT_OID, new NoOpNormalizer()  ) );

            adminDn.normalize( oidsMap );
        }
        catch ( InvalidNameException ine )
        {
View Full Code Here

Examples of org.apache.directory.shared.ldap.schema.normalizers.NoOpNormalizer

                if ( val.equals( "HIGH" ) ) { return 2; }
                throw new IllegalArgumentException( "Not a valid value" );
            }
        } );
       
        mr.setNormalizer( new NoOpNormalizer( mr.getOid() ) );
        at.setEquality( mr );
        at.setSyntax( s );

        // check that normalization and syntax checks work as expected
        ServerStringValue value = new ServerStringValue( at, "HIGH" );
View Full Code Here

Examples of org.apache.ldap.common.schema.NoOpNormalizer

        throws NamingException
    {
        Normalizer normalizer;

        // For exactDnAsStringMatch -> 1.2.6.1.4.1.18060.1.1.1.2.1
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "1.2.6.1.4.1.18060.1.1.1.2.1", normalizer );

        // For bigIntegerMatch -> 1.2.6.1.4.1.18060.1.1.1.2.2
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "1.2.6.1.4.1.18060.1.1.1.2.2", normalizer );

        // For jdbmStringMatch -> 1.2.6.1.4.1.18060.1.1.1.2.3
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "1.2.6.1.4.1.18060.1.1.1.2.3", normalizer );

    }
View Full Code Here

Examples of org.apache.ldap.common.schema.NoOpNormalizer

        throws NamingException
    {
        Normalizer normalizer;

        // For exactDnAsStringMatch -> 1.2.6.1.4.1.18060.1.1.1.2.1
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "1.2.6.1.4.1.18060.1.1.1.2.1", normalizer );

        // For bigIntegerMatch -> 1.2.6.1.4.1.18060.1.1.1.2.2
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "1.2.6.1.4.1.18060.1.1.1.2.2", normalizer );

        // For jdbmStringMatch -> 1.2.6.1.4.1.18060.1.1.1.2.3
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "1.2.6.1.4.1.18060.1.1.1.2.3", normalizer );

    }
View Full Code Here

Examples of org.apache.ldap.common.schema.NoOpNormalizer

        /*
         ( 2.5.13.6 NAME 'caseExactOrderingMatch'
           SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
         */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.6", normalizer );

        /*
        ( 2.5.13.0 NAME 'objectIdentifierMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 )
          */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.0", normalizer );

        /*
        ( 2.5.13.8 NAME 'numericStringMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.36 )
          */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.8", normalizer );

        /*
        ( 2.5.13.10 NAME 'numericStringSubstringsMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
          */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.10", normalizer );

        /*
        ( 2.5.13.14 NAME 'integerMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
          */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.14", normalizer );

        /*
        ( 2.5.13.14 NAME 'integerOrderingMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
          */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.15", normalizer );

        /*
        ( 2.5.13.16 NAME 'bitStringMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.6 )
          */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.16", normalizer );

        /*
       ( 2.5.13.17 NAME 'octetStringMatch'
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )
         */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.17", normalizer );

        /*
        ( 2.5.13.18 NAME 'octetStringOrderingMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )
          */
         normalizer = new NoOpNormalizer();
         cb.schemaObjectProduced( this, "2.5.13.18", normalizer );

        /*
        ( 2.5.13.20 NAME 'telephoneNumberMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )
          */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.20", normalizer );

        /*
        ( 2.5.13.21 NAME 'telephoneNumberSubstringsMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
          */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.21", normalizer );

        /*
        ( 2.5.13.22 NAME 'presentationAddressMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.43 )
          */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.22", normalizer );

        /*
        ( 2.5.13.23 NAME 'uniqueMemberMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.34 )
          */
        normalizer = new CachingNormalizer( new DeepTrimNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.23", normalizer );

        /*
        ( 2.5.13.24 NAME 'protocolInformationMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.42 )
          */
        normalizer = new CachingNormalizer( new DeepTrimNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.24", normalizer );

        /*
        ( 2.5.13.27 NAME 'generalizedTimeMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 )
          */
        normalizer = new CachingNormalizer( new DeepTrimNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.27", normalizer );

        /*
        ( 2.5.13.28 NAME 'generalizedTimeOrderingMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 )
          */
        normalizer = new CachingNormalizer( new DeepTrimNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.28", normalizer );

        /*
        ( 2.5.13.29 NAME 'integerFirstComponentMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 )
          */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.29", normalizer );

        /*
        ( 2.5.13.30 NAME 'objectIdentifierFirstComponentMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 )
          */
        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.30", normalizer );

        /*
        ( 1.3.6.1.4.1.1466.109.114.1 NAME 'caseExactIA5Match'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
          */
        normalizer = new CachingNormalizer( new DeepTrimNormalizer() );
        cb.schemaObjectProduced( this, "1.3.6.1.4.1.1466.109.114.1", normalizer );

        /*
         * MatchingRules from section 2 of http://www.faqs.org/rfcs/rfc3698.html
         * for Additional MatchingRules

         ( 2.5.13.13 NAME 'booleanMatch'
           SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 )

         */

        normalizer = new NoOpNormalizer();
        cb.schemaObjectProduced( this, "2.5.13.13", normalizer );
    }
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.