001    /*
002     *  Licensed to the Apache Software Foundation (ASF) under one
003     *  or more contributor license agreements.  See the NOTICE file
004     *  distributed with this work for additional information
005     *  regarding copyright ownership.  The ASF licenses this file
006     *  to you under the Apache License, Version 2.0 (the
007     *  "License"); you may not use this file except in compliance
008     *  with the License.  You may obtain a copy of the License at
009     *  
010     *    http://www.apache.org/licenses/LICENSE-2.0
011     *  
012     *  Unless required by applicable law or agreed to in writing,
013     *  software distributed under the License is distributed on an
014     *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015     *  KIND, either express or implied.  See the License for the
016     *  specific language governing permissions and limitations
017     *  under the License. 
018     *  
019     */
020    package org.apache.directory.server.schema.bootstrap;
021    
022    
023    import javax.naming.NamingException;
024    
025    import org.apache.directory.server.schema.bootstrap.ProducerTypeEnum;
026    import org.apache.directory.server.schema.registries.Registries;
027    import org.apache.directory.shared.ldap.constants.SchemaConstants;
028    import org.apache.directory.shared.ldap.schema.Normalizer;
029    import org.apache.directory.shared.ldap.schema.normalizers.NoOpNormalizer;
030    
031    
032    /**
033     * A producer of Normalizer objects for the eve schema.
034     * Probably modified by hand from generated code
035     *
036     * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
037     * @version $Rev: 781789 $
038     */
039    public class ApacheNormalizerProducer extends AbstractBootstrapProducer
040    {
041        public ApacheNormalizerProducer()
042        {
043            super( ProducerTypeEnum.NORMALIZER_PRODUCER );
044        }
045    
046    
047        // ------------------------------------------------------------------------
048        // BootstrapProducer Methods
049        // ------------------------------------------------------------------------
050    
051        /**
052         * @see org.apache.directory.server.schema.bootstrap.BootstrapProducer#produce(org.apache.directory.server.schema.registries.Registries, org.apache.directory.server.schema.bootstrap.ProducerCallback)
053         */
054        public void produce( Registries registries, ProducerCallback cb ) throws NamingException
055        {
056            Normalizer normalizer;
057    
058            // For exactDnAsStringMatch -> 1.3.6.1.4.1.18060.0.4.1.1.1
059            normalizer = new NoOpNormalizer();
060            cb.schemaObjectProduced( this, "1.3.6.1.4.1.18060.0.4.1.1.1", normalizer );
061    
062            // For bigIntegerMatch -> 1.3.6.1.4.1.18060.0.4.1.1.2
063            normalizer = new NoOpNormalizer();
064            cb.schemaObjectProduced( this, "1.3.6.1.4.1.18060.0.4.1.1.2", normalizer );
065    
066            // For jdbmStringMatch -> 1.3.6.1.4.1.18060.0.4.1.1.3
067            normalizer = new NoOpNormalizer();
068            cb.schemaObjectProduced( this, "1.3.6.1.4.1.18060.0.4.1.1.3", normalizer );
069    
070            // For uuidMatch -> 1.3.6.1.1.16.2
071            normalizer = new NoOpNormalizer();
072            cb.schemaObjectProduced( this, SchemaConstants.UUID_MATCH_MR_OID, normalizer );
073    
074            // For uuidOrderingMatch -> 1.3.6.1.1.16.3
075            normalizer = new NoOpNormalizer();
076            cb.schemaObjectProduced( this, SchemaConstants.UUID_ORDERING_MATCH_MR_OID, normalizer );
077    
078            // For CSNMatch -> 1.3.6.1.4.1.4203.666.11.2.2
079            normalizer = new NoOpNormalizer();
080            cb.schemaObjectProduced( this, SchemaConstants.CSN_MATCH_MR_OID, normalizer );
081    
082            // For CSNOrderingMatch -> 1.3.6.1.4.1.4203.666.11.2.3
083            normalizer = new NoOpNormalizer();
084            cb.schemaObjectProduced( this, SchemaConstants.CSN_ORDERING_MATCH_MR_OID, normalizer );
085    
086            // For CSNSidMatch -> 1.3.6.1.4.1.4203.666.11.2.5
087            normalizer = new NoOpNormalizer();
088            cb.schemaObjectProduced( this, SchemaConstants.CSN_SID_MATCH_MR_OID, normalizer );
089        }
090    }