1 17 package org.apache.ldap.server.schema.bootstrap; 18 19 20 import org.apache.ldap.common.schema.*; 21 import org.apache.ldap.server.schema.ConcreteNameComponentNormalizer; 22 23 import javax.naming.NamingException ; 24 import java.util.Comparator ; 25 26 27 33 public class SystemComparatorProducer extends AbstractBootstrapProducer 34 { 35 public SystemComparatorProducer() 36 { 37 super( ProducerTypeEnum.COMPARATOR_PRODUCER ); 38 } 39 40 41 public void produce( BootstrapRegistries registries, ProducerCallback cb ) 42 throws NamingException 43 { 44 Comparator comparator; 45 46 52 comparator = new ComparableComparator(); 53 cb.schemaObjectProduced( this, "2.5.13.0", comparator ); 54 55 59 comparator = new DnComparator( new ConcreteNameComponentNormalizer( 60 registries.getAttributeTypeRegistry() ) ); 61 cb.schemaObjectProduced( this, "2.5.13.1", comparator ); 62 63 67 comparator = new NormalizingComparator( 68 new CachingNormalizer( new DeepTrimToLowerNormalizer() ), 69 new ComparableComparator() ); 70 cb.schemaObjectProduced( this, "2.5.13.2", comparator ); 71 72 76 comparator = new NormalizingComparator( 77 new CachingNormalizer( new DeepTrimToLowerNormalizer() ), 78 new ComparableComparator() ); 79 cb.schemaObjectProduced( this, "2.5.13.3", comparator ); 80 81 85 comparator = new NormalizingComparator( 86 new CachingNormalizer( new DeepTrimToLowerNormalizer() ), 87 new ComparableComparator() ); 88 cb.schemaObjectProduced( this, "2.5.13.4", comparator ); 89 90 94 comparator = new ComparableComparator(); 95 cb.schemaObjectProduced( this, "2.5.13.8", comparator ); 96 97 101 comparator = new ComparableComparator(); 102 cb.schemaObjectProduced( this, "2.5.13.10", comparator ); 103 104 108 comparator = new NormalizingComparator( 109 new CachingNormalizer( new DeepTrimToLowerNormalizer() ), 110 new ComparableComparator() ); 111 cb.schemaObjectProduced( this, "2.5.13.11", comparator ); 112 113 117 comparator = new ComparableComparator(); 118 cb.schemaObjectProduced( this, "2.5.13.14", comparator ); 119 120 124 comparator = new ComparableComparator(); 125 cb.schemaObjectProduced( this, "2.5.13.16", comparator ); 126 127 131 comparator = new ComparableComparator(); 132 cb.schemaObjectProduced( this, "2.5.13.17", comparator ); 133 134 138 comparator = new ComparableComparator(); 139 cb.schemaObjectProduced( this, "2.5.13.20", comparator ); 140 141 145 comparator = new ComparableComparator(); 146 cb.schemaObjectProduced( this, "2.5.13.21", comparator ); 147 148 152 comparator = new ComparableComparator(); 153 cb.schemaObjectProduced( this, "2.5.13.22", comparator ); 154 155 159 comparator = new NormalizingComparator( 160 new CachingNormalizer( new DeepTrimNormalizer() ), 161 new ComparableComparator() ); 162 cb.schemaObjectProduced( this, "2.5.13.23", comparator ); 163 164 168 comparator = new ComparableComparator(); 169 cb.schemaObjectProduced( this, "2.5.13.24", comparator ); 170 171 175 comparator = new ComparableComparator(); 176 cb.schemaObjectProduced( this, "2.5.13.27", comparator ); 177 178 182 comparator = new ComparableComparator(); 183 cb.schemaObjectProduced( this, "2.5.13.28", comparator ); 184 185 189 comparator = new ComparableComparator(); 190 cb.schemaObjectProduced( this, "2.5.13.29", comparator ); 191 192 196 comparator = new ComparableComparator(); 197 cb.schemaObjectProduced( this, "2.5.13.30", comparator ); 198 199 203 comparator = new NormalizingComparator( 204 new CachingNormalizer( new DeepTrimNormalizer() ), 205 new ComparableComparator() ); 206 cb.schemaObjectProduced( this, "1.3.6.1.4.1.1466.109.114.1", comparator ); 207 208 212 comparator = new NormalizingComparator( 213 new CachingNormalizer( new DeepTrimToLowerNormalizer() ), 214 new ComparableComparator() ); 215 cb.schemaObjectProduced( this, "1.3.6.1.4.1.1466.109.114.2", comparator ); 216 217 225 226 comparator = new ComparableComparator(); 227 cb.schemaObjectProduced( this, "2.5.13.13", comparator ); 228 229 } 230 } 231 | Popular Tags |