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 25 26 33 public class SystemNormalizerProducer extends AbstractBootstrapProducer 34 { 35 public SystemNormalizerProducer() 36 { 37 super( ProducerTypeEnum.NORMALIZER_PRODUCER ); 38 } 39 40 41 public void produce( BootstrapRegistries registries, ProducerCallback cb ) 42 throws NamingException 43 { 44 Normalizer normalizer; 45 46 53 normalizer = new CachingNormalizer( new DnNormalizer( 54 new ConcreteNameComponentNormalizer( 55 registries.getAttributeTypeRegistry() ) ) ) ; 56 cb.schemaObjectProduced( this, "2.5.13.1", normalizer ); 57 58 62 normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() ); 63 cb.schemaObjectProduced( this, "1.3.6.1.4.1.1466.109.114.2", normalizer ); 64 65 69 normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() ); 70 cb.schemaObjectProduced( this, "2.5.13.11", normalizer ); 71 72 76 normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() ); 77 cb.schemaObjectProduced( this, "2.5.13.2", normalizer ); 78 79 83 normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() ); 84 cb.schemaObjectProduced( this, "2.5.13.3", normalizer ); 85 86 90 normalizer = new CachingNormalizer( new DeepTrimToLowerNormalizer() ); 91 cb.schemaObjectProduced( this, "2.5.13.4", normalizer ); 92 93 97 normalizer = new NoOpNormalizer(); 98 cb.schemaObjectProduced( this, "2.5.13.0", normalizer ); 99 100 104 normalizer = new NoOpNormalizer(); 105 cb.schemaObjectProduced( this, "2.5.13.8", normalizer ); 106 107 111 normalizer = new NoOpNormalizer(); 112 cb.schemaObjectProduced( this, "2.5.13.10", normalizer ); 113 114 118 normalizer = new NoOpNormalizer(); 119 cb.schemaObjectProduced( this, "2.5.13.14", normalizer ); 120 121 125 normalizer = new NoOpNormalizer(); 126 cb.schemaObjectProduced( this, "2.5.13.16", normalizer ); 127 128 132 normalizer = new NoOpNormalizer(); 133 cb.schemaObjectProduced( this, "2.5.13.17", normalizer ); 134 135 139 normalizer = new NoOpNormalizer(); 140 cb.schemaObjectProduced( this, "2.5.13.20", normalizer ); 141 142 146 normalizer = new NoOpNormalizer(); 147 cb.schemaObjectProduced( this, "2.5.13.21", normalizer ); 148 149 153 normalizer = new NoOpNormalizer(); 154 cb.schemaObjectProduced( this, "2.5.13.22", normalizer ); 155 156 160 normalizer = new CachingNormalizer( new DeepTrimNormalizer() ); 161 cb.schemaObjectProduced( this, "2.5.13.23", normalizer ); 162 163 167 normalizer = new CachingNormalizer( new DeepTrimNormalizer() ); 168 cb.schemaObjectProduced( this, "2.5.13.24", normalizer ); 169 170 174 normalizer = new CachingNormalizer( new DeepTrimNormalizer() ); 175 cb.schemaObjectProduced( this, "2.5.13.27", normalizer ); 176 177 181 normalizer = new CachingNormalizer( new DeepTrimNormalizer() ); 182 cb.schemaObjectProduced( this, "2.5.13.28", normalizer ); 183 184 188 normalizer = new NoOpNormalizer(); 189 cb.schemaObjectProduced( this, "2.5.13.29", normalizer ); 190 191 195 normalizer = new NoOpNormalizer(); 196 cb.schemaObjectProduced( this, "2.5.13.30", normalizer ); 197 198 202 normalizer = new CachingNormalizer( new DeepTrimNormalizer() ); 203 cb.schemaObjectProduced( this, "1.3.6.1.4.1.1466.109.114.1", normalizer ); 204 205 213 214 normalizer = new NoOpNormalizer(); 215 cb.schemaObjectProduced( this, "2.5.13.13", normalizer ); 216 } 217 } 218 | Popular Tags |