Package org.apache.directory.server.core

Examples of org.apache.directory.server.core.DefaultDirectoryService


        return partition;
    }

    public void start() throws Exception {
        // Initialize the LDAP service
        service = new DefaultDirectoryService();

        service.setWorkingDirectory(workingDir);

        // Disable the ChangeLog system
        service.getChangeLog().setEnabled(false);
View Full Code Here


    private SchemaManager loadSchemaManager() throws Exception
    {
        // --------------------------------------------------------------------
        // Load the bootstrap schemas to start up the schema partition
        // --------------------------------------------------------------------
        directoryService = new DefaultDirectoryService();
        directoryService.setWorkingDirectory( getInstanceLayout().getPartitionsDir() );
        directoryService.startup();

        SchemaManager schemaManager = directoryService.getSchemaManager();
       
View Full Code Here

    private void startEmbeddedServer( File workDir )
    {
        try
        {
            dirService = new DefaultDirectoryService();
            dirService.setShutdownHookEnabled( false );
            dirService.setWorkingDirectory( workDir );
            int consumerPort = AvailablePortFinder.getNextAvailable( 1024 );

            initSchema( dirService );
View Full Code Here

    @BeforeClass
    public static void setUp() throws Exception
    {
        // setup working directory
        directoryService = new DefaultDirectoryService();
        String tmpDirPath = System.getProperty( "workingDirectory", System.getProperty( "java.io.tmpdir" ) );
        File workingDirectory = new File( tmpDirPath + "/server-work-"
            + PartitionSchemaLoaderTest.class.getSimpleName() );
        instanceLayout = new InstanceLayout( workingDirectory );
        directoryService.setInstanceLayout( instanceLayout );
View Full Code Here

     * @throws Exception if there were some problems while initializing the system
     */
    private void initDirectoryService( File workDir ) throws Exception
    {
        // Initialize the LDAP service
        service = new DefaultDirectoryService();
        service.setWorkingDirectory( workDir );
       
        // first load the schema
        initSchemaPartition();
       
View Full Code Here

    public void reset(final File workingDirectory) throws Exception
    {
        SchemaLdifExtractor extractor = new DefaultSchemaLdifExtractor(workingDirectory);
        extractor.extractOrCopy(true);

        service = new DefaultDirectoryService();
        service.setWorkingDirectory(workingDirectory);
        service.getChangeLog().setEnabled(false);
        service.setSystemPartition(createSystemPartition(service, workingDirectory));
    }
View Full Code Here

        {
            throw new Exception("Cannot delete apacheds working Directory: "+workingDir.getAbsolutePath());
        }
       
        // Initialize the LDAP service
        service = new DefaultDirectoryService();
       
        // Disable the ChangeLog system
        service.getChangeLog().setEnabled( true );
        service.setDenormalizeOpAttrsEnabled( true );
       
View Full Code Here

TOP

Related Classes of org.apache.directory.server.core.DefaultDirectoryService

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.