Package org.apache.ldap.common.schema

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


              SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
        */

        Normalizer normalizer;

        normalizer = new CachingNormalizer( new DeepTrimNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.5", normalizer );

        normalizer = new CachingNormalizer( new DeepTrimNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.7", normalizer );

        normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.12", normalizer );

        /*
         * Straight out of RFC 2798 for InetOrgPerson: Section 9.3.4
         * =========================================================

            ( 1.3.6.1.4.1.1466.109.114.3 NAME 'caseIgnoreIA5SubstringsMatch'
              SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
        */

        normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() );
        cb.schemaObjectProduced( this, "1.3.6.1.4.1.1466.109.114.3", normalizer );

    }
View Full Code Here


        /* Really an openLDAP matching rule but its used in he nis so its here
         *
            ( 1.3.6.1.4.1.4203.1.2.1 NAME 'caseExactIA5SubstringsMatch'
             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.4203.1.2.1", normalizer );

    }
View Full Code Here

         *
            ( 1.3.6.1.4.1.4203.1.2.1 NAME 'caseExactIA5SubstringsMatch'
             SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
         */
        comparator = new NormalizingComparator(
                new CachingNormalizer( new DeepTrimNormalizer() ),
                new ComparableComparator() );
        cb.schemaObjectProduced( this, "1.3.6.1.4.1.4203.1.2.1", comparator );
    }
View Full Code Here

        /* Really an openLDAP matching rule but its used in he nis so its here
         *
            ( 1.3.6.1.4.1.4203.1.2.1 NAME 'caseExactIA5SubstringsMatch'
             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.4203.1.2.1", normalizer );

    }
View Full Code Here

         *
            ( 1.3.6.1.4.1.4203.1.2.1 NAME 'caseExactIA5SubstringsMatch'
             SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
         */
        comparator = new NormalizingComparator(
                new CachingNormalizer( new DeepTrimNormalizer() ),
                new ComparableComparator() );
        cb.schemaObjectProduced( this, "1.3.6.1.4.1.4203.1.2.1", comparator );
    }
View Full Code Here

              SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )

        */

        comparator = new NormalizingComparator(
                new CachingNormalizer( new DeepTrimNormalizer() ),
                new ComparableComparator() );
        cb.schemaObjectProduced( this, "2.5.13.5", comparator );

        comparator = new NormalizingComparator(
                new CachingNormalizer( new DeepTrimNormalizer() ),
                new ComparableComparator() );
        cb.schemaObjectProduced( this, "2.5.13.7", comparator );

        comparator = new NormalizingComparator(
                new CachingNormalizer( new DeepTrimToLowerNormalizer() ),
                new ComparableComparator() );
        cb.schemaObjectProduced( this, "2.5.13.12", comparator );

        /*
         * Straight out of RFC 2798 for InetOrgPerson: Section 9.3.4
         * =========================================================

            ( 1.3.6.1.4.1.1466.109.114.3 NAME 'caseIgnoreIA5SubstringsMatch'
              SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
        */

        comparator = new NormalizingComparator(
                new CachingNormalizer( new DeepTrimToLowerNormalizer() ),
                new ComparableComparator() );
        cb.schemaObjectProduced( this, "1.3.6.1.4.1.1466.109.114.3", comparator );
    }
View Full Code Here

              SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
        */

        Normalizer normalizer;

        normalizer = new CachingNormalizer( new DeepTrimNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.5", normalizer );

        normalizer = new CachingNormalizer( new DeepTrimNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.7", normalizer );

        normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.12", normalizer );

        /*
         * Straight out of RFC 2798 for InetOrgPerson: Section 9.3.4
         * =========================================================

            ( 1.3.6.1.4.1.1466.109.114.3 NAME 'caseIgnoreIA5SubstringsMatch'
              SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
        */

        normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() );
        cb.schemaObjectProduced( this, "1.3.6.1.4.1.1466.109.114.3", normalizer );

    }
