Package org.modeshape.web.client

Examples of org.modeshape.web.client.RemoteException


                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) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here


            rs.setRows(rows);
            logger.debug("Query result: " + rs.getRows().size());
            return rs;
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

        try {
            Session session = connector().find(repository).session(workspace);
            QueryManager qm = session.getWorkspace().getQueryManager();
            return qm.getSupportedQueryLanguages();
        } catch (RepositoryException e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

        Session session = connector().find(repository).session(workspace);
        try {
            Node node = (Node)session.getItem(path);
            node.addNode(name, primaryType);
        } catch (RepositoryException e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

            Node node = (Node)session.getItem(path);
            node.remove();
        } catch (PathNotFoundException e) {
            logger.debug(e.getLocalizedMessage());
        } catch (RepositoryException e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

            Node node = (Node)session.getItem(path);
            node.addMixin(mixin);
        } catch (PathNotFoundException e) {
            logger.debug(e.getLocalizedMessage());
        } catch (RepositoryException e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

            Node node = (Node)session.getItem(path);
            node.removeMixin(mixin);
        } catch (PathNotFoundException e) {
            logger.debug(e.getLocalizedMessage());
        } catch (RepositoryException e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

        Session session = connector().find(node.getRepository()).session(node.getWorkspace());
        try {
            Node n = session.getNode(node.getPath());
            n.setProperty(name, value);
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

        Session session = connector().find(node.getRepository()).session(node.getWorkspace());
        try {
            Node n = session.getNode(node.getPath());
            n.setProperty(name, value);
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

            Node n = session.getNode(node.getPath());
            Calendar calendar = Calendar.getInstance();
            calendar.setTime(value);
            n.setProperty(name, calendar);
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of org.modeshape.web.client.RemoteException

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.