Class DefaultBolOrderFacade

  • All Implemented Interfaces:
    BolOrderFacade

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

      • DefaultBolOrderFacade

        public DefaultBolOrderFacade()
    • Method Detail

      • 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
      • getSavedOrder

        public Order getSavedOrder​(java.lang.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 java.util.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
      • getSearchSort

        public java.util.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