Package de.dlr.proseo.ordergen.rest
Class GeneratorControllerImpl
java.lang.Object
de.dlr.proseo.ordergen.rest.GeneratorControllerImpl
- All Implemented Interfaces:
GeneratorController
Controller for the generation of processing orders
- Author:
- Dr. Thomas Bassler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongenerateForProduct(Long productId, org.springframework.http.HttpHeaders httpHeaders) Fire a data-driven trigger to generate a processing order from the given input product
-
Constructor Details
-
GeneratorControllerImpl
public GeneratorControllerImpl()
-
-
Method Details
-
generateForProduct
public org.springframework.http.ResponseEntity<List<RestOrder>> generateForProduct(Long productId, org.springframework.http.HttpHeaders httpHeaders) Fire a data-driven trigger to generate a processing order from the given input product- Specified by:
generateForProductin interfaceGeneratorController- Parameters:
productId- Database ID of the input product to use for order generation- Returns:
- HTTP status "CREATED" and a response containing a Json object corresponding to the generated processing order after persistence (with ID and version for all contained objects) or HTTP status "FORBIDDEN" and an error message, if a cross-mission data access was attempted, or HTTP status "NOT_FOUND", if no product with the given database ID exists
-