public class DefaultB2BOrderService extends DefaultOrderService implements B2BOrderService
B2BOrderServiceAbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultB2BOrderService() |
addNewEntry, addNewEntry, calculateOrder, clone, placeOrder, setCreateOrderFromCartStrategy, setOrderCalculation, setPlaceOrderStrategy, setSubmitOrderStrategies, submitOrderaddAllGlobalDiscountValues, addAllTotalTaxValues, addEntryAtPosition, addGlobalDiscountValue, addNewEntry, addTotalTaxValue, getAbstractOrderEntryService, getAbstractOrderEntryTypeService, getCloneAbstractOrderStrategy, getCollidingEntry, getEntriesForNumber, getEntriesForProduct, getEntryForNumber, getEntryTypeCode, getGlobalDiscountValue, getOrderDao, getSaveAbstractOrderStrategy, removeGlobalDiscountValue, removeTotalTaxValue, saveOrder, setAbstractOrderEntryService, setAbstractOrderEntryTypeService, setCloneAbstractOrderStrategy, setOrderDao, setSaveAbstractOrderStrategygetModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplaceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddNewEntry, addNewEntry, calculateOrder, placeOrder, submitOrderaddAllGlobalDiscountValues, addAllTotalTaxValues, addGlobalDiscountValue, addNewEntry, addTotalTaxValue, clone, getEntriesForNumber, getEntriesForProduct, getEntryForNumber, getGlobalDiscountValue, removeGlobalDiscountValue, removeTotalTaxValue, saveOrderpublic OrderModel createOrderFromCart(CartModel cart) throws InvalidCartException
OrderServicecart. This method focuses on creating an OrderModel instance
from the given CartModel instance. The order instance remains unsaved and not calculated. This method
does nothing with the cart member attributes (addresses, paymentInfo). It also leaves the target cart untouched.
If you want to calculate cart or order, use CalculationService.createOrderFromCart in interface OrderServicecreateOrderFromCart in class DefaultOrderServicecart - the target CartModelOrderModelInvalidCartException - if the cart is invalid according to the used CartValidator.protected boolean isB2BContext(AbstractOrderModel order)
public java.util.List<OrderModel> getRejectedOrders(UserModel user)
B2BOrderServiceOrderStatus.REJECTED for a user.getRejectedOrders in interface B2BOrderServiceuser - the userpublic java.util.List<CartToOrderCronJobModel> getScheduledOrders(UserModel user)
B2BOrderServicegetScheduledOrders in interface B2BOrderServiceuser - A user who had a cart scheduled for replenishment.@Deprecated public CartToOrderCronJobModel findScheduledCartToOrderJob(java.lang.String code)
getScheduledCartToOrderJobForCode(String) insteadB2BOrderServicefindScheduledCartToOrderJob in interface B2BOrderServicecode - the codepublic CartToOrderCronJobModel getScheduledCartToOrderJobForCode(java.lang.String code)
B2BOrderServiceCronJobModel.CODE.getScheduledCartToOrderJobForCode in interface B2BOrderServicecode - the cron job's CronJobModel.CODEpublic java.util.List<OrderModel> getPendingApprovalOrders(UserModel user)
B2BOrderServiceOrderStatus.PENDING_APPROVALgetPendingApprovalOrders in interface B2BOrderServiceuser - the userpublic java.util.List<OrderModel> getApprovedOrders(UserModel user)
B2BOrderServiceOrderStatus.APPROVED for a user.getApprovedOrders in interface B2BOrderServiceuser - the user@Deprecated public OrderModel getOrderByCode(java.lang.String code)
getOrderForCode(String) insteadB2BOrderServicegetOrderByCode in interface B2BOrderServicecode - the codepublic AbstractOrderModel getAbstractOrderForCode(java.lang.String code)
B2BOrderServiceAbstractOrderModel.CODE.getAbstractOrderForCode in interface B2BOrderServicecode - the AbstractOrderModel.CODE of the orderpublic OrderModel getOrderForCode(java.lang.String code)
B2BOrderServiceAbstractOrderModel.CODE.getOrderForCode in interface B2BOrderServicecode - the codepublic java.util.List<OrderModel> getErroredOrders(UserModel user)
B2BOrderServiceOrderStatus.B2B_PROCESSING_ERRORgetErroredOrders in interface B2BOrderServiceuser - the user@Deprecated public java.util.List<OrderModel> getRejectedByMerchantOrders(UserModel user)
getRejectedForMerchantOrders(UserModel) insteadB2BOrderServiceOrderStatus.REJECTED_BY_MERCHANT for a user.getRejectedByMerchantOrders in interface B2BOrderServiceuser - the userpublic java.util.List<OrderModel> getRejectedForMerchantOrders(UserModel user)
B2BOrderServiceOrderStatus.REJECTED_BY_MERCHANT for a user.getRejectedForMerchantOrders in interface B2BOrderServiceuser - the userpublic java.util.List<OrderModel> getPendingApprovalOrdersFromMerchant(UserModel user)
B2BOrderServiceOrderStatus.PENDING_APPROVAL_FROM_MERCHANTgetPendingApprovalOrdersFromMerchant in interface B2BOrderServiceuser - the user@Deprecated public java.util.List<OrderModel> getRejectedQuoteOrders(UserModel user)
getRejectedQuoteOrders in interface B2BOrderServiceuser - the user@Deprecated public java.util.List<OrderModel> getApprovedQuoteOrders(UserModel user)
getApprovedQuoteOrders in interface B2BOrderServiceuser - the user@Deprecated public java.util.List<OrderModel> getPendingQuoteOrders(UserModel user)
getPendingQuoteOrders in interface B2BOrderServiceuser - the user@Deprecated public boolean isQuoteAllowed(AbstractOrderModel source)
isQuoteAllowed in interface B2BOrderServicesource - the orderpublic void deleteOrder(java.lang.String code)
deleteOrder in interface B2BOrderServicecode - the order to deletepublic double getTotalDiscount(AbstractOrderEntryModel entry)
B2BOrderServicegetTotalDiscount in interface B2BOrderServiceentry - the entry line item of an orderpublic boolean hasItemDiscounts(AbstractOrderModel order)
B2BOrderServicehasItemDiscounts in interface B2BOrderServiceorder - the orderpublic double getOrderEntryDiscountAmount(AbstractOrderEntryModel entry)
B2BOrderServicegetOrderEntryDiscountAmount in interface B2BOrderServiceentry - An AbstractOrderEntryModelpublic void setB2bOrderDao(B2BOrderDao b2bOrderDao)
public void setBaseDao(BaseDao baseDao)
protected I18NService getI18nService()
public void setI18nService(I18NService i18nService)
public void setB2bCustomerService(B2BCustomerService<B2BCustomerModel,B2BUnitModel> b2bCustomerService)
protected CreateOrderFromCartStrategy getB2bCreateOrderFromCartStrategy()
public void setB2bCreateOrderFromCartStrategy(CreateOrderFromCartStrategy b2bCreateOrderFromCartStrategy)
protected CartToOrderCronJobModelDao getCartToOrderCronJobModelDao()
public void setCartToOrderCronJobModelDao(CartToOrderCronJobModelDao cartToOrderCronJobModelDao)
protected B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2bUnitService()
public void setB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
protected UserService getUserService()
public void setUserService(UserService userService)
protected SearchRestrictionService getSearchRestrictionService()
public void setSearchRestrictionService(SearchRestrictionService searchRestrictionService)
protected BaseDao getBaseDao()
protected B2BOrderDao getB2bOrderDao()
protected B2BCustomerService<B2BCustomerModel,B2BUnitModel> getB2bCustomerService()
protected java.util.List<QuoteEvaluationStrategy> getB2bQuoteEvaluationStrategies()
public void setB2bQuoteEvaluationStrategies(java.util.List<QuoteEvaluationStrategy> b2bQuoteEvaluationStrategies)
public WorkflowProcessingService getWorkflowProcessingService()
public void setWorkflowProcessingService(WorkflowProcessingService workflowProcessingService)
Copyright © 2018 SAP SE. All Rights Reserved.