@Path(value="/") public class DataTransformationService extends Object implements org.gcube.datatransformation.rest.commons.DataTransformationServiceAPI
| Modifier and Type | Field and Description |
|---|---|
static String |
SCOPE_HEADER |
| Constructor and Description |
|---|
DataTransformationService() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
findApplicableTransformationUnits(String scope,
String sourceContentTypeJSON,
String targetContentTypeJSON,
String createAndPublishCompositeTPJSON,
Boolean pretty)
Searches for
TransformationUnits that are able to perform a
transformation from a source to a target ContentType. |
javax.ws.rs.core.Response |
findAvailableTargetContentTypes(String scope,
String sourceContentTypeJSON,
Boolean pretty)
Searches for
ContentTypes to which an object can be transformed. |
javax.ws.rs.core.Response |
queryTransformationPrograms(String scope,
String queryJSON,
Boolean pretty)
Performs a query to get information about the transformation programs.
|
javax.ws.rs.core.Response |
statistics(String scope) |
javax.ws.rs.core.Response |
transformData(String scope,
String inputJSON,
String targetContentTypeJSON,
String outputJSON,
String createReportJSON,
Boolean all,
Boolean pretty)
This method transforms the input data to the target
ContentType
and stores the results to the output. |
javax.ws.rs.core.Response |
transformDataWithTransformationProgram(String scope,
String inputJSON,
String tpIDJSON,
String targetContentTypeJSON,
String tProgramUnboundParametersJSON,
String outputJSON,
String createReportJSON,
Boolean all,
Boolean pretty)
This method transforms the input data to the target
ContentType
and stores the results to the output. |
javax.ws.rs.core.Response |
transformDataWithTransformationUnit(String scope,
String inputsJSON,
String tpIDJSON,
String transformationUnitIDJSON,
String targetContentTypeJSON,
String tProgramUnboundParametersJSON,
String outputJSON,
String filterSourcesJSON,
String createReportJSON,
Boolean all,
Boolean pretty)
This method transforms the input data to the target
ContentType
and stores the results to the output. |
public static final String SCOPE_HEADER
@GET
@Path(value="/statistics")
@Produces(value="application/xml; charset=UTF-8")
public javax.ws.rs.core.Response statistics(@HeaderParam(value="gcube-scope")
String scope)
statistics in interface org.gcube.datatransformation.rest.commons.DataTransformationServiceAPI@POST
@Path(value="/transformData")
@Produces(value="application/json; charset=UTF-8")
public javax.ws.rs.core.Response transformData(@HeaderParam(value="gcube-scope")
String scope,
@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)
ContentType
and stores the results to the output. In this method the service by its
self discovers the TransformationProgram to use.transformData in interface org.gcube.datatransformation.rest.commons.DataTransformationServiceAPIinputJSON - 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(@HeaderParam(value="gcube-scope")
String scope,
@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)
ContentType
and stores the results to the output. The TransformationProgram
which will be used by the service is indicated by the client.transformDataWithTransformationProgram in interface org.gcube.datatransformation.rest.commons.DataTransformationServiceAPIinputJSON - 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(@HeaderParam(value="gcube-scope")
String scope,
@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)
ContentType
and stores the results to the output. The TransformationUnit
which will be used by the service is indicated by the client.transformDataWithTransformationUnit in interface org.gcube.datatransformation.rest.commons.DataTransformationServiceAPIinputsJSON - 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(@HeaderParam(value="gcube-scope")
String scope,
@FormParam(value="sourceContentType")
String sourceContentTypeJSON,
@FormParam(value="targetContentType")
String targetContentTypeJSON,
@FormParam(value="createAndPublishCompositeTP")
String createAndPublishCompositeTPJSON,
@QueryParam(value="pretty")@DefaultValue(value="false")
Boolean pretty)
TransformationUnits that are able to perform a
transformation from a source to a target ContentType.findApplicableTransformationUnits in interface org.gcube.datatransformation.rest.commons.DataTransformationServiceAPIsourceContentTypeJSON - 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(@HeaderParam(value="gcube-scope")
String scope,
@FormParam(value="sourceContentType")
String sourceContentTypeJSON,
@QueryParam(value="pretty")@DefaultValue(value="false")
Boolean pretty)
ContentTypes to which an object can be transformed.findAvailableTargetContentTypes in interface org.gcube.datatransformation.rest.commons.DataTransformationServiceAPIsourceContentTypeJSON - 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(@HeaderParam(value="gcube-scope")
String scope,
@FormParam(value="query")
String queryJSON,
@QueryParam(value="pretty")@DefaultValue(value="false")
Boolean pretty)
queryTransformationPrograms in interface org.gcube.datatransformation.rest.commons.DataTransformationServiceAPIqueryJSON - The query about the transformation programsall - if results are printedpretty - if pretty print is in usescope - the scope of the request, if providedCopyright © 2016. All Rights Reserved.