Examples of fireEventToListenersOf()


Examples of org.olat.core.util.event.EventBus.fireEventToListenersOf()

  public SingleService( String serviceName) {
    this.serviceName = serviceName;
    final OLATResourceable ores = OresHelper.createOLATResourceableType(SingleService.class.getCanonicalName());
    EventBus eventBus = CoordinatorManager.getCoordinator().getEventBus();
    // first fire event, second register as listener because we want not to receive our 'Started event'
    eventBus.fireEventToListenersOf(new ServiceStartedEvent(serviceName), ores );
    log.debug("fireEventToListenersOf serviceName=" + serviceName + "  ores=" + ores.getResourceableTypeName() + ":" + ores.getResourceableId());
    eventBus.registerFor(this, null, ores);
  }
 
  public void event(Event event) {
View Full Code Here

Examples of org.olat.core.util.event.EventBus.fireEventToListenersOf()

    beforePublish.setDeletedCourseNodeIds(deletedCourseNodeIds);
    beforePublish.setInsertedCourseNodeIds(insertedCourseNodeIds);
    beforePublish.setModifiedCourseNodeIds(modifiedCourseNodeIds);
    beforePublish.setState(PublishEvent.PRE_PUBLISH);
    // old course structure accessible
    orec.fireEventToListenersOf(beforePublish, course);
    /*
     * TODO:pb: disucss with fj: listeners could add information to
     * beforePublish event such as a right to veto or add identities who is
     * currently in the course, thus stopping the publishing author from
     * publishing! i.e. if people are in a test or something like this.... we
View Full Code Here

Examples of org.olat.core.util.event.EventBus.fireEventToListenersOf()

    publishEvent.setInsertedCourseNodeIds(insertedCourseNodeIds);
    publishEvent.setModifiedCourseNodeIds(modifiedCourseNodeIds);
    // new course structure accessible
    // CourseFactory is one listener, which removes the course from the
    // cache.
    orec.fireEventToListenersOf(publishEvent, course);
    /*
     * END NEW STYLE PUBLISH
     */

  }
 
View Full Code Here

Examples of org.olat.core.util.event.EventBus.fireEventToListenersOf()

            EfficiencyStatementManager.getInstance().deleteEfficiencyStatementsFromCourse(courseRepoEntry.getKey());           
          }
          //inform everybody else   
          EventBus eventBus = CoordinatorManager.getCoordinator().getEventBus();
          CourseConfigEvent courseConfigEvent = new CourseConfigEvent(CourseConfigEvent.EFFICIENCY_STATEMENT_TYPE, course.getResourceableId());
          eventBus.fireEventToListenersOf(courseConfigEvent, course);
          ThreadLocalUserActivityLogger.log(ceffC.getLoggingAction(), getClass());
        }
        // CourseCalendarConfigController
        if(changedCourseConfig.isCalendarEnabled()!= initialCourseConfig.isCalendarEnabled() && calCfgCtr.getLoggingAction()!=null) {
          ThreadLocalUserActivityLogger.log(calCfgCtr.getLoggingAction(), getClass());
View Full Code Here

Examples of org.olat.core.util.event.EventBus.fireEventToListenersOf()

        initialCourseConfig = course.getCourseEnvironment().getCourseConfig().clone();       
       
        //fire CourseConfigEvent for this course channel
        EventBus eventBus = CoordinatorManager.getCoordinator().getEventBus();
        CourseConfigEvent courseConfigEvent = new CourseConfigEvent(CourseConfigEvent.CALENDAR_TYPE, course.getResourceableId());
        eventBus.fireEventToListenersOf(courseConfigEvent, course);
       
        this.fireEvent(ureq, Event.DONE_EVENT);
      } else if(!DialogBoxUIFactory.isYesEvent(event) || DialogBoxUIFactory.isYesEvent(event)) {       
        this.fireEvent(ureq, Event.DONE_EVENT);
      }
View Full Code Here

Examples of org.olat.core.util.event.EventBus.fireEventToListenersOf()

      }
     
    });//end syncerCallback
    EventBus eb = CoordinatorManager.getCoordinator().getEventBus();
    MultiUserEvent mue = new MultiUserEvent(message);
    eb.fireEventToListenersOf(mue, INFO_MESSAGE_ORES);
  }

  private Property getInfoMsgProperty(final String key) {
    OLATResourceable ores = OresHelper.createOLATResourceableInstance(INFO_MSG, KEY);
   
View Full Code Here

Examples of org.olat.core.util.event.EventBus.fireEventToListenersOf()

          JMSTest.this.event = event;
        }}, id1, ores1);
     
     
      MultiUserEvent mue = new MultiUserEvent("amuecommand");
      bus.fireEventToListenersOf(mue, ores1);
      try {
        Thread.sleep(2000);
      } catch (InterruptedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
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.