Package org.brixcms.jcr.api

Examples of org.brixcms.jcr.api.JcrWorkspace


            @Override
            public void onClick(AjaxRequestTarget target) {
                List<JcrNode> nodes = getSelectedNodes();
                if (!nodes.isEmpty()) {
                    Brix brix = ((BrixNode) nodes.iterator().next()).getBrix();
                    JcrWorkspace targetWorkspace = brix.getCurrentSession(targetWorkspaceId).getWorkspace();
                    Map<JcrNode, List<JcrNode>> dependencies = JcrUtil.getUnsatisfiedDependencies(
                            nodes, targetWorkspace);
                    ;
                    if (!dependencies.isEmpty()) {
                        message.setDefaultModelObject(getDependenciesMessage(dependencies));
                    } else {
                        JcrNode rootNode = targetNode.getObject();
                        if (rootNode == null) {
                            rootNode = targetWorkspace.getSession().getRootNode();
                        }
                        PrototypePlugin.get().restoreNodes(nodes, rootNode);
                        findParent(ModalWindow.class).close(target);
                    }
                } else {
View Full Code Here

TOP

Related Classes of org.brixcms.jcr.api.JcrWorkspace

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.