Package org.olat.core.util.resource

Examples of org.olat.core.util.resource.OLATResourceableJustBeforeDeletedEvent


    // FIXME fg
    // do not need to notify all current users of this resource, since the only
    // way to access this resource
    // FIXME:fj:c to be perfect, still need to notify
    // repositorydetailscontroller and searchresultcontroller....
    CoordinatorManager.getCoordinator().getEventBus().fireEventToListenersOf(new OLATResourceableJustBeforeDeletedEvent(res), res);
    GlossaryManager.getInstance().deleteGlossary(res);
    return true;
  }
View Full Code Here


  /**
   * @see org.olat.core.util.event.GenericEventListener#event(org.olat.core.gui.control.Event)
   */
  public void event(Event event) {
    if (event instanceof OLATResourceableJustBeforeDeletedEvent) {
      OLATResourceableJustBeforeDeletedEvent delEvent = (OLATResourceableJustBeforeDeletedEvent) event;
      if (!delEvent.targetEquals(businessGroup)) throw new AssertException(
          "receiving a delete event for a olatres we never registered for!!!:" + delEvent.getDerivedOres());
      dispose();

    } else if (event instanceof BusinessGroupModifiedEvent) {
      BusinessGroupModifiedEvent bgmfe = (BusinessGroupModifiedEvent) event;
      if (event.getCommand().equals(BusinessGroupModifiedEvent.CONFIGURATION_MODIFIED_EVENT)) {
View Full Code Here

  public boolean cleanupOnDelete(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    // do not need to notify all current users of this resource, since the only
    // way to access this resource
    // FIXME:fj:c to be perfect, still need to notify
    // repositorydetailscontroller and searchresultcontroller....
    CoordinatorManager.getCoordinator().getEventBus().fireEventToListenersOf(new OLATResourceableJustBeforeDeletedEvent(res), res);
    SharedFolderManager.getInstance().deleteSharedFolder(res);
    return true;
  }
View Full Code Here

  /**
   * @see org.olat.group.BusinessGroupManager#deleteBusinessGroup(org.olat.group.BusinessGroup)
   */
  public void deleteBusinessGroup(BusinessGroup businessGroupTodelete) {
    try{
      OLATResourceableJustBeforeDeletedEvent delEv = new OLATResourceableJustBeforeDeletedEvent(businessGroupTodelete);
      // notify all (currently running) BusinessGroupXXXcontrollers
      // about the deletion which will occur.
      CoordinatorManager.getCoordinator().getEventBus().fireEventToListenersOf(delEv, businessGroupTodelete);
 
      String type = businessGroupTodelete.getType();
View Full Code Here

   * @see org.olat.repository.handlers.RepositoryHandler#cleanupOnDelete(org.olat.resource.OLATResourceable,
   *      org.olat.core.gui.UserRequest,
   *      org.olat.core.gui.control.WindowControl)
   */
  public boolean cleanupOnDelete(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    CoordinatorManager.getCoordinator().getEventBus().fireEventToListenersOf(new OLATResourceableJustBeforeDeletedEvent(res), res);
    //delete also notifications
    NotificationsManager.getInstance().deletePublishersOf(res);
    FileResourceManager.getInstance().deleteFileResource(res);
    return true;
  }
View Full Code Here

  /**
   * @see org.olat.repository.handlers.RepositoryHandler#cleanupOnDelete(org.olat.core.id.OLATResourceable org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  public boolean cleanupOnDelete(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    // notify all current users of this resource (content packaging file resource) that it will be deleted now.
    CoordinatorManager.getCoordinator().getEventBus().fireEventToListenersOf(new OLATResourceableJustBeforeDeletedEvent(res), res);
    FileResourceManager.getInstance().deleteFileResource(res);
    return true;
  }
View Full Code Here

    }
  }

  public void event(Event event) {
    if (event instanceof OLATResourceableJustBeforeDeletedEvent) {
      OLATResourceableJustBeforeDeletedEvent delEvent = (OLATResourceableJustBeforeDeletedEvent) event;
      dispose();
   
  } 
View Full Code Here

TOP

Related Classes of org.olat.core.util.resource.OLATResourceableJustBeforeDeletedEvent

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.