Class OmsBaseFacade

    • Constructor Detail

      • OmsBaseFacade

        public OmsBaseFacade()
    • Method Detail

      • convertSearchPageData

        protected <S,​T> SearchPageData<T> convertSearchPageData​(SearchPageData<S> source,
                                                                      Converter<S,​T> converter)
        Converts the result of SearchPageData
        Type Parameters:
        S - original type of searchPageData's results
        T - target type of searchPageData's results
        Parameters:
        source - searchPageData containing original results
        converter - converter for converting the searchPageData's results
        Returns:
        converted SearchPageData
      • discardOrderSnapshot

        protected java.util.List<OrderModel> discardOrderSnapshot​(java.util.List<OrderModel> orders)
        Discards snapshots of orders. i.e: orders with versionID equal to null
        Parameters:
        orders - a list of orders
        Returns:
        a filtered list of orders
      • createPaginationData

        protected PaginationData createPaginationData​(PageableData pageableData,
                                                      int totalResults)
        Creates a PaginationData based on the received PageableData
        Parameters:
        pageableData - contains pageable information
        totalResults - the total number of results returned
        Returns:
        pagination data object
      • getOrderModelForCode

        protected OrderModel getOrderModelForCode​(java.lang.String orderCode)
        Parameters:
        orderCode - the order's code
        Returns:
        the requested order for the given code
      • getModelService

        protected ModelService getModelService()
      • setModelService

        public void setModelService​(ModelService modelService)