Package org.apache.jackrabbit.oak.plugins.index.property

Examples of org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditorProvider


     *
     */
    @Test
    public void testAsyncDoubleSubtree() throws Exception {
        NodeStore store = new MemoryNodeStore();
        IndexEditorProvider provider = new PropertyIndexEditorProvider();

        NodeBuilder builder = store.getRoot().builder();
        createIndexDefinition(builder.child(INDEX_DEFINITIONS_NAME),
                "rootIndex", true, false, ImmutableSet.of("foo"), null)
                .setProperty(ASYNC_PROPERTY_NAME, "async");
View Full Code Here


    @Test
    public void testUniqueness() throws CommitFailedException {

        Root root = new Oak()
                .with(new OpenSecurityProvider())
                .with(new PropertyIndexEditorProvider())
                .with(new InitialContent()).createRoot();

        NodeUtil node = new NodeUtil(root.getTree("/"));
        String uuid =  UUID.randomUUID().toString();
        node.setString(JcrConstants.JCR_UUID, uuid);
View Full Code Here

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

        addFolder(root, "folder-2");
        addFile(root, "file-1");

        branch.setRoot(root.getNodeState());
        branch.merge(new EditorHook(new IndexUpdateProvider(
                new PropertyIndexEditorProvider())));

        NodeState rootState = store.getRoot();
        NodeTypeIndex index = new NodeTypeIndex();
        FilterImpl filter;
View Full Code Here

    @Before
    public void before() throws Exception {
        Oak oak = new Oak()
                .with(new InitialContent())
                .with(new PropertyIndexEditorProvider())
                .with(new PropertyIndexProvider())
                .with(new RegistrationEditorProvider())
                .with(getSecurityProvider());
        withEditors(oak);
        contentRepository = oak.createContentRepository();
View Full Code Here

        userParams.put(UserConstants.PARAM_ADMIN_PW, null);

        ConfigurationParameters params = new ConfigurationParameters(ImmutableMap.of(UserConfiguration.PARAM_USER_OPTIONS, new ConfigurationParameters(userParams)));
        SecurityProvider sp = new SecurityProviderImpl(params);
        final ContentRepository repo = new Oak().with(new InitialContent())
                .with(new PropertyIndexEditorProvider())
                .with(new PropertyIndexProvider())
                .with(new RegistrationEditorProvider())
                .with(sp)
                .createContentRepository();
View Full Code Here

                .setProperty("foo", "xyz");

        NodeState after = builder.getNodeState();

        IndexUpdateProvider p = new IndexUpdateProvider(
                new PropertyIndexEditorProvider());
        EditorHook hook = new EditorHook(p);
        NodeState indexed = hook.processCommit(before, after);

        // first check that the index content nodes exist
        checkPathExists(indexed, INDEX_DEFINITIONS_NAME, "rootIndex",
View Full Code Here

                "rootIndex", true, false, ImmutableSet.of("foo"), null);

        NodeState after = builder.getNodeState();

        IndexUpdateProvider p = new IndexUpdateProvider(
                new PropertyIndexEditorProvider());
        EditorHook hook = new EditorHook(p);
        NodeState indexed = hook.processCommit(before, after);

        // first check that the index content nodes exist
        NodeState ns = checkPathExists(indexed, INDEX_DEFINITIONS_NAME,
View Full Code Here

        builder.child(INDEX_DEFINITIONS_NAME).child("rootIndex")
                .setProperty(REINDEX_PROPERTY_NAME, true);
        NodeState after = builder.getNodeState();

        IndexUpdateProvider p = new IndexUpdateProvider(
                new PropertyIndexEditorProvider());
        EditorHook hook = new EditorHook(p);
        NodeState indexed = hook.processCommit(before, after);

        // first check that the index content nodes exist
        NodeState ns = checkPathExists(indexed, INDEX_DEFINITIONS_NAME,
View Full Code Here

                        .child(INDEX_DEFINITIONS_NAME), "index2", true, false,
                ImmutableSet.of("foo"), null);
        NodeState after = builder.getNodeState();

        IndexUpdateProvider p = new IndexUpdateProvider(
                new PropertyIndexEditorProvider());
        EditorHook hook = new EditorHook(p);
        NodeState indexed = hook.processCommit(before, after);

        // check that the index content nodes exist
        checkPathExists(indexed, INDEX_DEFINITIONS_NAME, "existing",
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.index.property.PropertyIndexEditorProvider

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.