Package org.apache.jackrabbit.oak.spi.security

Examples of org.apache.jackrabbit.oak.spi.security.OpenSecurityProvider


    private Root root;

    @Before
    public void setUp() throws CommitFailedException {
        root = new Oak()
            .with(new OpenSecurityProvider())
            .with(new InitialContent())
            .createContentSession().getLatestRoot();

        Tree tree = root.getTree("/");
        Tree x = tree.addChild("x");
View Full Code Here


    protected OakBaseTest(NodeStoreFixture fixture) {
        this.fixture = fixture;
    }

    protected ContentRepository createContentRepository() {
        return new Oak(store).with(new OpenSecurityProvider()).createContentRepository();
    }
View Full Code Here

    protected ContentRepository createContentRepository() {
        return new Oak(store).with(new OpenSecurityProvider()).createContentRepository();
    }

    protected ContentSession createContentSession() {
        return new Oak(store).with(new OpenSecurityProvider()).createContentSession();
    }
View Full Code Here

*/
public class OakTest {

    @Test
    public void testWithDefaultWorkspaceName() throws Exception {
        ContentRepository repo = new Oak().with("test").with(new OpenSecurityProvider()).createContentRepository();

        String[] valid = new String[] {null, "test"};
        for (String wspName : valid) {
            ContentSession cs = null;
            try {
View Full Code Here

    private Root theirRoot;

    @Before
    public void setUp() throws CommitFailedException {
        ContentSession session = new Oak()
                .with(new OpenSecurityProvider())
                .with(DefaultConflictHandler.THEIRS)
                .createContentSession();

        // Add test content
        Root root = session.getLatestRoot();
View Full Code Here

        assertEquals(store.getRoot(), new SegmentNodeStore(backup).getRoot());
        backup.close();
    }

    private static void init(NodeStore store) {
        new Oak(store).with(new OpenSecurityProvider())
                .with(new InitialContent()).createContentRepository();
    }
View Full Code Here

        super(fixture);
    }

    @Override
    protected ContentSession createContentSession() {
        return new Oak(store).with(new OpenSecurityProvider())
                .with(new InitialContent())
                .with(new NamespaceEditorProvider()).createContentSession();
    }
View Full Code Here

    }

    @Override
    protected ContentRepository createRepository() {
        return new Oak().with(new InitialContent())
            .with(new OpenSecurityProvider())
            .with(new LowCostOrderedPropertyIndexProvider())
            .with(new OrderedPropertyIndexEditorProvider())
            .createContentRepository();
    }
View Full Code Here

     * initiate the environment for testing with proper OrderedPropertyIndexProvider
     * @throws Exception
     */
    protected void initWithProperProvider() throws Exception {
        session = new Oak().with(new InitialContent())
            .with(new OpenSecurityProvider())
            .with(new OrderedPropertyIndexProvider())
            .with(new OrderedPropertyIndexEditorProvider())
            .createContentRepository().login(null, null);
        root = session.getLatestRoot();
        qe = root.getQueryEngine();
View Full Code Here

                        NodeBuilder index = IndexUtils.getOrCreateOakIndex(builder);
                        IndexUtils.createIndexDefinition(index, "myProp", true,
                                false, ImmutableList.<String>of("myProp"), null);
                    }
                })
                .with(new OpenSecurityProvider())
                .with(new PropertyIndexProvider())
                .with(new PropertyIndexEditorProvider())
                .createContentRepository();
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.spi.security.OpenSecurityProvider

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.