Class DashboardController

java.lang.Object
com.skava.oms.web.DashboardController

@RestController @RequestMapping("/orders") public class DashboardController extends Object
This controller handles the OMS's collection attribute resource.
Version:
$Id: $Id
Author:
Infosys Equinox
  • Constructor Details

    • DashboardController

      public DashboardController()
  • Method Details

    • getTotalOrders

      @GetMapping("/dashboard") @PreAuthorize("hasRoleForServiceAndCollection(\'ROLE_REG_USER\', \'oms\', #collectionid) || hasRoleForServiceAndCollection(\'ROLE_GUEST\', \'oms\', #collectionid) ||hasRoleForServiceAndCollection(\'ROLE_ACCOUNT_BUYER_ADMIN\', \'oms\', #collectionid) ||hasRoleForServiceAndCollection(\'ROLE_ACCOUNT_BUYER\', \'oms\', #collectionid) ||hasPrivilegeForServiceAndCollection(\'oms/viewall/order\', \'oms\', #collectionid)") public org.springframework.http.ResponseEntity<DashboardAnalyticsModel> getTotalOrders(@RequestHeader(value="x-collection-id",required=true) long collectionid, @RequestParam(value="locale",required=false,defaultValue="en_US") String locale, @RequestParam(value="filters",required=false) String filters)

      get Total Orders.

      This service is used to get all OMS's total orders.
      Parameters:
      locale - a String object. API Response and error messages will be responded in the locale mentioned in this parameter. Locale needs to be mentioned in Java standard locale format.
      Returns:
      a CollectionAttributesResponse object. Returns list of authorization's collection attributes.