1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.apache.directory.server.schema.bootstrap;
21
22
23 import javax.naming.NamingException;
24
25 import org.apache.directory.server.schema.registries.Registries;
26 import org.apache.directory.shared.ldap.schema.DeepTrimToLowerNormalizer;
27 import org.apache.directory.shared.ldap.schema.NoOpNormalizer;
28 import org.apache.directory.shared.ldap.schema.Normalizer;
29
30
31
32
33
34
35
36
37
38
39 public class ApachemetaNormalizerProducer extends AbstractBootstrapProducer
40 {
41 public ApachemetaNormalizerProducer()
42 {
43 super( ProducerTypeEnum.NORMALIZER_PRODUCER );
44 }
45
46
47
48
49
50
51
52
53
54
55 public void produce( Registries registries, ProducerCallback cb )
56 throws NamingException
57 {
58 Normalizer normalizer = null;
59
60 normalizer = new NameOrNumericIdNormalizer( registries.getOidRegistry() );
61 cb.schemaObjectProduced( this, "1.3.6.1.4.1.18060.0.4.0.1.0", normalizer );
62
63 normalizer = new NoOpNormalizer();
64 cb.schemaObjectProduced( this, "1.3.6.1.4.1.18060.0.4.0.1.1", normalizer );
65
66 normalizer = new NoOpNormalizer();
67 cb.schemaObjectProduced( this, "1.3.6.1.4.1.18060.0.4.0.1.2", normalizer );
68
69 normalizer = new DeepTrimToLowerNormalizer();
70 cb.schemaObjectProduced( this, "1.3.6.1.4.1.18060.0.4.0.1.3", normalizer );
71
72 normalizer = new DeepTrimToLowerNormalizer();
73 cb.schemaObjectProduced( this, "1.3.6.1.4.1.18060.0.4.0.1.4", normalizer );
74 }
75 }