Examples of JcrException


Examples of org.brixcms.jcr.exception.JcrException

        EventUtil.raiseSaveEvent(node);
    }

    public void handleException(Exception e) {
        if (e instanceof RepositoryException) {
            throw new JcrException((RepositoryException) e);
        } else {
            throw new BrixException(e);
        }
    }
View Full Code Here

Examples of org.brixcms.jcr.exception.JcrException

        try {
            JcrSession session = JcrSession.Wrapper.wrap(node.getSession(), null);
            JcrNode wrapped = JcrNode.Wrapper.wrap(node, session);
            raiseSaveEvent(wrapped);
        } catch (RepositoryException e) {
            throw new JcrException(e);
        }
    }
View Full Code Here

Examples of org.brixcms.jcr.exception.JcrException

        if (behavior != null) {
            behavior.handleException(e);
        } else {
            if (e instanceof RepositoryException) {
                throw new JcrException((RepositoryException) e);
            } else {
                throw new RuntimeException(e);
            }
        }
    }
View Full Code Here

Examples of org.brixcms.workspace.JcrException

        try {
            org.apache.jackrabbit.core.WorkspaceImpl workspace = (org.apache.jackrabbit.core.WorkspaceImpl) session
                    .getWorkspace();
            workspace.createWorkspace(workspaceName);
        } catch (RepositoryException e) {
            throw new JcrException(e);
        } finally {
            closeSession(session, false);
        }
    }
View Full Code Here

Examples of org.brixcms.workspace.JcrException

    protected List<String> getAccessibleWorkspaceNames() {
        Session session = createSession(null);
        try {
            return Arrays.asList(session.getWorkspace().getAccessibleWorkspaceNames());
        } catch (RepositoryException e) {
            throw new JcrException(e);
        } finally {
            closeSession(session, false);
        }
    }
View Full Code Here

Examples of org.brixcms.workspace.JcrException

        Session session = createSession(null);
        try {
            session.getWorkspace().createWorkspace(workspaceName);
        }
        catch (RepositoryException e) {
            throw new JcrException(e);
        }
        finally {
            session.logout();
        }
    }
View Full Code Here

Examples of org.brixcms.workspace.JcrException

        Session session = createSession(null);
        try {
            return Arrays.asList(session.getWorkspace().getAccessibleWorkspaceNames());
        }
        catch (RepositoryException e) {
            throw new JcrException(e);
        }
        finally {
            session.logout();
        }
    }
View Full Code Here

Examples of org.brixcms.workspace.JcrException

        try {
            session = brix.wrapSession(node.getSession());
            return (BrixNode) NodeWrapper.wrap(node, session);
        }
        catch (RepositoryException e) {
            throw new JcrException(e);
        }
    }
View Full Code Here

Examples of org.brixcms.workspace.JcrException

        Session session = createSession(null);
        try {
            session.getWorkspace().createWorkspace(workspaceName);
        }
        catch (RepositoryException e) {
            throw new JcrException(e);
        }
        finally {
            closeSession(session, false);
        }
    }
View Full Code Here

Examples of org.brixcms.workspace.JcrException

        Session session = createSession(null);
        try {
            return Arrays.asList(session.getWorkspace().getAccessibleWorkspaceNames());
        }
        catch (RepositoryException e) {
            throw new JcrException(e);
        }
        finally {
            closeSession(session, false);
        }
    }
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.