Package org.jahia.services.content.decorator

Examples of org.jahia.services.content.decorator.JCRMountPointNode


                            mounts = parent.getNode("mounts");
                        } catch (PathNotFoundException nfe) {
                            mounts = parent.addNode("mounts", "jnt:systemFolder");
                        }

                        JCRMountPointNode childNode = null;
                        if (!mounts.isFile()) {
                            if (!mounts.isCheckedOut()) {
                                mounts.checkout();
                            }

                            childNode = (JCRMountPointNode) mounts.addNode(name, "jnt:vfsMountPoint");
                            childNode.setProperty("j:root", root);

                            boolean valid = childNode.checkMountPointValidity();
                            if (!valid) {
                                childNode.remove();
                                throw new RepositoryException("Invalid path");
                            }
                            session.save();
                        }
                        if (childNode == null) {
View Full Code Here

TOP

Related Classes of org.jahia.services.content.decorator.JCRMountPointNode

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.