Examples of InputData


Examples of org.apache.maven.wagon.InputData

    }

    public List<String> getFileList( String destinationDirectory )
        throws TransferFailedException, ResourceDoesNotExistException, AuthorizationException
    {
        InputData inputData = new InputData();

        if ( destinationDirectory.length() > 0 && !destinationDirectory.endsWith( "/" ) )
        {
            destinationDirectory += "/";
        }

        String url = buildUrl( destinationDirectory );

        Resource resource = new Resource( destinationDirectory );

        inputData.setResource( resource );

        fillInputData( inputData );

        InputStream is = inputData.getInputStream();

        try
        {

            if ( is == null )
View Full Code Here

Examples of org.araneaframework.InputData

  public void setResponse(HttpServletResponse res) {
    this.res = res;
  }

  public InputData getCurrentInputData() {
    InputData inputData = (InputData)req.getAttribute(StandardServletServiceAdapterComponent.INPUT_DATA_REQUEST_ATTRIBUTE);
    if (inputData == null)
      throw new NoCurrentInputDataSetException("No InputData set in the request.");
    else
      return inputData;
  }
View Full Code Here

Examples of org.araneaframework.InputData

  protected void event(Path path, InputData input) throws Exception {}
  protected void process() throws Exception {}
  protected void render(OutputData output) throws Exception {}
 
  protected InputData getCurrentInput() {
    InputData input = super.getCurrentInput();
    OutputData output = super.getCurrentOutput();

    // lets try to give a not null answer to the user
    if (input == null && output != null) {
        return output.getCurrentInputData();
View Full Code Here

Examples of org.araneaframework.InputData

    return super.getCurrentInput();
  }
 
  protected OutputData getCurrentOutput() {
    OutputData output = super.getCurrentOutput();
    InputData input = super.getCurrentInput();
    if (output == null && input != null) {
      return input.getCurrentOutputData();
    }
   
    return super.getCurrentOutput();
  }
View Full Code Here

Examples of org.easetech.easytest._1.InputData

     * @param destination an instance of {@link Map}
     */
    private void convertFromInputTestData(InputTestData source, Map<String, List<Map<String, Object>>> destination) {
        List<TestMethod> testMethods = source.getTestMethod();
        for (TestMethod method : testMethods) {
          InputData defaultInputData = method.getInputData();

            List<Map<String, Object>> testMethodData = convertFromLIstOfTestRecords(method.getTestRecord(), defaultInputData);
            LOG.debug("Read record for method {} and the data read is {}", method.getName(),testMethodData);
            destination.put(method.getName(), testMethodData);

View Full Code Here

Examples of org.jbpm.formapi.shared.api.InputData

                tableOfInputs.setElement(index, 0, labelName);
                LabelRepresentation labelValue = new LabelRepresentation();
                labelValue.setEventActions(asMapOfNull(labelActions, FBScript.class));
                labelValue.setEffectClasses(labelEffects);
                labelValue.setWidth("200px");
                InputData data = new InputData();
                data.setName(input.getName());
                data.setValue(input.getSourceExpresion());
                data.setMimeType("multipart/form-data");
                data.setFormatter(new Formatter() {
                    @Override
                    public Object format(Object object) {
                        return object;
                    }
                    @Override
                    public Map<String, Object> getDataMap() {
                        return new HashMap<String, Object>();
                    }
                });
                labelValue.setInput(data);
                labelValue.setValue("{variable}");
                tableOfInputs.setElement(index, 1, labelValue);
            }
            LabelRepresentation labelInputs = new LabelRepresentation();
            labelInputs.setEventActions(asMapOfNull(labelActions, FBScript.class));
            labelInputs.setEffectClasses(labelEffects);
            labelInputs.setValue("Inputs:");
            form.addFormItem(labelInputs);
            form.addFormItem(tableOfInputs);
        }
        List<TaskPropertyRef> outputs = task.getOutputs();
        if (outputs != null && !outputs.isEmpty()) {
            TableRepresentation tableOfOutputs = new TableRepresentation();
            tableOfOutputs.setRows(outputs.size());
            tableOfOutputs.setColumns(2);
            tableOfOutputs.setHeight("" + (outputs.size() * 30) + "px");
            tableOfOutputs.setEffectClasses(tableEffects);
            tableOfOutputs.setEventActions(asMapOfNull(tableActions, FBScript.class));
            for (int index = 0; index < outputs.size(); index++) {
                TaskPropertyRef output = outputs.get(index);
                LabelRepresentation labelName = new LabelRepresentation();
                labelName.setEventActions(asMapOfNull(labelActions, FBScript.class));
                labelName.setEffectClasses(labelEffects);
                labelName.setValue(output.getName());
                labelName.setWidth("100px");
                tableOfOutputs.setElement(index, 0, labelName);
                TextFieldRepresentation textField = new TextFieldRepresentation();
                textField.setEventActions(asMapOfNull(textfieldActions, FBScript.class));
                textField.setWidth("200px");
                textField.setEffectClasses(textfieldEffects);
                OutputData data = new OutputData();
                data.setName(output.getName());
                data.setValue(output.getSourceExpresion());
                data.setMimeType("multipart/form-data");
                data.setFormatter(new Formatter() {
                    @Override
                    public Object format(Object object) {
                        return object;
                    }
                    @Override
View Full Code Here

Examples of org.jbpm.formapi.shared.api.InputData

    }
   
    protected Map<String, InputData> toInputDataMap(List<TaskPropertyRef> inputs) {
        Map<String, InputData> retval = new HashMap<String, InputData>();
        for (TaskPropertyRef ref : inputs) {
            InputData in = new InputData();
            in.setName(ref.getName());
            retval.put(ref.getName(), in);
        }
        return retval;
    }
View Full Code Here

Examples of org.jbpm.formapi.shared.api.InputData

    }
   
    @Override
    protected void createStyles() {
        FBFormItem item = getItem();
        InputData in = null;
        if (this.input != null) {
            in = new InputData();
            in.setName(this.input.getName());
            in.setValue(this.input.getSourceExpresion());
            in.setMimeType("multipart/form-data");
            in.setFormatter(new Formatter() {
                @Override
                public Object format(Object object) {
                    return object;
                }
                @Override
View Full Code Here

Examples of org.jbpm.formapi.shared.api.InputData

                    dataSnapshot.put("newTaskID", event.getSelectedTask().getTaskId());
                    Map<String, InputData> inputs = new HashMap<String, InputData>();
                    Map<String, OutputData> outputs = new HashMap<String, OutputData>();
                    if (event.getSelectedTask().getInputs() != null) {
                        for (TaskPropertyRef input : event.getSelectedTask().getInputs()) {
                            InputData in = new InputData();
                            in.setName(input.getName());
                            in.setValue(input.getSourceExpresion());
                            inputs.put(input.getName(), in);
                        }
                    }
                    if (event.getSelectedTask().getOutputs() != null) {
                        for (TaskPropertyRef output : event.getSelectedTask().getOutputs()) {
View Full Code Here

Examples of org.jbpm.formapi.shared.api.InputData

    private Map<String, InputData> toInputs(List<TaskPropertyRef> inputs) {
        Map<String, InputData> retval = new HashMap<String, InputData>();
        if (inputs != null) {
            for (TaskPropertyRef ref : inputs) {
                InputData input = new InputData();
                input.setName(ref.getName());
                input.setValue(ref.getSourceExpresion());
                retval.put(ref.getName(), input);
            }
        }
        return retval;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.