View Full Code Here

         /*
        ( 2.5.13.2 NAME 'caseIgnoreMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
          */
         comparator = new NormalizingComparator(
                 new CachingNormalizer( new DeepTrimToLowerNormalizer() ),
                 new ComparableComparator() );
         cb.schemaObjectProduced( this, "2.5.13.2", comparator );

         /*
        ( 2.5.13.3 NAME 'caseIgnoreOrderingMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
          */
         comparator = new NormalizingComparator(
                 new CachingNormalizer( new DeepTrimToLowerNormalizer() ),
                 new ComparableComparator() );
         cb.schemaObjectProduced( this, "2.5.13.3", comparator );

         /*
        ( 2.5.13.4 NAME 'caseIgnoreSubstringsMatch'
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
         */
         comparator = new NormalizingComparator(
                new CachingNormalizer( new DeepTrimToLowerNormalizer() ),
                new ComparableComparator() );
         cb.schemaObjectProduced( this, "2.5.13.4", comparator );

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

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

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

         /*
        ( 2.5.13.11 NAME 'caseIgnoreListMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 )
          */
         comparator = new NormalizingComparator(
                 new CachingNormalizer( new DeepTrimToLowerNormalizer() ),
                 new ComparableComparator() );
         cb.schemaObjectProduced( this, "2.5.13.11", comparator );

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

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

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

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

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

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

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

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

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

         /*
        ( 2.5.13.24 NAME 'protocolInformationMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.42 )
          */
         comparator = new ComparableComparator();
         cb.schemaObjectProduced( this, "2.5.13.24", comparator );

         /*
        ( 2.5.13.27 NAME 'generalizedTimeMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 )
          */
         comparator = new ComparableComparator();
         cb.schemaObjectProduced( this, "2.5.13.27", comparator );

         /*
        ( 2.5.13.28 NAME 'generalizedTimeOrderingMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 )
          */
         comparator = new ComparableComparator();
         cb.schemaObjectProduced( this, "2.5.13.28", comparator );

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

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

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

         /*
        ( 1.3.6.1.4.1.1466.109.114.2 NAME 'caseIgnoreIA5Match'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
          */
         comparator = new NormalizingComparator(
                 new CachingNormalizer( new DeepTrimToLowerNormalizer() ),
                 new ComparableComparator() );
         cb.schemaObjectProduced( this, "1.3.6.1.4.1.1466.109.114.2", comparator );

        /*
         * MatchingRules from section 2 of http://www.faqs.org/rfcs/rfc3698.html
View Full Code Here

         * =======================================

        ( 2.5.13.1 NAME 'distinguishedNameMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )
         */
        normalizer = new CachingNormalizer( new DnNormalizer(
                new ConcreteNameComponentNormalizer(
                        registries.getAttributeTypeRegistry() ) ) ) ;
        cb.schemaObjectProduced( this, "2.5.13.1", normalizer );

        /*
        ( 1.3.6.1.4.1.1466.109.114.2 NAME 'caseIgnoreIA5Match'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
          */
        normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() );
        cb.schemaObjectProduced( this, "1.3.6.1.4.1.1466.109.114.2", normalizer );

        /*
        ( 2.5.13.11 NAME 'caseIgnoreListMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 )
          */
        normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.11", normalizer );

        /*
        ( 2.5.13.2 NAME 'caseIgnoreMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
          */
        normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.2", normalizer );

        /*
        ( 2.5.13.3 NAME 'caseIgnoreOrderingMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
          */
        normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.3", normalizer );

        /*
        ( 2.5.13.4 NAME 'caseIgnoreSubstringsMatch'
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
          */
        normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() );
        cb.schemaObjectProduced( this, "2.5.13.4", normalizer );

        /*
         ( 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
View Full Code Here

         *
            ( 1.3.6.1.4.1.4203.1.2.1 NAME 'caseExactIA5SubstringsMatch'
             SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
         */
        comparator = new NormalizingComparator(
                new CachingNormalizer( new DeepTrimNormalizer() ),
                new ComparableComparator() );
        cb.schemaObjectProduced( this, "1.3.6.1.4.1.4203.1.2.1", comparator );
    }
View Full Code Here

TOP

Related Classes of org.apache.ldap.common.schema.CachingNormalizer

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.