Package org.neo4j.server.database

Examples of org.neo4j.server.database.Database


        if (masterCredendials == null) {
            throw new RuntimeException("missing master-credentials in neo4j-server.properties");
        }

        final SingleUserAuthenticationService adminAuth = new SingleUserAuthenticationService(masterCredendials);
        Database database = neoServer.getDatabase();
        GraphDatabaseAPI graphDatabaseAPI = database.getGraph();
        final MultipleAuthenticationService users = new MultipleAuthenticationService(graphDatabaseAPI);

        adminAuthenticationFilter = new AuthenticationFilter("neo4j-admin", adminAuth);
        adminPath = getMyMountpoint(configurator) + "/*";
        webServer.addFilter(adminAuthenticationFilter, adminPath);
View Full Code Here


    @Before
    public void setUp() throws Exception
    {
        startTime = System.nanoTime();
        db = new EmbeddedGraphDatabase("target/db" );
        this.database  = new Database((AbstractGraphDatabase) db );
        directionsPlugin = new DirectionsResource(null, database,  null )

    }
View Full Code Here

TOP

Related Classes of org.neo4j.server.database.Database

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.