Examples of deleteCatalogEntry()


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

        // find all child element of this level that reference our repo entry
        for (CatalogEntry child : children) {
          RepositoryEntry childRepoEntry = child.getRepositoryEntry();
          if (childRepoEntry != null && childRepoEntry.equalsByPersistableKey(repoEntry)) {
            // remove from catalog
            cm.deleteCatalogEntry(child);
          }
        }
        // The catalog entry must have been deleted in the meantime by someone
        // else. In this case we just reload the table data model
        List<CatalogEntry> catalogEntries = CatalogManager.getInstance().getCatalogCategoriesFor(repoEntry);
View Full Code Here

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

    else if (source == dialogDeleteSubtree) {
      if (DialogBoxUIFactory.isYesEvent(event)) {
        // remember the parent of the subtree being deleted
        CatalogEntry parent = currentCatalogEntry.getParent();
        // delete the subtree!!!
        cm.deleteCatalogEntry(currentCatalogEntry);
        // display the parent
        historyStack.remove(historyStack.size() - 1);
        updateContent(ureq.getIdentity(), parent, historyStack.indexOf(parent));
        updateToolAccessRights(ureq, parent, historyStack.indexOf(parent));
        fireEvent(ureq, Event.CHANGED_EVENT);
View Full Code Here

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

    /*
     * from remove link dialog -> yes or no
     */
    else if (source == dialogDeleteLink) {
      if (DialogBoxUIFactory.isYesEvent(event)) {
        cm.deleteCatalogEntry(linkMarkedToBeDeleted);
        updateContent(ureq.getIdentity(), currentCatalogEntry, currentCatalogEntryLevel);
      }
      // in any case, remove the lock
      if (catModificationLock != null && catModificationLock.isSuccess()) {
        CoordinatorManager.getCoordinator().getLocker().releaseLock(catModificationLock);
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.