Package uk.ac.bbsrc.tgac.miso.core.event.model

Examples of uk.ac.bbsrc.tgac.miso.core.event.model.ProjectOverviewEvent


  }

  @Override
  public boolean respondsTo(Event event) {
    if (event instanceof ProjectOverviewEvent) {
      ProjectOverviewEvent poe = (ProjectOverviewEvent)event;
      ProjectOverview po = poe.getEventObject();
      if (poe.getEventType().equals(MisoEventType.PRIMARY_ANALYSIS_COMPLETED) && po.getPrimaryAnalysisCompleted()) {
        log.info("Project "+poe.getEventObject().getProject().getAlias() +": " + poe.getEventMessage());
        return true;
      }
    }
    return false;
  }
View Full Code Here


  }

  @Override
  public void generateResponse(Event event) {
    if (event instanceof ProjectOverviewEvent) {
      ProjectOverviewEvent re = (ProjectOverviewEvent)event;
      ProjectOverview po = re.getEventObject();

      for (User user : po.getWatchers()) {
        Alert a = new DefaultAlert(user);
        a.setAlertTitle("Primary analysis for project " + po.getProject().getAlias() + "(" + po.getProject().getName() + ")");
        a.setAlertText("The primary analysis related to this Project has completed: "+po.getProject().getAlias()+" ("+event.getEventMessage()+"). Please view Project " +po.getProject().getProjectId() + " in MISO for more information");
View Full Code Here

  public AllLibrariesQcPassedResponderService() {}

  @Override
  public boolean respondsTo(Event event) {
    if (event instanceof ProjectOverviewEvent) {
      ProjectOverviewEvent poe = (ProjectOverviewEvent)event;
      ProjectOverview po = poe.getEventObject();
      if (poe.getEventType().equals(MisoEventType.ALL_LIBRARIES_QC_PASSED) && po.getAllLibrariesQcPassed()) {
        log.debug("Project "+poe.getEventObject().getProject().getAlias() +": " + poe.getEventMessage());
        return true;
      }
    }
    return false;
  }
View Full Code Here

  }

  @Override
  public void generateResponse(Event event) {
    if (event instanceof ProjectOverviewEvent) {
      ProjectOverviewEvent re = (ProjectOverviewEvent)event;
      ProjectOverview po = re.getEventObject();

      for (User user : po.getWatchers()) {
        log.debug("Responding to " + user.getLoginName());

        Alert a = new DefaultAlert(user);
View Full Code Here

  }

  @Override
  public boolean respondsTo(Event event) {
    if (event instanceof ProjectOverviewEvent) {
      ProjectOverviewEvent poe = (ProjectOverviewEvent)event;
      ProjectOverview po = poe.getEventObject();
      if (poe.getEventType().equals(MisoEventType.LIBRARY_PREPARATION_COMPLETED) && po.getLibraryPreparationComplete()) {
        log.info("Project "+poe.getEventObject().getProject().getAlias() +": " + poe.getEventMessage());
        return true;
      }
    }
    return false;
  }
View Full Code Here

  }

  @Override
  public void generateResponse(Event event) {
    if (event instanceof ProjectOverviewEvent) {
      ProjectOverviewEvent re = (ProjectOverviewEvent)event;
      ProjectOverview po = re.getEventObject();

      for (User user : po.getWatchers()) {
        log.info("Responding to " + user.getLoginName());

        Alert a = new DefaultAlert(user);
View Full Code Here

  }

  @Override
  public boolean respondsTo(Event event) {
    if (event instanceof ProjectOverviewEvent) {
      ProjectOverviewEvent poe = (ProjectOverviewEvent)event;
      ProjectOverview po = poe.getEventObject();
      if (poe.getEventType().equals(MisoEventType.ALL_SAMPLES_QC_PASSED) && po.getAllSampleQcPassed()) {
        log.info("Project "+poe.getEventObject().getProject().getAlias() +": " + poe.getEventMessage());
        return true;
      }
    }
    return false;
  }
View Full Code Here

  }

  @Override
  public void generateResponse(Event event) {
    if (event instanceof ProjectOverviewEvent) {
      ProjectOverviewEvent re = (ProjectOverviewEvent)event;
      ProjectOverview po = re.getEventObject();

      for (User user : po.getWatchers()) {
        log.info("Responding to " + user.getLoginName());

        Alert a = new DefaultAlert(user);
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.core.event.model.ProjectOverviewEvent

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.