Class DefaultBolOrderFacade

java.lang.Object
de.hybris.platform.sap.sapordermgmtservices.bolfacade.impl.DefaultBolOrderFacade
All Implemented Interfaces:
BolOrderFacade

public class DefaultBolOrderFacade extends Object implements BolOrderFacade
Facade for accessing/saving order related business objects. Covers the access to a single order and the order search functions.
  • Constructor Details

    • DefaultBolOrderFacade

      public DefaultBolOrderFacade()
  • Method Details

    • getGenericFactory

      public GenericFactory getGenericFactory()
      Returns:
      the genericFactory
    • setGenericFactory

      public void setGenericFactory(GenericFactory genericFactory)
      Parameters:
      genericFactory - the genericFactory to set
    • getSearch

      protected Search getSearch()
      Get order search business object
      Returns:
      Order search BO implementation
    • getSearchResultsTotalNumber

      public Integer getSearchResultsTotalNumber()
      Description copied from interface: BolOrderFacade
      Get total number of orders found in the last back end call, not taking any pagination into account. The call does not perform a search itself, but refers to the results of the last call of BolOrderFacade.performSearch(SearchFilter, PageableData)
      Specified by:
      getSearchResultsTotalNumber in interface BolOrderFacade
      Returns:
      Total number of orders
    • getSavedOrder

      public Order getSavedOrder(String orderId)
      Description copied from interface: BolOrderFacade
      Return order details for an order existing in the back end persistence. Cannot be called for non-persisted orders in checkout.
      Specified by:
      getSavedOrder in interface BolOrderFacade
      Parameters:
      orderId - Back end ID of the order
      Returns:
      BOL representation of order
    • getSapCheckDocumentValid

      public CheckDocumentValid getSapCheckDocumentValid()
      Returns:
      the documentValidator
    • setSapCheckDocumentValid

      public void setSapCheckDocumentValid(CheckDocumentValid documentValidator)
      Parameters:
      documentValidator - the documentValidator to set
    • getSapPartnerService

      public SapPartnerService getSapPartnerService()
      Returns:
      the sapPartnerService
    • setSapPartnerService

      public void setSapPartnerService(SapPartnerService sapPartnerService)
      Parameters:
      sapPartnerService - the sapPartnerService to set
    • performSearch

      public List<SearchResult> performSearch(SearchFilter searchFilter, PageableData pageableData)
      Description copied from interface: BolOrderFacade
      Performs search for orders. Will either access the back end, if no search has been performed so far or the search result is dirty (see BolOrderFacade.setSearchDirty(), or will perform paging and sorting on the existing search result, without doing a back end call
      Specified by:
      performSearch in interface BolOrderFacade
      Parameters:
      searchFilter - Filter data
      pageableData - Paging data as requested in the hybris service layer
      Returns:
      List of BOL search results
    • getDateRange

      public int getDateRange()
      Description copied from interface: BolOrderFacade
      Returning the date range for order search from configuration, also see SAPConfigurationModel.getSapordermgmt_dateRange(). This range specifies the number of days the search will cover.
      Example: 365 means search is done for the last year
      Specified by:
      getDateRange in interface BolOrderFacade
      Returns:
      Date range in days
    • getSearchSort

      public List<SortData> getSearchSort()
      Description copied from interface: BolOrderFacade
      Returning the current search sort options, allowing to access them even if the UI does not specify them in each call.
      Specified by:
      getSearchSort in interface BolOrderFacade
      Returns:
      The current sort options
    • setSearchDirty

      public void setSearchDirty()
      Description copied from interface: BolOrderFacade
      Allows to state that the search result is dirty, i.e. search results need to be re-populated from the back end. If the search is not dirty, calls to the BOL layer will just perform pagination and sorting.
      Specified by:
      setSearchDirty in interface BolOrderFacade