Package org.modeshape.web.client

Examples of org.modeshape.web.client.RemoteException


            }
        } catch (PathNotFoundException e) {
            logger.debug(e.getLocalizedMessage());
        } catch (Exception e) {
            logger.debug("Unexpected error", e);
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here


            acm.setPolicy(path, acl);
            // session.save();
        } catch (PathNotFoundException e) {
            logger.debug(e.getLocalizedMessage());
        } catch (RepositoryException e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

            }
            String[] res = new String[list.size()];
            list.toArray(res);
            return res;
        } catch (RepositoryException e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

            }
            String[] res = new String[list.size()];
            list.toArray(res);
            return res;
        } catch (RepositoryException e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

                      String workspace ) throws RemoteException {
        Session session = connector().find(repository).session(workspace);
        try {
            session.save();
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

            update(acm, acl, accessList);

            acm.setPolicy(path, accessList);
        } catch (Exception e) {
            e.printStackTrace();
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

            Privilege[] privs = enabled ? includePrivilege(acm, entry.getPrivileges(), permission) : excludePrivilege(entry.getPrivileges(),
                                                                                                                      permission);
            acl.addAccessControlEntry(entry.getPrincipal(), privs);
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

                jcrType.setPrimary(!type.isMixin());
                jcrType.setMixin(type.isMixin());
                list.add(jcrType);
            }
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
        return list;
    }
View Full Code Here

        Session session = connector().find(repository).session(workspace);
        try {
            Node node = session.getNode(path);
            session.move(path, node.getParent().getPath() + "/" + name);
        } catch (Exception e) {
            throw new RemoteException(e.getMessage());
        }
    }
View Full Code Here

        File file = new File(location);
        try {
            FileOutputStream fout = new FileOutputStream(file);
            connector().find(repository).session(workspace).exportSystemView(path, fout, skipBinary, noRecurse);
        } 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.