Package org.olat.modules.webFeed.managers

Examples of org.olat.modules.webFeed.managers.FeedManager.acquireLock()


      itemFormCtr = uiFactory.createItemFormController(ureq, getWindowControl(), currentItem, feed);
      activateModalDialog(itemFormCtr);

    } else if (editButtons != null && editButtons.contains(source)) {
      currentItem = (Item) ((Link) source).getUserObject();
      lock = feedManager.acquireLock(feed, currentItem, getIdentity());
      if (lock.isSuccess()) {

        itemFormCtr = uiFactory.createItemFormController(ureq, getWindowControl(), currentItem, feed);
        activateModalDialog(itemFormCtr);
      } else {
View Full Code Here


        }
      }
    } else if (source == confirmDialogCtr && DialogBoxUIFactory.isYesEvent(event)) {
      // The user confirmed that the item shall be deleted
      Item item = (Item) ((DialogBoxController) source).getUserObject();
      lock = feedManager.acquireLock(feed, item, getIdentity());
      if (lock.isSuccess()) {
        // remove the item from the naviCtr
        naviCtr.remove(item);
        // remove the item also from the helper (cached selection)
        helper.removeItem(item);
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.