Package eu.planets_project.tb.gui.backing.wf.EditWorkflowParameterInspector

Examples of eu.planets_project.tb.gui.backing.wf.EditWorkflowParameterInspector.ServiceParameter


      List<Parameter> pList = serviceDescr.getParameters();
      if (pList != null) {
        Iterator<Parameter> it = pList.iterator();
        while (it.hasNext()) {
          Parameter par = it.next();
          ServiceParameter spar = reqParamInspector.new ServiceParameter(par
              .getName(), par.getValue(), par.getDescription());
         
          //add the default params to the bean
          this.addDefaultParameter(spar);
        }
      } else {
        log.info("Service: " + serviceDescr.getName() +" has no default parameters.");
      }

      //FIXME: dirty solution. Offer the migrate_from and migrate_to parameters for type 'Migrate' service
      //TODO offer a pull down list for mime-types
      if(serType.endsWith(Migrate.NAME)){
        if((!this.getDefaultServiceParameters().contains(WorkflowTemplate.SER_PARAM_MIGRATE_FROM))){
          ServiceParameter spar = reqParamInspector.new ServiceParameter(WorkflowTemplate.SER_PARAM_MIGRATE_FROM,"planets:fmt/ext/png");
          this.addDefaultParameter(spar);
        }
        if((!this.getDefaultServiceParameters().contains(WorkflowTemplate.SER_PARAM_MIGRATE_TO))){
          ServiceParameter spar = reqParamInspector.new ServiceParameter(WorkflowTemplate.SER_PARAM_MIGRATE_TO,"planets:fmt/ext/png");
          this.addDefaultParameter(spar);
        }
      }

      }catch(Exception e){
View Full Code Here


    List<Parameter> retList = new ArrayList<Parameter>();
    if(paramList==null)
      return retList;
    Iterator<ServiceParameter> iSerParam = paramList.iterator();
    while(iSerParam.hasNext()){
      ServiceParameter serParam = iSerParam.next();
      Parameter p = new Parameter.Builder(
          serParam.getName(), serParam.getValue()).build();
      retList.add(p);
    }
    return retList;
  }
View Full Code Here

      return retList;
   
    Iterator<Parameter> iParam = paramList.iterator();
    while(iParam.hasNext()){
      Parameter serParam = iParam.next();
      ServiceParameter serP = reqParamInspector.new ServiceParameter(serParam.getName(), serParam.getValue(), serParam.getDescription());
      retList.add(serP);
    }
    return retList;
  }
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.gui.backing.wf.EditWorkflowParameterInspector.ServiceParameter

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.