Class DefaultBolOrderFacade
java.lang.Object
de.hybris.platform.sap.sapordermgmtservices.bolfacade.impl.DefaultBolOrderFacade
- All Implemented Interfaces:
BolOrderFacade
Facade for accessing/saving order related business objects. Covers the access to a single order and the order search
functions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturning the date range for order search from configuration, also seeSAPConfigurationModel.getSapordermgmt_dateRange().getSavedOrder(String orderId) Return order details for an order existing in the back end persistence.protected SearchGet order search business objectGet total number of orders found in the last back end call, not taking any pagination into account.Returning the current search sort options, allowing to access them even if the UI does not specify them in each call.performSearch(SearchFilter searchFilter, PageableData pageableData) Performs search for orders.voidsetGenericFactory(GenericFactory genericFactory) voidsetSapCheckDocumentValid(CheckDocumentValid documentValidator) voidsetSapPartnerService(SapPartnerService sapPartnerService) voidAllows to state that the search result is dirty, i.e.
-
Constructor Details
-
DefaultBolOrderFacade
public DefaultBolOrderFacade()
-
-
Method Details
-
getGenericFactory
- Returns:
- the genericFactory
-
setGenericFactory
- Parameters:
genericFactory- the genericFactory to set
-
getSearch
Get order search business object- Returns:
- Order search BO implementation
-
getSearchResultsTotalNumber
Description copied from interface:BolOrderFacadeGet 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 ofBolOrderFacade.performSearch(SearchFilter, PageableData)- Specified by:
getSearchResultsTotalNumberin interfaceBolOrderFacade- Returns:
- Total number of orders
-
getSavedOrder
Description copied from interface:BolOrderFacadeReturn order details for an order existing in the back end persistence. Cannot be called for non-persisted orders in checkout.- Specified by:
getSavedOrderin interfaceBolOrderFacade- Parameters:
orderId- Back end ID of the order- Returns:
- BOL representation of order
-
getSapCheckDocumentValid
- Returns:
- the documentValidator
-
setSapCheckDocumentValid
- Parameters:
documentValidator- the documentValidator to set
-
getSapPartnerService
- Returns:
- the sapPartnerService
-
setSapPartnerService
- Parameters:
sapPartnerService- the sapPartnerService to set
-
performSearch
Description copied from interface:BolOrderFacadePerforms search for orders. Will either access the back end, if no search has been performed so far or the search result is dirty (seeBolOrderFacade.setSearchDirty(), or will perform paging and sorting on the existing search result, without doing a back end call- Specified by:
performSearchin interfaceBolOrderFacade- Parameters:
searchFilter- Filter datapageableData- Paging data as requested in the hybris service layer- Returns:
- List of BOL search results
-
getDateRange
public int getDateRange()Description copied from interface:BolOrderFacadeReturning the date range for order search from configuration, also seeSAPConfigurationModel.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:
getDateRangein interfaceBolOrderFacade- Returns:
- Date range in days
-
getSearchSort
Description copied from interface:BolOrderFacadeReturning the current search sort options, allowing to access them even if the UI does not specify them in each call.- Specified by:
getSearchSortin interfaceBolOrderFacade- Returns:
- The current sort options
-
setSearchDirty
public void setSearchDirty()Description copied from interface:BolOrderFacadeAllows 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:
setSearchDirtyin interfaceBolOrderFacade
-