Package org.brixcms.jcr.api

Examples of org.brixcms.jcr.api.JcrNode.addNode()


            }

            checkForSiteRoot(web);

            if (!web.hasNode(GLOBAL_CONTAINER_NODE_NAME)) {
                GlobalContainerNode.initialize(web.addNode(GLOBAL_CONTAINER_NODE_NAME, "nt:file"));
            }

            if (!web.hasNode(WEBDAV_RULES_NODE_NAME)) {
                RulesNode.initialize((BrixNode) web.addNode(WEBDAV_RULES_NODE_NAME,
                        "nt:unstructured"));
View Full Code Here


            if (!web.hasNode(GLOBAL_CONTAINER_NODE_NAME)) {
                GlobalContainerNode.initialize(web.addNode(GLOBAL_CONTAINER_NODE_NAME, "nt:file"));
            }

            if (!web.hasNode(WEBDAV_RULES_NODE_NAME)) {
                RulesNode.initialize((BrixNode) web.addNode(WEBDAV_RULES_NODE_NAME,
                        "nt:unstructured"));
            }
        }
    }
View Full Code Here

            ;
            String error = getString("resourceExists", new Model<ModelObject>(new ModelObject()));
            error(error);
        } else {
            FolderNode node = (FolderNode) parent.addNode(name, "nt:folder");
            parent.save();

            SitePlugin.get().selectNode(this, node, true);
        }
    }
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.