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

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


    }
  }

  protected void fireSampleQcPassedEvent() {
    if (this.getOverviewId() != null) {
      ProjectOverviewEvent poe = new ProjectOverviewEvent(this, MisoEventType.ALL_SAMPLES_QC_PASSED, this.getProject().getAlias() + " : all project samples have passed QC.");
      for (MisoListener listener : getListeners()) {
        listener.stateChanged(poe);
      }
    }
  }
View Full Code Here


    }
  }

  protected void fireLibraryPreparationCompleteEvent() {
    if (this.getOverviewId() != null) {
      ProjectOverviewEvent poe = new ProjectOverviewEvent(this, MisoEventType.LIBRARY_PREPARATION_COMPLETED, this.getProject().getAlias() + " : all libraries have been constructed.");
      for (MisoListener listener : getListeners()) {
        listener.stateChanged(poe);
      }
    }
  }
View Full Code Here

    }
  }

  protected void fireLibraryQcPassedEvent() {
    if (this.getOverviewId() != null) {
      ProjectOverviewEvent poe = new ProjectOverviewEvent(this, MisoEventType.ALL_LIBRARIES_QC_PASSED, this.getProject().getAlias() + " : all project libraries have passed QC.");
      for (MisoListener listener : getListeners()) {
        listener.stateChanged(poe);
      }
    }
  }
View Full Code Here

    }
  }

  protected void firePoolsConstructedEvent() {
    if (this.getOverviewId() != null) {
      ProjectOverviewEvent poe = new ProjectOverviewEvent(this, MisoEventType.POOL_CONSTRUCTION_COMPLETE, this.getProject().getAlias() + " : all project samples have now been pooled.");
      for (MisoListener listener : getListeners()) {
        listener.stateChanged(poe);
      }
    }
  }
View Full Code Here

    }
  }

  protected void fireRunsCompletedEvent () {
    if (this.getOverviewId() != null) {
      ProjectOverviewEvent poe = new ProjectOverviewEvent(this, MisoEventType.ALL_RUNS_COMPLETED, this.getProject().getAlias() + " : all project runs have now completed.");
      for (MisoListener listener : getListeners()) {
        listener.stateChanged(poe);
      }
    }
  }
View Full Code Here

    }
  }

  protected void firePrimaryAnalysisCompletedEvent() {
    if (this.getOverviewId() != null) {
      ProjectOverviewEvent poe = new ProjectOverviewEvent(this, MisoEventType.PRIMARY_ANALYSIS_COMPLETED, this.getProject().getAlias() + " : primary analysis has completed.");
      for (MisoListener listener : getListeners()) {
        listener.stateChanged(poe);
      }
    }
  }
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_RUNS_COMPLETED) && po.getAllRunsCompleted()) {
        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("All runs have now completed for project " + po.getProject().getAlias() + "(" + po.getProject().getName() + ")");
        a.setAlertText("The following runs associated with this Project have been completed: "+po.getProject().getAlias()+" ("+event.getEventMessage()+"). Please view Project " +po.getProject().getProjectId() + " in MISO for more information");
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.POOL_CONSTRUCTION_COMPLETE) && po.getAllPoolsConstructed()) {
        //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.