Class GUIOrderTemplateController

java.lang.Object
de.dlr.proseo.ui.gui.GUIBaseController
de.dlr.proseo.ui.gui.GUIOrderTemplateController

@Controller public class GUIOrderTemplateController extends GUIBaseController
A controller for retrieving and handling order data
Author:
David Mazo
  • Constructor Details

    • GUIOrderTemplateController

      public GUIOrderTemplateController()
  • Method Details

    • showOrderTemplate

      @GetMapping("/order-template-show") public String showOrderTemplate()
      Show the order view
      Returns:
      the name of the order view template
    • getIdentifier

      @GetMapping("/order-template-show/get") public org.springframework.web.context.request.async.DeferredResult<String> getIdentifier(@RequestParam(required=false,value="name") String name, @RequestParam(required=false,value="products") String products, @RequestParam(required=false,value="recordFrom") Long recordFrom, @RequestParam(required=false,value="recordTo") Long recordTo, @RequestParam(required=false,value="sortby") String sortby, @RequestParam(required=false,value="up") Boolean up, org.springframework.ui.Model model)
      Retrieve the order list filtered by the specified parameters.
      Parameters:
      name - The order name (name) as a pattern.
      products - The product class list (separated by ':').
      recordFrom - the first record to retrieve
      recordTo - the last record to retrieve
      sortby - The sort column.
      up - The sort direction (true for 'up').
      model - The model to hold the data.
      states - The order states (separated by ':').
      from - The start date of the time period.
      to - The end date of the time period.
      Returns:
      The deferred result containing the result.
    • countOrderTemplates

      public Long countOrderTemplates(String name, String products, Long recordFrom, Long recordTo, String sortCol, Boolean up)
      Count the orders specified by following parameters
      Parameters:
      name - Identifier pattern
      products - The product classes (divided by ':')
      recordFrom - the first record to retrieve
      recordTo - the last record to retrieve
      sortCol - The sort criteria
      up - Ascending if true, otherwise descending
      states - The states (divided by ':')
      from - The earliest start time
      to - The latest start time
      Returns:
      The number of orders found
    • get

      public org.springframework.web.reactive.function.client.WebClient.ResponseSpec get(String name, String products, Long recordFrom, Long recordTo, String sortCol, Boolean up)
      Retrieves a list of orders based on various search parameters
      Parameters:
      products - the product
      recordFrom - the first result to return
      recordTo - the last result to return
      sortCol - the column on which to base the sorting
      up - true if the sorting should be ascending, false if it should be descending
      identifier - the order identifier
      Returns:
      a ResponseSpec; providing access to the response status and headers, and as well as methods to consume the response body