Package org.apache.directory.server.core.shared

Examples of org.apache.directory.server.core.shared.DefaultDnFactory


        LdifSchemaLoader loader = new LdifSchemaLoader( schemaRepository );

        schemaManager = new DefaultSchemaManager( loader );
        CacheService cacheService = new CacheService();
        cacheService.initialize( null );
        dnFactory = new DefaultDnFactory( schemaManager, cacheService.getCache( "dnCache" ) );

        boolean loaded = schemaManager.loadAllEnabled();

        if ( !loaded )
        {
View Full Code Here


        CacheService cacheService = new CacheService();
        cacheService.initialize( instanceLayout );

        initSchemaManager( instanceLayout );
        DnFactory dnFactory = new DefaultDnFactory( schemaManager, cacheService.getCache( "dnCache" ) );
        initSchemaLdifPartition( instanceLayout, dnFactory );
        initConfigPartition( instanceLayout, dnFactory, cacheService );

        // Read the configuration
        cpReader = new ConfigPartitionReader( configPartition );
View Full Code Here

        accessControlAPCache = new DnNode<AccessControlAdministrativePoint>();
        collectiveAttributeAPCache = new DnNode<CollectiveAttributeAdministrativePoint>();
        subschemaAPCache = new DnNode<SubschemaAdministrativePoint>();
        triggerExecutionAPCache = new DnNode<TriggerExecutionAdministrativePoint>();

        dnFactory = new DefaultDnFactory( schemaManager, cacheService.getCache( "dnCache" ) );

        // triggers partition to load schema fully from schema partition
        schemaPartition.setCacheService( cacheService );
        schemaPartition.initialize();
        partitions.add( schemaPartition );
View Full Code Here

        accessControlAPCache = new DnNode<AccessControlAdministrativePoint>();
        collectiveAttributeAPCache = new DnNode<CollectiveAttributeAdministrativePoint>();
        subschemaAPCache = new DnNode<SubschemaAdministrativePoint>();
        triggerExecutionAPCache = new DnNode<TriggerExecutionAdministrativePoint>();

        dnFactory = new DefaultDnFactory( schemaManager, cacheService.getCache( "dnCache" ) );

        // triggers partition to load schema fully from schema partition
        schemaPartition.setCacheService( cacheService );
        schemaPartition.initialize();
        partitions.add( schemaPartition );
View Full Code Here

        accessControlAPCache = new DnNode<AccessControlAdministrativePoint>();
        collectiveAttributeAPCache = new DnNode<CollectiveAttributeAdministrativePoint>();
        subschemaAPCache = new DnNode<SubschemaAdministrativePoint>();
        triggerExecutionAPCache = new DnNode<TriggerExecutionAdministrativePoint>();

        dnFactory = new DefaultDnFactory( schemaManager, cacheService.getCache( "dnCache" ) );

        // triggers partition to load schema fully from schema partition
        schemaPartition.setCacheService( cacheService );
        schemaPartition.initialize();
        partitions.add( schemaPartition );
View Full Code Here

    subschemaAPCache = new DnNode<SubschemaAdministrativePoint>();
    triggerExecutionAPCache = new DnNode<TriggerExecutionAdministrativePoint>();

    if ( dnFactory == null )
    {
      dnFactory = new DefaultDnFactory( schemaManager, cacheService.getCache( "dnCache" ) );
    }

    // triggers partition to load schema fully from schema partition
    schemaPartition.setCacheService( cacheService );
    schemaPartition.initialize();
View Full Code Here

        accessControlAPCache = new DnNode<AccessControlAdministrativePoint>();
        collectiveAttributeAPCache = new DnNode<CollectiveAttributeAdministrativePoint>();
        subschemaAPCache = new DnNode<SubschemaAdministrativePoint>();
        triggerExecutionAPCache = new DnNode<TriggerExecutionAdministrativePoint>();

        dnFactory = new DefaultDnFactory( schemaManager, cacheService.getCache( "dnCache" ) );

        // triggers partition to load schema fully from schema partition
        schemaPartition.initialize();
        partitions.add( schemaPartition );
        systemPartition.getSuffixDn().apply( schemaManager );
View Full Code Here

            fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
        }

        CacheManager.getInstance().addCacheIfAbsent( "dnCache" );
        Cache dnCache = CacheManager.getInstance().getCache( "dnCache" );
        dnFactory = new DefaultDnFactory( schemaManager, dnCache );

        ncn = new ConcreteNameComponentNormalizer( schemaManager );

        visitor = new FilterNormalizingVisitor( ncn, schemaManager );
        evaluator = new SubtreeEvaluator( schemaManager );
View Full Code Here

            fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
        }

        CacheManager.getInstance().addCacheIfAbsent( "dnCache" );
        Cache dnCache = CacheManager.getInstance().getCache( "dnCache" );
        dnFactory = new DefaultDnFactory( schemaManager, dnCache );

        ncn = new ConcreteNameComponentNormalizer( schemaManager );

        visitor = new FilterNormalizingVisitor( ncn, schemaManager );
        evaluator = new SubtreeEvaluator( schemaManager );
View Full Code Here

        accessControlAPCache = new DnNode<AccessControlAdministrativePoint>();
        collectiveAttributeAPCache = new DnNode<CollectiveAttributeAdministrativePoint>();
        subschemaAPCache = new DnNode<SubschemaAdministrativePoint>();
        triggerExecutionAPCache = new DnNode<TriggerExecutionAdministrativePoint>();

        dnFactory = new DefaultDnFactory( schemaManager, cacheService.getCache( "dnCache" ) );

        // triggers partition to load schema fully from schema partition
        schemaPartition.setCacheService( cacheService );
        schemaPartition.initialize();
        partitions.add( schemaPartition );
View Full Code Here

TOP

Related Classes of org.apache.directory.server.core.shared.DefaultDnFactory

Copyright © 2018 www.massapicom. 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.