Examples of DnParser


Examples of org.apache.ldap.common.name.DnParser


    public void init( InterceptorContext ctx ) throws NamingException
    {
        AttributeTypeRegistry atr = ctx.getGlobalRegistries().getAttributeTypeRegistry();
        dnParser = new DnParser( new ConcreteNameComponentNormalizer( atr ) );
    }
View Full Code Here

Examples of org.apache.ldap.common.name.DnParser

    public void init( InterceptorContext context ) throws NamingException
    {
        AttributeTypeRegistry attributeRegistry = context.getGlobalRegistries().getAttributeTypeRegistry();

        parser = new DnParser( new PerComponentNormalizer( attributeRegistry ) );
    }
View Full Code Here

Examples of org.apache.ldap.common.name.DnParser

    public void init( DirectoryServiceConfiguration factoryCfg, InterceptorConfiguration cfg ) throws NamingException
    {
        registry = factoryCfg.getGlobalRegistries().getAttributeTypeRegistry();
        NameComponentNormalizer ncn = new PerComponentNormalizer();
        parser = new DnParser( ncn );
        visitor = new ValueNormalizingVisitor( ncn );
    }
View Full Code Here

Examples of org.apache.ldap.common.name.DnParser

        /** dedicated normalizing parser for this search - cheaper than synchronization */
        final DnParser parser;

        public AuthorizationFilter() throws NamingException
        {
            parser = new DnParser( new ConcreteNameComponentNormalizer( attrRegistry ) );
        }
View Full Code Here

Examples of org.apache.ldap.common.name.DnParser

    private DnParser parser = null;


    public ScopeEvaluator() throws NamingException
    {
        parser = new DnParser();
    }
View Full Code Here

Examples of org.apache.ldap.common.name.DnParser


    public void init( DirectoryServiceConfiguration factoryCfg, InterceptorConfiguration cfg ) throws NamingException
    {
        AttributeTypeRegistry atr = factoryCfg.getGlobalRegistries().getAttributeTypeRegistry();
        dnParser = new DnParser( new ConcreteNameComponentNormalizer( atr ) );

        // disable this static module if basic access control mechanisms are enabled
        enabled = ! factoryCfg.getStartupConfiguration().isAccessControlEnabled();
    }
View Full Code Here

Examples of org.apache.ldap.common.name.DnParser

     */
    public GroupCache( DirectoryServiceConfiguration factoryCfg ) throws NamingException
    {
        this.nexus = factoryCfg.getPartitionNexus();
        this.env = ( Hashtable ) factoryCfg.getEnvironment().clone();
        this.parser = new DnParser( new ConcreteNameComponentNormalizer(
                factoryCfg.getGlobalRegistries().getAttributeTypeRegistry() ) );
        initialize();
    }
View Full Code Here

Examples of org.apache.ldap.common.name.DnParser

        this.nexus = factoryCfg.getPartitionNexus();
        this.factoryCfg = factoryCfg;
        ConcreteNameComponentNormalizer ncn = new ConcreteNameComponentNormalizer(
                factoryCfg.getGlobalRegistries().getAttributeTypeRegistry() );
        ssParser = new SubtreeSpecificationParser( ncn );
        dnParser = new DnParser( ncn );
        evaluator = new SubtreeEvaluator( factoryCfg.getGlobalRegistries().getOidRegistry() );

        // prepare to find all subentries in all namingContexts
        Iterator suffixes = this.nexus.listSuffixes( true );
        ExprNode filter = new SimpleNode( "objectclass", "subentry", LeafNode.EQUALITY );
View Full Code Here

Examples of org.apache.ldap.common.name.DnParser

            entry.put( "createTimestamp", DateUtils.getGeneralizedTime() );
           
            Attribute dn = ( Attribute ) entry.get( "dn" ).clone();
            AttributeTypeRegistry registry = globalRegistries.getAttributeTypeRegistry();
            NameComponentNormalizer ncn = new ConcreteNameComponentNormalizer( registry );
            DnParser parser = new DnParser( ncn );
            Name ndn = parser.parse( ( String ) dn.get() );
           
            partitionNexus.add( ( String ) dn.get(), ndn, entry );
        }
    }
View Full Code Here

Examples of org.apache.ldap.common.name.DnParser

            entry.put( "createTimestamp", DateUtils.getGeneralizedTime() );
           
            Attribute dn = ( Attribute ) entry.get( "dn" ).clone();
            AttributeTypeRegistry registry = globalRegistries.getAttributeTypeRegistry();
            NameComponentNormalizer ncn = new ConcreteNameComponentNormalizer( registry );
            DnParser parser = new DnParser( ncn );
            Name ndn = parser.parse( ( String ) dn.get() );
           
            partitionNexus.add( ( String ) dn.get(), ndn, entry );
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.