@Path(value="/") public class DataTransformationService extends Object
| Constructor and Description |
|---|
DataTransformationService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
findApplicableTransformationUnits(String sourceContentTypeJSON,
String targetContentTypeJSON,
String createAndPublishCompositeTPJSON,
Boolean all,
Boolean pretty,
String scope)
Searches for
TransformationUnits that are able to perform a
transformation from a source to a target ContentType. |
javax.ws.rs.core.Response |
findAvailableTargetContentTypes(String sourceContentTypeJSON,
Boolean all,
Boolean pretty,
String scope)
Searches for
ContentTypes to which an object can be transformed. |
javax.ws.rs.core.Response |
queryTransformationPrograms(String queryJSON,
Boolean all,
Boolean pretty,
String scope)
Performs a query to get information about the transformation programs.
|
javax.ws.rs.core.Response |
statistics() |
javax.ws.rs.core.Response |
transformData(String inputJSON,
String targetContentTypeJSON,
String outputJSON,
String createReportJSON,
Boolean all,
Boolean pretty,
String scope)
This method transforms the input data to the target
ContentType
and stores the results to the output. |
javax.ws.rs.core.Response |
transformDataWithTransformationProgram(String inputJSON,
String tpIDJSON,
String targetContentTypeJSON,
String tProgramUnboundParametersJSON,
String outputJSON,
String createReportJSON,
Boolean all,
Boolean pretty,
String scope)
This method transforms the input data to the target
ContentType
and stores the results to the output. |
javax.ws.rs.core.Response |
transformDataWithTransformationUnit(String inputsJSON,
String tpIDJSON,
String transformationUnitIDJSON,
String targetContentTypeJSON,
String tProgramUnboundParametersJSON,
String outputJSON,
String filterSourcesJSON,
String createReportJSON,
Boolean all,
Boolean pretty,
String scope)
This method transforms the input data to the target
ContentType
and stores the results to the output. |
@GET @Path(value="/statistics") @Produces(value="application/xml; charset=UTF-8") public javax.ws.rs.core.Response statistics()
@POST
@Path(value="/transformData")
@Produces(value="application/json; charset=UTF-8")
public javax.ws.rs.core.Response transformData(@FormParam(value="input")
String inputJSON,
@FormParam(value="targetContentType")
String targetContentTypeJSON,
@FormParam(value="output")
String outputJSON,
@FormParam(value="createReport")
String createReportJSON,
@QueryParam(value="all")@DefaultValue(value="false")
Boolean all,
@QueryParam(value="pretty")@DefaultValue(value="false")
Boolean pretty,
@HeaderParam(value="gcube-scope")
String scope)
ContentType
and stores the results to the output. In this method the service by its
self discovers the TransformationProgram to use.inputJSON - The input (type + value)targetContentTypeJSON - the target ContentTypeoutputJSON - The output (type + value)createReportJSON - a boolean that denotes if the reporting mechanism shall be enabledall - if results are printedpretty - if pretty print is in usescope - the scope of the request, if provided@POST
@Path(value="/transformDataWithTransformationProgram")
@Produces(value="application/json; charset=UTF-8")
public javax.ws.rs.core.Response transformDataWithTransformationProgram(@FormParam(value="input")
String inputJSON,
@FormParam(value="tpID")
String tpIDJSON,
@FormParam(value="targetContentType")
String targetContentTypeJSON,
@FormParam(value="tProgramUnboundParameters")
String tProgramUnboundParametersJSON,
@FormParam(value="output")
String outputJSON,
@FormParam(value="createReport")
String createReportJSON,
@QueryParam(value="all")@DefaultValue(value="false")
Boolean all,
@QueryParam(value="pretty")@DefaultValue(value="false")
Boolean pretty,
@HeaderParam(value="gcube-scope")
String scope)
ContentType
and stores the results to the output. The TransformationProgram
which will be used by the service is indicated by the client.inputJSON - The input (type + value)tpIDJSON - the transformation program idtargetContentTypeJSON - the target ContentTypetProgramUnboundParametersJSON - the transformation unbound parametersoutputJSON - The output (type + value)createReportJSON - a boolean that denotes if the reporting mechanism shall be
enabledall - if results are printedpretty - if pretty print is in usescope - the scope of the request, if provided@POST
@Path(value="/transformDataWithTransformationUnit")
@Produces(value="application/json; charset=UTF-8")
public javax.ws.rs.core.Response transformDataWithTransformationUnit(@FormParam(value="inputs")
String inputsJSON,
@FormParam(value="tpID")
String tpIDJSON,
@FormParam(value="transformationUnitID")
String transformationUnitIDJSON,
@FormParam(value="targetContentType")
String targetContentTypeJSON,
@FormParam(value="tProgramUnboundParameters")
String tProgramUnboundParametersJSON,
@FormParam(value="output")
String outputJSON,
@FormParam(value="filterSources")
String filterSourcesJSON,
@FormParam(value="createReport")
String createReportJSON,
@QueryParam(value="all")@DefaultValue(value="false")
Boolean all,
@QueryParam(value="pretty")@DefaultValue(value="false")
Boolean pretty,
@HeaderParam(value="gcube-scope")
String scope)
ContentType
and stores the results to the output. The TransformationUnit
which will be used by the service is indicated by the client.inputsJSON - The inputs (type + value)tpIDJSON - the transformation program idtransformationUnitIDJSON - the unit id of the programtargetContentTypeJSON - the target ContentTypetProgramUnboundParametersJSON - the transformation unbound parametersoutputJSON - The output (type + value)filterSourcesJSON - either to filter the sources or notcreateReportJSON - a boolean that denotes if the reporting mechanism shall be
enabledall - if results are printedpretty - if pretty print is in usescope - the scope of the request, if provided@POST
@Path(value="/findApplicableTransformationUnits")
@Produces(value="application/json; charset=UTF-8")
public javax.ws.rs.core.Response findApplicableTransformationUnits(@FormParam(value="sourceContentType")
String sourceContentTypeJSON,
@FormParam(value="targetContentType")
String targetContentTypeJSON,
@FormParam(value="createAndPublishCompositeTP")
String createAndPublishCompositeTPJSON,
@QueryParam(value="all")@DefaultValue(value="false")
Boolean all,
@QueryParam(value="pretty")@DefaultValue(value="false")
Boolean pretty,
@HeaderParam(value="gcube-scope")
String scope)
TransformationUnits that are able to perform a
transformation from a source to a target ContentType.sourceContentTypeJSON - source ContentTypetargetContentTypeJSON - target ContentTypecreateAndPublishCompositeTPJSON - a boolean that denotes if the reporting mechanism shall be
enabledall - if results are printedpretty - if pretty print is in usescope - the scope of the request, if providedContentType.@POST
@Path(value="/findAvailableTargetContentTypes")
@Produces(value="application/json; charset=UTF-8")
public javax.ws.rs.core.Response findAvailableTargetContentTypes(@FormParam(value="sourceContentType")
String sourceContentTypeJSON,
@QueryParam(value="all")@DefaultValue(value="false")
Boolean all,
@QueryParam(value="pretty")@DefaultValue(value="false")
Boolean pretty,
@HeaderParam(value="gcube-scope")
String scope)
ContentTypes to which an object can be transformed.sourceContentTypeJSON - source ContentTypeall - if results are printedpretty - if pretty print is in usescope - the scope of the request, if providedContentTypes.@POST
@Path(value="/queryTransformationPrograms")
@Produces(value="application/xml; charset=UTF-8")
public javax.ws.rs.core.Response queryTransformationPrograms(@FormParam(value="query")
String queryJSON,
@QueryParam(value="all")@DefaultValue(value="false")
Boolean all,
@QueryParam(value="pretty")@DefaultValue(value="false")
Boolean pretty,
@HeaderParam(value="gcube-scope")
String scope)
queryJSON - The query about the transformation programsall - if results are printedpretty - if pretty print is in usescope - the scope of the request, if providedCopyright © 2014. All Rights Reserved.