Package org.apache.lenya.cms.site.tree

Examples of org.apache.lenya.cms.site.tree.SiteTreeNode


            SiteStructure structure = siteManager.getSiteStructure(getSourceDocument()
                    .getIdentityMap(), publication, getSourceDocument().getArea());
            if (structure instanceof SiteTree) {

                SiteTree tree = (SiteTree) structure;
                SiteTreeNode node = tree.getNode(getSourceDocument().getId());
                SiteTreeNode[] siblings = null;

                String direction = getParameterAsString(DIRECTION);
                if (direction.equals(UP)) {
                    siblings = node.getPrecedingSiblings();
                } else if (direction.equals(DOWN)) {
                    siblings = node.getNextSiblings();
                } else {
                    addErrorMessage("nudge-error-direction-unknown", new String[] { direction });
                }

                if (siblings != null && siblings.length == 0) {
View Full Code Here

TOP

Related Classes of org.apache.lenya.cms.site.tree.SiteTreeNode

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.