Package eu.planets_project.tb.gui.backing

Examples of eu.planets_project.tb.gui.backing.FileUploadBean


     */
    public String commandAddInputDataItem(){
        ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
      //0) upload the specified data to the Testbed's file repository
        log.info("commandAddInputDataItem: Uploading file.");
    FileUploadBean uploadBean = UploadManager.uploadFile(true);
    if( uploadBean == null ) {
          log.warn("commandAddInputDataItem: Uploaded file was null.");
            NewExpWizardController.redirectToExpStage(expBean.getID(), 2);
            return "success";
    }
    String fileRef = uploadBean.getUniqueFileName();
    if(!(new File(fileRef).canRead())){
      log.error("Added file reference not correct or reachable by the VM "+fileRef);
    }
     
      //1) Add the file reference to the expBean
View Full Code Here


     */
    public String commandAddExternalEvaluationDataItem(){
        ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
      //0) upload the specified data to the Testbed's file repository
        log.info("commandAddExternalEvaluationDataItem: Uploading file.");
    FileUploadBean uploadBean = UploadManager.uploadFile(true);
    if( uploadBean == null ) {
          log.warn("commandAddExternalEvaluationDataItem: Uploaded file was null.");
            NewExpWizardController.redirectToExpStage(expBean.getID(), 6);
            return "success";
    }
    String fileRef = uploadBean.getUniqueFileName();
    if(!(new File(fileRef).canRead())){
      log.error("Added file reference not correct or reachable by the VM "+fileRef);
    }
     
      //1) Add the file reference to the expBean
View Full Code Here

      ExpTypeExecutablePP eTypeExecPP = (ExpTypeExecutablePP)ExpTypeBackingBean.getExpTypeBean(AdminManagerImpl.EXECUTABLEPP);
      eTypeExecPP.reInitBeanForWFXMLConfigUploaded();
     
      //0) upload the specified WFconfig to the user's personal repository for storing it
        log.info("commandUploadWfXMLConfigFile: uploading an xml configuration for a WEE WF.");
    FileUploadBean uploadBean = UploadManager.uploadFile(true);
    if( uploadBean == null ) {
          log.warn("commandUploadWfXMLConfigFile: Uploaded file was null.");
          NewExpWizardController.redirectToExpStage(expBean.getID(), 2);
          return "success";
    }
    String fileRef = uploadBean.getUniqueFileName();
    log.debug("Uploaded file: uniqueFileName: "+fileRef);

    eTypeExecPP.setXMLConfigFileProvided(true);
     
      //1) Check the configuration and parse the WorkflowConfig object
View Full Code Here

    /**
     * Imports and experiment from an uploaded file
     */
    public String importUploadedExperiment() {
        FileUploadBean uploadBean = UploadManager.uploadFile(false);
        log.info("Looking for upload.");
        if( uploadBean == null ) return "failure";
        File uploaded = uploadBean.getTemporaryFile();
        log.info("Found upload: "+uploaded);
        UploadManager upm = (UploadManager) JSFUtil.getManagedObject("UploadManager");
        return upm.importExperiment(uploaded);
    }
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.gui.backing.FileUploadBean

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.