Package org.olat.catalog

Examples of org.olat.catalog.CatalogManager.moveCatalogEntry()


    if (source == cancelLink) {
      fireEvent(ureq, Event.CANCELLED_EVENT);         
    } else if (source == selectLink) {
      if (selectedParent != null) {
        CatalogManager cm = CatalogManager.getInstance();       
        boolean success = cm.moveCatalogEntry(toBeMovedEntry, selectedParent);
        if (success) {
          fireEvent(ureq, Event.DONE_EVENT);         
        } else {
          fireEvent(ureq, Event.FAILED_EVENT);
        }         
View Full Code Here


        GenericTreeNode node = (GenericTreeNode) selectionTree.getSelectedNode();
        CatalogManager cm = CatalogManager.getInstance();
        Long newParentId = Long.parseLong(node.getIdent());
        CatalogEntry newParent = cm.loadCatalogEntry(newParentId);
        if (!cm.moveCatalogEntry(moveMe, newParent)) {
          fireEvent(ureq, Event.FAILED_EVENT);
        } else {
          fireEvent(ureq, Event.DONE_EVENT);
        }
      } else if (te.getCommand().equals(TreeEvent.COMMAND_CANCELLED)) {
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.