Class DefaultB2BOrderFacade
java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultOrderFacade
de.hybris.platform.b2bacceleratorfacades.order.impl.DefaultB2BOrderFacade
- All Implemented Interfaces:
B2BOrderFacade,OrderFacade
Default b2b implementation of
OrderFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAdditionalComment(String orderCode, String comment) Add a comment to an order.protected voidaddCommentToWorkflowAction(WorkflowActionModel workflowActionModel, String comment) voidcancelOrder(String orderCode, String comment) Cancels an order.voidcancelReplenishment(String jobCode, String user) Stops the order replenishment process.voidcreateAndSetNewOrderFromApprovedQuote(String orderCode, String comment) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.voidcreateAndSetNewOrderFromNegotiateQuote(String orderCode, String comment) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.voidcreateAndSetNewOrderFromRejectedQuote(String orderCode) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.protected B2BCommentService<AbstractOrderModel>protected Converter<WorkflowActionModel,B2BOrderApprovalData> protected Converter<WorkflowActionModel,B2BOrderApprovalData> protected B2BOrderServiceprotected B2BSaleQuoteServiceprotected B2BWorkflowIntegrationServiceprotected BusinessProcessServiceprotected ModelServiceRetrieves the approval details of a specific order codegetOrderDetailsForCode(String code) Deprecated, for removal: This API element is subject to removal in a future version.As of 6.5, replaced byDefaultOrderFacade.getOrderDetailsForCode(String)Retrieves the history entry data of an order.protected OrderHistoryServiceRetrieves the order list for approval dashboardprotected PagedB2BWorkflowActionDaogetPagedOrdersForApproval(WorkflowActionType[] actionTypes, PageableData pageableData) Retrieves the order list for approval with configurable parameters.getPagedReplenishmentHistory(PageableData pageableData) Retrieves replenishment cron jobs associated to the session user with paging supportSearchPageData<? extends OrderHistoryData>getPagedReplenishmentOrderHistory(String jobCode, PageableData pageableData) Retrieves all the scheduled order for a given jobCode with configurable parameters.protected ProcessParameterHelperRetrieves replenishment cron jobs associated to the session user.getReplenishmentOrderDetailsForCode(String code, String user) Gets the schedule Cart Data for replenishment given a code.List<? extends OrderHistoryData>getReplenishmentOrderHistory(String jobCode, String user) Retrieves all the scheduled order for a given jobCode.protected Converter<CartToOrderCronJobModel,ScheduledCartData> protected voidsetB2BComment(String comment, AbstractOrderModel order) voidsetB2bCommentService(B2BCommentService<AbstractOrderModel> b2bCommentService) voidsetB2bOrderApprovalDashboardConverter(Converter<WorkflowActionModel, B2BOrderApprovalData> b2bOrderApprovalDashboardConverter) voidsetB2bOrderApprovalDataConverter(Converter<WorkflowActionModel, B2BOrderApprovalData> b2bOrderApprovalDataConverter) voidsetB2bOrderHistoryEntryDataConverter(Converter<OrderHistoryEntryModel, B2BOrderHistoryEntryData> b2bOrderHistoryEntryDataConverter) voidsetB2bOrderService(B2BOrderService b2bOrderService) voidsetB2bQuoteOrderService(B2BSaleQuoteService b2bQuoteOrderService) voidsetB2bWorkflowIntegrationService(B2BWorkflowIntegrationService b2bWorkflowIntegrationService) voidsetBusinessProcessService(BusinessProcessService businessProcessService) voidsetModelService(ModelService modelService) setOrderApprovalDecision(B2BOrderApprovalData b2bOrderApprovalData) Sets the order approval decision to the workflow.voidsetOrderHistoryService(OrderHistoryService orderHistoryService) voidsetPagedB2BWorkflowActionDao(PagedB2BWorkflowActionDao pagedB2BWorkflowActionDao) voidsetProcessParameterHelper(ProcessParameterHelper processParameterHelper) voidsetScheduledCartConverter(Converter<CartToOrderCronJobModel, ScheduledCartData> scheduledCartConverter) Methods inherited from class de.hybris.platform.commercefacades.order.impl.DefaultOrderFacade
convertPageData, getBaseStoreService, getCheckoutCustomerStrategy, getCustomerAccountService, getOrderConverter, getOrderDetailsForCodeWithoutUser, getOrderDetailsForGUID, getOrderHistoryConverter, getOrderHistoryForStatuses, getPagedOrderHistoryForStatuses, getUserService, setBaseStoreService, setCheckoutCustomerStrategy, setCustomerAccountService, setOrderConverter, setOrderHistoryConverter, setUserServiceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.commercefacades.order.OrderFacade
getOrderDetailsForCodeWithoutUser, getOrderDetailsForGUID, getOrderHistoryForStatuses, getPagedOrderHistoryForStatuses
-
Constructor Details
-
DefaultB2BOrderFacade
public DefaultB2BOrderFacade()
-
-
Method Details
-
getOrderDetailsForCode
Deprecated, for removal: This API element is subject to removal in a future version.As of 6.5, replaced byDefaultOrderFacade.getOrderDetailsForCode(String)Description copied from interface:OrderFacadeReturns the detail of an Order.- Specified by:
getOrderDetailsForCodein interfaceOrderFacade- Overrides:
getOrderDetailsForCodein classDefaultOrderFacade- Parameters:
code- The code of the Order for which to retrieve the detail.- Returns:
- The detail of the order with matching code
-
getReplenishmentOrderDetailsForCode
Description copied from interface:B2BOrderFacadeGets the schedule Cart Data for replenishment given a code.- Specified by:
getReplenishmentOrderDetailsForCodein interfaceB2BOrderFacade- Parameters:
code- unique job identifieruser- a customer assigned to the cart- Returns:
for given code and user
-
getReplenishmentHistory
Description copied from interface:B2BOrderFacadeRetrieves replenishment cron jobs associated to the session user.- Specified by:
getReplenishmentHistoryin interfaceB2BOrderFacade- Returns:
- the replenishment order history.
-
getPagedReplenishmentHistory
Description copied from interface:B2BOrderFacadeRetrieves replenishment cron jobs associated to the session user with paging support- Specified by:
getPagedReplenishmentHistoryin interfaceB2BOrderFacade- Parameters:
pageableData- the pagination information (PageableData)- Returns:
- the replenishment order history.
-
cancelReplenishment
Description copied from interface:B2BOrderFacadeStops the order replenishment process.- Specified by:
cancelReplenishmentin interfaceB2BOrderFacade- Parameters:
jobCode- unique code for the replenishment cron job.user- customer assigned to the cart
-
getReplenishmentOrderHistory
Description copied from interface:B2BOrderFacadeRetrieves all the scheduled order for a given jobCode.- Specified by:
getReplenishmentOrderHistoryin interfaceB2BOrderFacade- Parameters:
jobCode- a cron job codeuser- a customer assigned to the cart- Returns:
- orders associated to a schedule job.
-
getPagedReplenishmentOrderHistory
public SearchPageData<? extends OrderHistoryData> getPagedReplenishmentOrderHistory(String jobCode, PageableData pageableData) Description copied from interface:B2BOrderFacadeRetrieves all the scheduled order for a given jobCode with configurable parameters.- Specified by:
getPagedReplenishmentOrderHistoryin interfaceB2BOrderFacade- Parameters:
jobCode- unique code for the replenishment cron job.pageableData- the pagination information- Returns:
- a list of scheduled orders
-
getOrdersForApproval
Description copied from interface:B2BOrderFacadeRetrieves the order list for approval dashboard- Specified by:
getOrdersForApprovalin interfaceB2BOrderFacade- Returns:
- all orders pending approval
-
getPagedOrdersForApproval
public SearchPageData<B2BOrderApprovalData> getPagedOrdersForApproval(WorkflowActionType[] actionTypes, PageableData pageableData) Description copied from interface:B2BOrderFacadeRetrieves the order list for approval with configurable parameters.- Specified by:
getPagedOrdersForApprovalin interfaceB2BOrderFacade- Parameters:
actionTypes- the action typespageableData- the pagination information- Returns:
- all orders pending approval
-
getOrderApprovalDetailsForCode
Description copied from interface:B2BOrderFacadeRetrieves the approval details of a specific order code- Specified by:
getOrderApprovalDetailsForCodein interfaceB2BOrderFacade- Parameters:
code- the order code.- Returns:
- the B2B order approval data
-
setOrderApprovalDecision
Description copied from interface:B2BOrderFacadeSets the order approval decision to the workflow.- Specified by:
setOrderApprovalDecisionin interfaceB2BOrderFacade- Parameters:
b2bOrderApprovalData- the approval comments and decision action.- Returns:
- the B2B order approval data
-
addCommentToWorkflowAction
-
getOrderHistoryEntryData
Description copied from interface:B2BOrderFacadeRetrieves the history entry data of an order.- Specified by:
getOrderHistoryEntryDatain interfaceB2BOrderFacade- Parameters:
code- the unique code of an order.- Returns:
- a list of history entries.
-
createAndSetNewOrderFromRejectedQuote
@Deprecated(since="6.3", forRemoval=true) public void createAndSetNewOrderFromRejectedQuote(String orderCode) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.- Specified by:
createAndSetNewOrderFromRejectedQuotein interfaceB2BOrderFacade- Parameters:
orderCode- the unique code of an order.
-
createAndSetNewOrderFromNegotiateQuote
@Deprecated(since="6.3", forRemoval=true) public void createAndSetNewOrderFromNegotiateQuote(String orderCode, String comment) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.- Specified by:
createAndSetNewOrderFromNegotiateQuotein interfaceB2BOrderFacade- Parameters:
orderCode- the unique code of an order.comment- comment string.
-
createAndSetNewOrderFromApprovedQuote
@Deprecated(since="6.3", forRemoval=true) public void createAndSetNewOrderFromApprovedQuote(String orderCode, String comment) Deprecated, for removal: This API element is subject to removal in a future version.Since 6.3.- Specified by:
createAndSetNewOrderFromApprovedQuotein interfaceB2BOrderFacade- Parameters:
orderCode- the unique code of an order.comment- comment string.
-
cancelOrder
Description copied from interface:B2BOrderFacadeCancels an order.- Specified by:
cancelOrderin interfaceB2BOrderFacade- Parameters:
orderCode- the unique code of an order.comment- comment string.
-
addAdditionalComment
Description copied from interface:B2BOrderFacadeAdd a comment to an order.- Specified by:
addAdditionalCommentin interfaceB2BOrderFacade- Parameters:
orderCode- the unique code of an order.comment- comment string.
-
setB2BComment
-
getB2bOrderService
-
setB2bOrderService
-
getScheduledCartConverter
-
setScheduledCartConverter
public void setScheduledCartConverter(Converter<CartToOrderCronJobModel, ScheduledCartData> scheduledCartConverter) -
getModelService
-
setModelService
-
getB2bOrderApprovalDataConverter
-
setB2bOrderApprovalDataConverter
public void setB2bOrderApprovalDataConverter(Converter<WorkflowActionModel, B2BOrderApprovalData> b2bOrderApprovalDataConverter) -
getB2bWorkflowIntegrationService
-
setB2bWorkflowIntegrationService
public void setB2bWorkflowIntegrationService(B2BWorkflowIntegrationService b2bWorkflowIntegrationService) -
getPagedB2BWorkflowActionDao
-
setPagedB2BWorkflowActionDao
-
getB2bOrderHistoryEntryDataConverter
protected Converter<OrderHistoryEntryModel,B2BOrderHistoryEntryData> getB2bOrderHistoryEntryDataConverter() -
setB2bOrderHistoryEntryDataConverter
public void setB2bOrderHistoryEntryDataConverter(Converter<OrderHistoryEntryModel, B2BOrderHistoryEntryData> b2bOrderHistoryEntryDataConverter) -
getB2bCommentService
-
setB2bCommentService
-
getB2bQuoteOrderService
-
setB2bQuoteOrderService
-
getOrderHistoryService
-
setOrderHistoryService
-
getProcessParameterHelper
-
setProcessParameterHelper
-
getBusinessProcessService
-
setBusinessProcessService
-
getB2bOrderApprovalDashboardConverter
protected Converter<WorkflowActionModel,B2BOrderApprovalData> getB2bOrderApprovalDashboardConverter() -
setB2bOrderApprovalDashboardConverter
public void setB2bOrderApprovalDashboardConverter(Converter<WorkflowActionModel, B2BOrderApprovalData> b2bOrderApprovalDashboardConverter)
-