Class AssistedServicePlaceOrderMethodHook
java.lang.Object
de.hybris.platform.assistedservicefacades.hook.AssistedServicePlaceOrderMethodHook
- All Implemented Interfaces:
CommercePlaceOrderMethodHook
public class AssistedServicePlaceOrderMethodHook
extends Object
implements CommercePlaceOrderMethodHook
Assisted service place order hook for setting up placedBy attribute for an order.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult orderModel) Executed after the place ordervoidbeforePlaceOrder(CommerceCheckoutParameter parameter) Executed before the place ordervoidbeforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result) Executed before the submit orderprotected UserModelget that acting user, and if acting user is there and different from user.voidsetAssistedServiceFacade(AssistedServiceFacade assistedServiceFacade) voidsetModelService(ModelService modelService) voidsetSessionService(SessionService sessionService) voidsetUserService(UserService userService)
-
Constructor Details
-
AssistedServicePlaceOrderMethodHook
public AssistedServicePlaceOrderMethodHook()
-
-
Method Details
-
afterPlaceOrder
public void afterPlaceOrder(CommerceCheckoutParameter parameter, CommerceOrderResult orderModel) throws InvalidCartException Description copied from interface:CommercePlaceOrderMethodHookExecuted after the place order- Specified by:
afterPlaceOrderin interfaceCommercePlaceOrderMethodHook- Parameters:
parameter- object containing all the information for checkoutorderModel- object containing the order model- Throws:
InvalidCartException
-
beforePlaceOrder
Description copied from interface:CommercePlaceOrderMethodHookExecuted before the place order- Specified by:
beforePlaceOrderin interfaceCommercePlaceOrderMethodHook- Parameters:
parameter- object containing all the information for checkout- Throws:
InvalidCartException
-
beforeSubmitOrder
public void beforeSubmitOrder(CommerceCheckoutParameter parameter, CommerceOrderResult result) throws InvalidCartException Description copied from interface:CommercePlaceOrderMethodHookExecuted before the submit order- Specified by:
beforeSubmitOrderin interfaceCommercePlaceOrderMethodHook- Parameters:
parameter- object containing all the information for checkoutresult- object containing the order model- Throws:
InvalidCartException
-
getActingUserFromSessionContext
get that acting user, and if acting user is there and different from user. we return it.- Returns:
- userModel if it's agent, or return null
-
getAssistedServiceFacade
- Returns:
- the assistedServiceFacade
-
setAssistedServiceFacade
- Parameters:
assistedServiceFacade- the assistedServiceFacade to set
-
getModelService
- Returns:
- the modelService
-
setModelService
- Parameters:
modelService- the modelService to set
-
getUserService
- Returns:
- the UserService
-
setUserService
- Parameters:
userService- the modelService to set
-
getSessionService
- Returns:
- the SessionService
-
setSessionService
- Parameters:
sessionService- the modelService to set
-