Package eu.planets_project.tb.gui.backing.exp

Examples of eu.planets_project.tb.gui.backing.exp.ExperimentInspector


   
    /**
     * @return
     */
    private ExecutionRecordImpl getExecutionRecordForSessionId() {
        ExperimentInspector ei = (ExperimentInspector)JSFUtil.getManagedObject("ExperimentInspector");
        Experiment exp = ei.getExperimentBean().getExperiment();
        ifthis.isValid() && exp.getExperimentExecutable().getNumBatchExecutionRecords() > 0 ) {
            for( ExecutionRecordImpl exec : exp.getExperimentExecutable().getBatchExecutionRecords().iterator().next().getRuns() ) {
                ViewResultBean vrb = ViewResultBean.createViewResultBeanFromExecutionRecord(exec);
                if( vrb != null ) {
                    if( this.getSessionId().equals( vrb.getSessionId() )) {
View Full Code Here


     * @see javax.faces.event.PhaseListener#afterPhase(javax.faces.event.PhaseEvent)
     */
    public void afterPhase(PhaseEvent arg0) {
        FacesContext context = arg0.getFacesContext();
        /* Support for pushing the ExperimentBean in the request. */
        ExperimentInspector ei = (ExperimentInspector)JSFUtil.getManagedObject("ExperimentInspector");
        ei.getExperimentId();
        // Check if there is an ExperimentBean in the session.
        ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
       
        if( context == null  || context.getViewRoot() == null ) return;
        String viewId = context.getViewRoot().getViewId();
View Full Code Here

    if( edao.findExperiment(experiment.getEntityID()) != null ){
      //Should this be added in a transaction?
        edao.updateExperiment(experiment);
      ExperimentImpl exp = (ExperimentImpl)edao.findExperiment(experiment.getEntityID());
        // Also update the Experiment backing beans to reflect the changes:
          ExperimentInspector ei = (ExperimentInspector)JSFUtil.getManagedObject("ExperimentInspector");
          ei.setExperimentId(""+exp.getEntityID());
         
          //End Transaction
    } else {
        log.error("updateExperiment Failed: No Entity ID for experiment: "+experiment.getExperimentSetup().getBasicProperties().getExperimentName());
    }
View Full Code Here

 
  /**
   * calls the update parameter method for the underlying experiment type specific bean
   */
  public void commandUpdateWorkflowParameters(){
    ExperimentInspector expInspector = new ExperimentInspector();
    expInspector.setExperimentId(this.getExperimentId());
    ExperimentBean expBean = expInspector.getExperimentBean();
    ExpTypeBackingBean exptypeBean = ExpTypeBackingBean.getExpTypeBean(expBean.getEtype());
   
    Map<String,List<Parameter>> ret = new HashMap<String,List<Parameter>>();
    if(this.forServiceID!=null){
      //using a different serviceID than the service's url
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.gui.backing.exp.ExperimentInspector

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.