Package eu.planets_project.tb.api.services.TestbedServiceTemplate

Examples of eu.planets_project.tb.api.services.TestbedServiceTemplate.ServiceOperation


     * @return
     */
    public boolean isAddFileButtonRendered(){
      ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
      if((expBean.getSelectedServiceTemplate()!=null)&&(expBean.getSelectedServiceOperationName()!="")){
        ServiceOperation operation = expBean.getSelectedServiceTemplate().getServiceOperation(
            expBean.getSelectedServiceOperationName()
            );
        int maxsupp = operation.getMaxSupportedInputFiles();
        int current = expBean.getNumberOfInputFiles();
        if((current<maxsupp)){
          return true;
        }
      }
View Full Code Here


     */
    public boolean isMinReqNrOfFilesSelected(){
      ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject("ExperimentBean");
      if((expBean.getSelectedServiceTemplate()!=null)&&(expBean.getSelectedServiceOperationName()!="")){
        try{
          ServiceOperation operation = expBean.getSelectedServiceTemplate().getServiceOperation(
            expBean.getSelectedServiceOperationName()
            );
          int minrequ = operation.getMinRequiredInputFiles();
          int current = expBean.getNumberOfInputFiles();
          if(current>=minrequ){
            return true;
          }
        }catch(Exception e){
View Full Code Here

         
          if(lOperations!=null){
            //add data for rendering
            Iterator<ServiceOperation> itOperations = lOperations.iterator();
            while(itOperations.hasNext()){
              ServiceOperation operation = itOperations.next();
              //Treevalue, key
              ret.put(operation.getName(),operation.getName());
            }
          }
      }
      return ret;
    }
View Full Code Here

          Collection<ServiceOperation> operations = template.getAllServiceOperations();
          if((operations!=null)&&(operations.size()>0)){
            //Iterate over all serviceOperations
            Iterator<ServiceOperation> itOperations = operations.iterator();
            while(itOperations.hasNext()){
              ServiceOperation operation = itOperations.next();
              TreeNodeBase nodeOp = new TreeNodeBase("operation",operation.getName(), operation.getName(), false);
              //att leaf nodes with properties
              nodeOp.getChildren().add(new TreeNodeBase("OpDescription",operation.getDescription(),true));
              nodeOp.getChildren().add(new TreeNodeBase("OutputObjectType",operation.getOutputObjectType(),true));
              nodeOp.getChildren().add(new TreeNodeBase("ServiceOperationType",operation.getServiceOperationType(),true));
              nodeOp.getChildren().add(new TreeNodeBase("maxInputFiles",operation.getMaxSupportedInputFiles()+"",true));
              nodeOp.getChildren().add(new TreeNodeBase("minReqFiles",operation.getMinRequiredInputFiles()+"",true));
           
              //add nodeOp to ServiceTemplate
              nodeServiceTemplate.getChildren().add(nodeOp);
            }
          }
View Full Code Here

      String id = itIDs.next();
      TestbedServiceTemplate template = this.hm_AllServices.get(id);
      Iterator<ServiceOperation> operations = template.getAllServiceOperations().iterator();
      boolean bFound = false;
      while(operations.hasNext()){
        ServiceOperation operation = operations.next();
        if(operation.getServiceOperationType().equals(serviceOperationType))
          bFound = true;
      }
      if(bFound){
        ret.add(template);
      }
View Full Code Here

          bret = false;
       
        //for all operations:
        Iterator<ServiceOperation> ops = template.getAllServiceOperations().iterator();
        while(ops.hasNext()){
          ServiceOperation operation = ops.next();
          if((operation.getName()==null)||(operation.getName().equals("")))
            bret = false;
          if((operation.getXMLRequestTemplate()==null)||(operation.getXMLRequestTemplate().equals("")))
            bret = false;
          if((operation.getXPathToOutput()==null)||(operation.getXPathToOutput().equals("")))
            bret = false;
        }
       
      }
      else{
View Full Code Here

TOP

Related Classes of eu.planets_project.tb.api.services.TestbedServiceTemplate.ServiceOperation

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.