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

Examples of org.apache.lenya.cms.site.tree.SiteTree.moveUp()


            if (structure instanceof SiteTree) {

                SiteTree tree = (SiteTree) structure;
                String direction = getParameterAsString(DIRECTION);
                if (direction.equals(UP)) {
                    tree.moveUp(getSourceDocument().getPath());
                } else if (direction.equals(DOWN)) {
                    tree.moveDown(getSourceDocument().getPath());
                } else {
                    throw new IllegalArgumentException("The direction [" + direction
                            + "] is not supported.");
View Full Code Here


            if (structure instanceof SiteTree) {

                SiteTree tree = (SiteTree) structure;
                String direction = getParameterAsString(DIRECTION);
                if (direction.equals(UP)) {
                    tree.moveUp(getSourceDocument().getId());
                } else if (direction.equals(DOWN)) {
                    tree.moveDown(getSourceDocument().getId());
                } else {
                    throw new IllegalArgumentException("The direction [" + direction
                            + "] is not supported.");
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.