1 17 package org.apache.ldap.server.schema.bootstrap; 18 19 20 import org.apache.ldap.common.schema.AcceptAllSyntaxChecker; 21 import org.apache.ldap.common.schema.SyntaxChecker; 22 23 import javax.naming.NamingException ; 24 25 26 27 36 public class NisSyntaxCheckerProducer extends AbstractBootstrapProducer 37 { 38 public NisSyntaxCheckerProducer() 39 { 40 super( ProducerTypeEnum.SYNTAX_CHECKER_PRODUCER ); 41 } 42 43 44 48 49 52 public void produce( BootstrapRegistries registries, ProducerCallback cb ) 53 throws NamingException 54 { 55 SyntaxChecker syntaxChecker; 56 57 64 65 syntaxChecker = new AcceptAllSyntaxChecker( "1.3.6.1.1.1.0.0" ); 67 cb.schemaObjectProduced( this, syntaxChecker.getSyntaxOid(), syntaxChecker ); 68 69 syntaxChecker = new AcceptAllSyntaxChecker( "1.3.6.1.1.1.0.1" ); 71 cb.schemaObjectProduced( this, syntaxChecker.getSyntaxOid(), syntaxChecker ); 72 } 73 } 74 | Popular Tags |