Examples of JcrNode


Examples of org.modeshape.web.shared.JcrNode

        try {
            Session session = connector().find(repository).session(workspace);
            Node n = session.getNode(path);

            // convert into value object
            JcrNode node = new JcrNode(repository, workspace, n.getName(), n.getPath(), n.getPrimaryNodeType().getName());
            node.setMixins(mixinTypes(n));
            node.setProperties(getProperties(repository, workspace, path, n));

            node.setPropertyDefs(propertyDefs(n));
            node.setAcl(getAcl(repository, workspace, path));

            NodeIterator it = n.getNodes();
            while (it.hasNext()) {
                Node child = it.nextNode();
                node.addChild(new JcrNode(repository, workspace, child.getName(), child.getPath(), child.getPrimaryNodeType().getName()));
            }
            return node;
        } catch (AccessDeniedException | SecurityException ade) {
            throw new RemoteException(RemoteException.SECURITY_ERROR, ade.getMessage());
        } catch (RepositoryException e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.