org.deegree.services.wps.provider.jrxml.contentprovider
Interface JrxmlContentProvider

All Known Implementing Classes:
AbstractJrxmlContentProvider, DataTableContentProvider, ImageContentProvider, MapContentProvider, OtherContentProvider, PropertiesContentProvider, SubreportContentProvider

public interface JrxmlContentProvider

Implementing classes helps to map the jrxml file to a WPS Process description and to create a report out of the process execute request

Version:
$Revision: $, $Date: $
Author:
Lyn Goltz, last edited by: $Author: lyn $

Method Summary
 void inspectInputParametersFromJrxml(Map<String,ParameterDescription> parameterDescriptions, List<JAXBElement<? extends ProcessletInputDefinition>> inputs, XMLAdapter jrxmlAdapter, Map<String,String> parameters, List<String> handledParameters)
          inspects the parameters found in the xml and converts them to WPSProcess input parameters
 Pair<InputStream,Boolean> prepareJrxmlAndReadInputParameters(InputStream jrxml, Map<String,Object> params, ProcessletInputs in, List<CodeType> processedIds, Map<String,String> parameters)
          prepare the jrxml and read input parameters from WPSProcess providers to append them in the list of parameters to fill the jrxml report with
 

Method Detail

inspectInputParametersFromJrxml

void inspectInputParametersFromJrxml(Map<String,ParameterDescription> parameterDescriptions,
                                     List<JAXBElement<? extends ProcessletInputDefinition>> inputs,
                                     XMLAdapter jrxmlAdapter,
                                     Map<String,String> parameters,
                                     List<String> handledParameters)
inspects the parameters found in the xml and converts them to WPSProcess input parameters

Parameters:
parameterDescriptions - description of a single parameter out of the process definition
inputs - list of ProcessletInputDefinitions, never null, append new inputs here
jrxmlAdapter - adapter containing the jrxml
parameters - list of all parameters out of the jrxml file
handledParameters - list of parameters out of the jrxml file, which are handled already!

prepareJrxmlAndReadInputParameters

Pair<InputStream,Boolean> prepareJrxmlAndReadInputParameters(InputStream jrxml,
                                                             Map<String,Object> params,
                                                             ProcessletInputs in,
                                                             List<CodeType> processedIds,
                                                             Map<String,String> parameters)
                                                             throws ProcessletException
prepare the jrxml and read input parameters from WPSProcess providers to append them in the list of parameters to fill the jrxml report with

Parameters:
the - jrxml as InputStream
params - list of parameters to fill the jrxml report with, append parameters read from WPS PRocess input parameters here, never null
in - contains the WPSProcess input parameters, never null
processedIds - a list if ids which are already precessed. insert ids here, if they are processed. never null
parameters - metainformation about the parameters (name, type)
Returns:
the adjusted jrxml as InputStream and an information if a datasource was inserted or not
Throws:
ProcessletException


Copyright © 2011. All Rights Reserved.