Class DefaultOrderFacade
java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultOrderFacade
- All Implemented Interfaces:
OrderFacade
- Direct Known Subclasses:
DefaultB2BOrderFacade,DefaultB2BQuoteFacade
Default implementation of
OrderFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected <S,T> SearchPageData<T> convertPageData(SearchPageData<S> source, Converter<S, T> converter) protected BaseStoreServiceprotected CheckoutCustomerStrategyprotected <T extends CustomerAccountService>
Tprotected Converter<OrderModel,OrderData> getOrderDetailsForCode(String code) Returns the detail of an Order.Returns the order details for order code.getOrderDetailsForGUID(String guid) Gets the order details for GUID.protected Converter<OrderModel,OrderHistoryData> getOrderHistoryForStatuses(OrderStatus... statuses) Returns the order history of the current user for given statuses.getPagedOrderHistoryForStatuses(PageableData pageableData, OrderStatus... statuses) Returns the order history of the current user for given statuses.protected UserServicevoidsetBaseStoreService(BaseStoreService service) voidsetCheckoutCustomerStrategy(CheckoutCustomerStrategy checkoutCustomerStrategy) voidsetCustomerAccountService(CustomerAccountService customerAccountService) voidsetOrderConverter(Converter<OrderModel, OrderData> orderConverter) voidsetOrderHistoryConverter(Converter<OrderModel, OrderHistoryData> orderHistoryConverter) voidsetUserService(UserService userService)
-
Constructor Details
-
DefaultOrderFacade
public DefaultOrderFacade()
-
-
Method Details
-
getOrderDetailsForCode
Description copied from interface:OrderFacadeReturns the detail of an Order.- Specified by:
getOrderDetailsForCodein interfaceOrderFacade- Parameters:
code- The code of the Order for which to retrieve the detail.- Returns:
- The detail of the order with matching code
-
getOrderDetailsForGUID
Description copied from interface:OrderFacadeGets the order details for GUID.- Specified by:
getOrderDetailsForGUIDin interfaceOrderFacade- Parameters:
guid- The guid of the Order for which to retrieve the detail.- Returns:
- the order details for GUID
-
getOrderHistoryForStatuses
Description copied from interface:OrderFacadeReturns the order history of the current user for given statuses.- Specified by:
getOrderHistoryForStatusesin interfaceOrderFacade- Parameters:
statuses- array of order statuses to filter the results- Returns:
- The order history of the current user.
-
getPagedOrderHistoryForStatuses
public SearchPageData<OrderHistoryData> getPagedOrderHistoryForStatuses(PageableData pageableData, OrderStatus... statuses) Description copied from interface:OrderFacadeReturns the order history of the current user for given statuses.- Specified by:
getPagedOrderHistoryForStatusesin interfaceOrderFacade- Parameters:
pageableData- paging informationstatuses- array of order statuses to filter the results- Returns:
- The order history of the current user.
-
getOrderDetailsForCodeWithoutUser
Description copied from interface:OrderFacadeReturns the order details for order code.- Specified by:
getOrderDetailsForCodeWithoutUserin interfaceOrderFacade- Parameters:
code- order code- Returns:
- the order details for code without user
-
convertPageData
protected <S,T> SearchPageData<T> convertPageData(SearchPageData<S> source, Converter<S, T> converter) -
getUserService
-
setUserService
-
getCustomerAccountService
-
setCustomerAccountService
-
getBaseStoreService
-
setBaseStoreService
-
getOrderConverter
-
setOrderConverter
-
getOrderHistoryConverter
-
setOrderHistoryConverter
-
getCheckoutCustomerStrategy
-
setCheckoutCustomerStrategy
-