1 17 package org.apache.ldap.server.schema.bootstrap; 18 19 20 import org.apache.ldap.common.schema.*; 21 22 import javax.naming.NamingException ; 23 import java.util.Comparator ; 24 25 26 27 36 public class InetorgpersonComparatorProducer extends AbstractBootstrapProducer 37 { 38 public InetorgpersonComparatorProducer() 39 { 40 super( ProducerTypeEnum.COMPARATOR_PRODUCER ); 41 } 42 43 44 48 49 52 public void produce( BootstrapRegistries registries, ProducerCallback cb ) 53 throws NamingException 54 { 55 56 Comparator comparator; 57 58 72 73 comparator = new NormalizingComparator( 74 new CachingNormalizer( new DeepTrimNormalizer() ), 75 new ComparableComparator() ); 76 cb.schemaObjectProduced( this, "2.5.13.5", comparator ); 77 78 comparator = new NormalizingComparator( 79 new CachingNormalizer( new DeepTrimNormalizer() ), 80 new ComparableComparator() ); 81 cb.schemaObjectProduced( this, "2.5.13.7", comparator ); 82 83 comparator = new NormalizingComparator( 84 new CachingNormalizer( new DeepTrimToLowerNormalizer() ), 85 new ComparableComparator() ); 86 cb.schemaObjectProduced( this, "2.5.13.12", comparator ); 87 88 95 96 comparator = new NormalizingComparator( 97 new CachingNormalizer( new DeepTrimToLowerNormalizer() ), 98 new ComparableComparator() ); 99 cb.schemaObjectProduced( this, "1.3.6.1.4.1.1466.109.114.3", comparator ); 100 } 101 } 102 | Popular Tags |