1 17 package org.apache.ldap.server.schema.bootstrap; 18 19 20 import org.apache.ldap.server.schema.SyntaxCheckerRegistry; 21 22 import javax.naming.NamingException ; 23 24 25 34 public class NisSyntaxProducer extends AbstractBootstrapProducer 35 { 36 public NisSyntaxProducer() 37 { 38 super( ProducerTypeEnum.SYNTAX_PRODUCER ); 39 } 40 41 42 46 47 50 public void produce( BootstrapRegistries registries, ProducerCallback cb ) 51 throws NamingException 52 { 53 BootstrapSyntax syntax; 54 SyntaxCheckerRegistry syntaxCheckerRegistry = registries.getSyntaxCheckerRegistry(); 55 56 syntax = new BootstrapSyntax( "1.3.6.1.1.1.0.0", syntaxCheckerRegistry ); 58 syntax.setDescription( "RFC2307 NIS Netgroup Triple" ); 59 syntax.setNames( new String [] { "NIS Netgroup Triple" } ); 60 syntax.setHumanReadible( true ); 61 cb.schemaObjectProduced( this, syntax.getOid(), syntax ); 62 63 syntax = new BootstrapSyntax( "1.3.6.1.1.1.0.1", syntaxCheckerRegistry ); 65 syntax.setNames( new String [] { "NIS Boot Parameter" } ); 66 syntax.setHumanReadible( true ); 67 cb.schemaObjectProduced( this, syntax.getOid(), syntax ); 68 69 } 70 } 71 | Popular Tags |