KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > ldap > server > schema > bootstrap > InetorgpersonMatchingRuleProducer


1 /*
2  * Copyright 2004 The Apache Software Foundation
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */

17 package org.apache.ldap.server.schema.bootstrap;
18
19
20 import javax.naming.NamingException JavaDoc;
21
22
23
24 /**
25  * A producer of MatchingRule objects for the inetorgperson schema. This code has been
26  * automatically generated using schema files in the OpenLDAP format along with
27  * the eve schema plugin for maven. This has been done to facilitate
28  * Eve<->OpenLDAP schema interoperability.
29  *
30  * @author <a HREF="mailto:dev@directory.apache.org">Apache Directory Project</a>
31  * @version $Rev: 169198 $
32  */

33 public class InetorgpersonMatchingRuleProducer extends AbstractBootstrapProducer
34 {
35     public InetorgpersonMatchingRuleProducer()
36     {
37         super( ProducerTypeEnum.MATCHING_RULE_PRODUCER );
38     }
39
40
41     // ------------------------------------------------------------------------
42
// BootstrapProducer Methods
43
// ------------------------------------------------------------------------
44

45
46     /**
47      * @see org.apache.ldap.server.schema.bootstrap.BootstrapProducer#produce(org.apache.ldap.server.schema.bootstrap.BootstrapRegistries, org.apache.ldap.server.schema.bootstrap.ProducerCallback)
48      */

49     public void produce( BootstrapRegistries registries, ProducerCallback cb )
50         throws NamingException JavaDoc
51     {
52         BootstrapMatchingRule mrule = null;
53
54         /*
55          * Straight out of RFC 2798 for InetOrgPerson: Section 9.3.3
56          * =========================================================
57
58             ( 2.5.13.5 NAME 'caseExactMatch'
59               SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
60
61             ( 2.5.13.7 NAME 'caseExactSubstringsMatch'
62               SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
63
64             ( 2.5.13.12 NAME 'caseIgnoreListSubstringsMatch'
65               SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
66         */

67
68         mrule = new BootstrapMatchingRule( "2.5.13.5", registries );
69         mrule.setNames( new String JavaDoc[] { "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 JavaDoc[] { "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 JavaDoc[] { "caseIgnoreListSubstringsMatch" } );
80         mrule.setSyntaxOid( "1.3.6.1.4.1.1466.115.121.1.58" );
81         cb.schemaObjectProduced( this, mrule.getOid(), mrule );
82
83         /*
84          * Straight out of RFC 2798 for InetOrgPerson: Section 9.3.4
85          * =========================================================
86
87             ( 1.3.6.1.4.1.1466.109.114.3 NAME 'caseIgnoreIA5SubstringsMatch'
88               SYNTAX 1.3.6.1.4.1.1466.115.121.1.58 )
89         */

90
91         mrule = new BootstrapMatchingRule( "1.3.6.1.4.1.1466.109.114.3", registries );
92         mrule.setNames( new String JavaDoc[] { "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