Package uk.ac.bbsrc.tgac.miso.core.data.impl

Examples of uk.ac.bbsrc.tgac.miso.core.data.impl.ProjectOverview


  @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");

        for (AlerterService as : alerterServices) {
          try {
            as.raiseAlert(a);
          }
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_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);
        a.setAlertTitle("All Library QCs passed for project " + po.getProject().getAlias() + "(" + po.getProject().getName() + ")");
        a.setAlertText("The following Project's Libraries have been QC'ed successfully: "+po.getProject().getAlias()+" ("+event.getEventMessage()+"). Please view Project " +po.getProject().getProjectId() + " in MISO for more information");

        for (AlerterService as : getAlerterServices()) {
          try {
            as.raiseAlert(a);
          }
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);
        a.setAlertTitle("Library preparation complete for project " + po.getProject().getAlias() + "(" + po.getProject().getName() + ")");
        a.setAlertText("The following Project's Libraries have been prepared: "+po.getProject().getAlias()+" ("+event.getEventMessage()+"). Please view Project " +po.getProject().getProjectId() + " in MISO for more information");

        for (AlerterService as : alerterServices) {
          try {
            as.raiseAlert(a);
          }
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);
        a.setAlertTitle("All Sample QCs passed for project " + po.getProject().getAlias() + "("+po.getProject().getName()+")");
        a.setAlertText("The following Project's Samples have been QC'ed successfully: "+po.getProject().getAlias()+" ("+event.getEventMessage()+"). Please view Project " +po.getProject().getProjectId() + " in MISO for more information");

        for (AlerterService as : alerterServices) {
          try {
            as.raiseAlert(a);
          }
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");

        for (AlerterService as : alerterServices) {
          try {
            as.raiseAlert(a);
          }
View Full Code Here

TOP

Related Classes of uk.ac.bbsrc.tgac.miso.core.data.impl.ProjectOverview

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.