Package org.modeshape.jdbc.rest

Examples of org.modeshape.jdbc.rest.NodeTypes


    @Override
    public Collection<NodeType> nodeTypes() throws RepositoryException {
        Map<String, NodeType> nodeTypes = this.nodeTypes.get();
        if (nodeTypes == null) {
            NodeTypes restNodeTypes = this.restClient.getNodeTypes();
            if (restNodeTypes.isEmpty()) {
                throw new RepositoryException(JdbcLocalI18n.noNodeTypesReturned.text(restClient.serverUrl()));
            }
            nodeTypes = new HashMap<>();
            for (org.modeshape.jdbc.rest.NodeType nodeType : restNodeTypes) {
                nodeTypes.put(nodeType.getName(), nodeType);
View Full Code Here

TOP

Related Classes of org.modeshape.jdbc.rest.NodeTypes

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.