Class TriggerControllerDecorator

java.lang.Object
de.dlr.proseo.model.rest.TriggerControllerDecorator
All Implemented Interfaces:
TriggerController

@RestController @RequestMapping(value="/proseo/order-gen/{version}/triggers", produces="application/json") @Validated public class TriggerControllerDecorator extends Object implements TriggerController
No description (Generated with springmvc-raml-parser v.2.0.5)
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<?>
    countTriggers(String mission, String name, String type, String orderTemplate, String inputProductClass, String outputProductClass, org.springframework.http.HttpHeaders httpHeaders)
    count the triggers filtered by mission, name, type, orderTemplate, inputProductClass, outputProductClass
    org.springframework.http.ResponseEntity<RestTrigger>
    createTrigger(@Valid RestTrigger restTrigger, org.springframework.http.HttpHeaders httpHeaders)
    Create a trigger from the given JSON object
    org.springframework.http.ResponseEntity<?>
    deleteTrigger(String mission, String name, String type, org.springframework.http.HttpHeaders httpHeaders)
    Delete all triggers filtered by mission, name, type
    org.springframework.http.ResponseEntity<List<RestTrigger>>
    getByProductType(String mission, String productType, org.springframework.http.HttpHeaders httpHeaders)
    Get all data driven triggers for order templates having the given product class as input product class
    org.springframework.http.ResponseEntity<List<RestTrigger>>
    getTriggers(String mission, String name, String type, String orderTemplate, String inputProductClass, String outputProductClass, Integer recordFrom, Integer recordTo, String[] orderBy, org.springframework.http.HttpHeaders httpHeaders)
    List of triggers filtered by mission, name, type, orderTemplate, inputProductClass, outputProductClass
    org.springframework.http.ResponseEntity<?>
    reloadTriggers(String mission, org.springframework.http.HttpHeaders httpHeaders)
    Stop triggers, reload them from database and start again.
    org.springframework.http.ResponseEntity<RestTrigger>
    updateTrigger(RestTrigger restTrigger, org.springframework.http.HttpHeaders httpHeaders)
    Update a trigger from the given JSON object

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TriggerControllerDecorator

      public TriggerControllerDecorator()
  • Method Details

    • getTriggers

      @RequestMapping(value="", method=GET) public org.springframework.http.ResponseEntity<List<RestTrigger>> getTriggers(@RequestParam(required=false) String mission, @RequestParam(required=false) String name, @RequestParam(required=false) String type, @RequestParam(required=false) String orderTemplate, @RequestParam(required=false) String inputProductClass, @RequestParam(required=false) String outputProductClass, @RequestParam(required=false) Integer recordFrom, @RequestParam(required=false) Integer recordTo, @RequestParam(required=false) String[] orderBy, @RequestHeader org.springframework.http.HttpHeaders httpHeaders)
      List of triggers filtered by mission, name, type, orderTemplate, inputProductClass, outputProductClass
      Specified by:
      getTriggers in interface TriggerController
    • createTrigger

      @RequestMapping(value="", method=POST) public org.springframework.http.ResponseEntity<RestTrigger> createTrigger(@Valid @RequestBody @Valid RestTrigger restTrigger, @RequestHeader org.springframework.http.HttpHeaders httpHeaders)
      Create a trigger from the given JSON object
      Specified by:
      createTrigger in interface TriggerController
    • deleteTrigger

      @RequestMapping(value="", method=DELETE) public org.springframework.http.ResponseEntity<?> deleteTrigger(@RequestParam String mission, @RequestParam String name, @RequestParam String type, @RequestHeader org.springframework.http.HttpHeaders httpHeaders)
      Delete all triggers filtered by mission, name, type
      Specified by:
      deleteTrigger in interface TriggerController
    • updateTrigger

      @RequestMapping(value="", method=PATCH) public org.springframework.http.ResponseEntity<RestTrigger> updateTrigger(@RequestBody RestTrigger restTrigger, @RequestHeader org.springframework.http.HttpHeaders httpHeaders)
      Update a trigger from the given JSON object
      Specified by:
      updateTrigger in interface TriggerController
    • countTriggers

      @RequestMapping(value="/count", method=GET) public org.springframework.http.ResponseEntity<?> countTriggers(@RequestParam(required=false) String mission, @RequestParam(required=false) String name, @RequestParam(required=false) String type, @RequestParam(required=false) String orderTemplate, @RequestParam(required=false) String inputProductClass, @RequestParam(required=false) String outputProductClass, @RequestHeader org.springframework.http.HttpHeaders httpHeaders)
      count the triggers filtered by mission, name, type, orderTemplate, inputProductClass, outputProductClass
      Specified by:
      countTriggers in interface TriggerController
    • getByProductType

      @RequestMapping(value="/byproducttype", method=GET) public org.springframework.http.ResponseEntity<List<RestTrigger>> getByProductType(@RequestParam String mission, @RequestParam String productType, @RequestHeader org.springframework.http.HttpHeaders httpHeaders)
      Get all data driven triggers for order templates having the given product class as input product class
      Specified by:
      getByProductType in interface TriggerController
    • reloadTriggers

      @RequestMapping(value="/reload", method=GET) public org.springframework.http.ResponseEntity<?> reloadTriggers(@RequestParam(required=false) String mission, @RequestHeader org.springframework.http.HttpHeaders httpHeaders)
      Stop triggers, reload them from database and start again.
      Specified by:
      reloadTriggers in interface TriggerController