1 17 package org.apache.ldap.server.schema.bootstrap; 18 19 20 import javax.naming.NamingException ; 21 22 23 24 33 public class InetorgpersonMatchingRuleProducer extends AbstractBootstrapProducer 34 { 35 public InetorgpersonMatchingRuleProducer() 36 { 37 super( ProducerTypeEnum.MATCHING_RULE_PRODUCER ); 38 } 39 40 41 45 46 49 public void produce( BootstrapRegistries registries, ProducerCallback cb ) 50 throws NamingException 51 { 52 BootstrapMatchingRule mrule = null; 53 54 67 68 mrule = new BootstrapMatchingRule( "2.5.13.5", registries ); 69 mrule.setNames( new String [] { "caseExactMatch" } ); 70 mrule.setSyntaxOid( "1.3.6.1.4.1.1466.115.121.1.15" ); 71 cb.schemaObjectProduced( this, mrule.getOid(), mrule ); 72 73 mrule = new BootstrapMatchingRule( "2.5.13.7", registries ); 74 mrule.setNames( new String [] { "caseExactSubstringsMatch" } ); 75 mrule.setSyntaxOid( "1.3.6.1.4.1.1466.115.121.1.58" ); 76 cb.schemaObjectProduced( this, mrule.getOid(), mrule ); 77 78 mrule = new BootstrapMatchingRule( "2.5.13.12", registries ); 79 mrule.setNames( new String [] { "caseIgnoreListSubstringsMatch" } ); 80 mrule.setSyntaxOid( "1.3.6.1.4.1.1466.115.121.1.58" ); 81 cb.schemaObjectProduced( this, mrule.getOid(), mrule ); 82 83 90 91 mrule = new BootstrapMatchingRule( "1.3.6.1.4.1.1466.109.114.3", registries ); 92 mrule.setNames( new String [] { "caseIgnoreIA5SubstringsMatch" } ); 93 mrule.setSyntaxOid( "1.3.6.1.4.1.1466.115.121.1.58" ); 94 cb.schemaObjectProduced( this, mrule.getOid(), mrule ); 95 96 } 97 } 98 | Popular Tags |