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

Examples of org.apache.jackrabbit.oak.plugins.index.p2.Property2IndexLookup


        with(new NamespaceValidatorProvider());
        with(new TypeValidatorProvider());
        with(new RegistrationValidatorProvider());
        with(new ConflictValidatorProvider());

        with(new Property2IndexHookProvider());
        with(new AnnotatingConflictHandler());

        with(new Property2IndexProvider());
        with(new NodeTypeIndexProvider());
    }
View Full Code Here


            return new CompositeHook(
                    new DefaultTypeEditor(),
                    new ValidatingHook(createDefaultValidatorProvider()),
                    IndexHookManager.of(
                            new CompositeIndexHookProvider(
                            new Property2IndexHookProvider(),
                            new LuceneIndexHookProvider())));
        }
View Full Code Here

    @Before
    public void setup() {
        MicroKernel mk = new MicroKernelImpl();
        store = new KernelNodeStore(mk);
        store.setHook(IndexHookManager.of(new Property2IndexHookProvider()));
        // initialize node types & index definitions
        new InitialContent().initialize(store);
    }
View Full Code Here

    @Before
    public void setUp() throws Exception {
        root = new Oak()
                .with(new InitialContent())
                .with(new Property2IndexHookProvider())
                .createRoot();

        defaultConfig = new ConfigurationParameters();
        defaultUserPath = defaultConfig.getConfigValue(UserConstants.PARAM_USER_PATH, UserConstants.DEFAULT_USER_PATH);
        defaultGroupPath = defaultConfig.getConfigValue(UserConstants.PARAM_GROUP_PATH, UserConstants.DEFAULT_GROUP_PATH);
View Full Code Here

                .setProperty(JCR_PRIMARYTYPE, INDEX_DEFINITIONS_NODE_TYPE,
                        Type.NAME);
        NodeState after = builder.getNodeState();

        IndexHookProvider provider = new CompositeIndexHookProvider(
                new Property2IndexHookProvider());

        // <type, <path, indexhook>>
        Map<String, Map<String, List<IndexHook>>> updates = new HashMap<String, Map<String, List<IndexHook>>>();
        NodeStateDiff diff = new IndexHookManagerDiff(provider, builder,
                updates);
View Full Code Here

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

        NodeState after = builder.getNodeState();

        IndexHookManager im = new IndexHookManager(
                new CompositeIndexHookProvider(new Property2IndexHookProvider()));
        NodeState indexed = im.processCommit(before, after);

        // first check that the index content nodes exist
        checkPathExists(indexed, "oak:index", "rootIndex", ":index");
        checkPathExists(indexed, "newchild", "other", "oak:index", "subIndex",
View Full Code Here

                .setProperty(JCR_PRIMARYTYPE, INDEX_DEFINITIONS_NODE_TYPE,
                        Type.NAME);
        NodeState after = builder.getNodeState();

        IndexHookManager im = new IndexHookManager(
                new CompositeIndexHookProvider(new Property2IndexHookProvider()));
        NodeState indexed = im.processCommit(before, after);

        // first check that the index content nodes exist
        NodeState ns = checkPathExists(indexed, "oak:index", "rootIndex");
        checkPathExists(ns, ":index");
View Full Code Here

                .setProperty(JCR_PRIMARYTYPE, INDEX_DEFINITIONS_NODE_TYPE,
                        Type.NAME);
        NodeState after = builder.getNodeState();

        IndexHookManager im = new IndexHookManager(
                new CompositeIndexHookProvider(new Property2IndexHookProvider()));
        NodeState indexed = im.processCommit(before, after);

        // first check that the index content nodes exist
        NodeState ns = checkPathExists(indexed, "oak:index", "rootIndex");
        checkPathExists(ns, ":index");
View Full Code Here

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

        IndexHookManager im = new IndexHookManager(
                new CompositeIndexHookProvider(new Property2IndexHookProvider()));
        NodeState indexed = im.processCommit(before, after);

        // first check that the index content nodes exist
        NodeState ns = checkPathExists(indexed, "oak:index", "rootIndex");
        checkPathExists(ns, ":index");
View Full Code Here

    @Test
    public void testUniqueness() throws CommitFailedException {

        Root root = new Oak()
                .with(new Property2IndexHookProvider())
                .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

TOP

Related Classes of org.apache.jackrabbit.oak.plugins.index.p2.Property2IndexLookup

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.