Package org.modeshape.jcr.api.index.IndexDefinition

Examples of org.modeshape.jcr.api.index.IndexDefinition.IndexKind


        String desc = strings.create(first(indexDefn, JcrLexicon.DESCRIPTION));
        String providerNameStr = strings.create(providerName);
        String kindStr = strings.create(first(indexDefn, ModeShapeLexicon.KIND));
        String workspacesRule = strings.create(first(indexDefn, ModeShapeLexicon.WORKSPACES));
        boolean synchronous = booleans.create(first(indexDefn, ModeShapeLexicon.SYNCHRONOUS));
        IndexKind kind = IndexKind.valueOf(kindStr);
        String nodeTypeName = strings.create(names.create(first(indexDefn, ModeShapeLexicon.NODE_TYPE_NAME)));
        Map<String, Object> extendedProps = new HashMap<>();
        for (Iterator<Property> props = indexDefn.getProperties(system); props.hasNext();) {
            Property prop = props.next();
            if (NON_EXTENDED_PROPERTIES.contains(prop.getName())) continue;
View Full Code Here


        RepositoryConfiguration config = assertValid("config/repo-config-local-provider-and-notional-indexes.json");
        Indexes indexes = config.getIndexes();
        EnumSet<IndexKind> found = EnumSet.noneOf(IndexKind.class);
        for (String indexName : indexes.getIndexNames()) {
            IndexDefinition defn = indexes.getIndex(indexName);
            IndexKind kind = defn.getKind();
            found.add(kind);
            assertThat(kind, is(notNullValue()));
        }
        assertThat(found, is(EnumSet.allOf(IndexKind.class)));
    }
View Full Code Here

TOP

Related Classes of org.modeshape.jcr.api.index.IndexDefinition.IndexKind

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.