1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.ldap.server.schema.bootstrap;
18
19
20 import javax.naming.NamingException;
21
22 import org.apache.ldap.server.schema.SyntaxCheckerRegistry;
23
24
25 /***
26 * A producer of Syntax objects for the nis schema. This code has been
27 * automatically generated using schema files in the OpenLDAP format along with
28 * the eve schema plugin for maven. This has been done to facilitate
29 * Eve<->OpenLDAP schema interoperability.
30 *
31 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
32 * @version $Rev: 264732 $
33 */
34 public class NisSyntaxProducer extends AbstractBootstrapProducer
35 {
36 public NisSyntaxProducer()
37 {
38 super( ProducerTypeEnum.SYNTAX_PRODUCER );
39 }
40
41
42
43
44
45
46
47 /***
48 * @see org.apache.ldap.server.schema.bootstrap.BootstrapProducer#produce(org.apache.ldap.server.schema.bootstrap.BootstrapRegistries, org.apache.ldap.server.schema.bootstrap.ProducerCallback)
49 */
50 public void produce( BootstrapRegistries registries, ProducerCallback cb )
51 throws NamingException
52 {
53 BootstrapSyntax syntax;
54 SyntaxCheckerRegistry syntaxCheckerRegistry = registries.getSyntaxCheckerRegistry();
55
56
57 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
64 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 }