Class SapOrderManagementSwitchUIComponentsAspect
java.lang.Object
de.hybris.platform.sap.ysapordermgmtb2baddon.aspect.SapOrderManagementSwitchUIComponentsAspect
This aspect is used to apply the UI changes when switching between synchronous order management SOM and asynchronous
order management AOM.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyUIChanges(org.aspectj.lang.ProceedingJoinPoint pjp) Apply the UI changes when switching between synchronous order management SOM and asynchronous order management AOM.de.hybris.platform.store.services.BaseStoreServicede.hybris.platform.commercefacades.product.ProductFacadeprotected de.hybris.platform.servicelayer.session.SessionServiceprotected booleanCheck if synchronous order management SOM is activeprotected booleanisUIChangeRequired(String uiComponent) static voidlogInfoMessage(String methodSignature, String uiComponent, boolean somEnabled) Log an information messageredirectToMyAccountPage(org.aspectj.lang.ProceedingJoinPoint pjp) Redirect the request to my account page since the requested page is not supported in the SOM scenariovoidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) voidsetProductFacade(de.hybris.platform.commercefacades.product.ProductFacade productFacade) voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) switchAddonUIComponent(org.aspectj.lang.ProceedingJoinPoint pjp) Switch the UI component definition from the b2bacceleratoraddon add-on to the ysapordermgmtb2baddon add-on
-
Field Details
-
LOG
public static final org.apache.log4j.Logger LOG -
SOM_ADDON_PREFIX
- See Also:
-
REDIRECT_PREFIX
- See Also:
-
FORWARD_PREFIX
- See Also:
-
ADDON_PREFIX
- See Also:
-
REDIRECT_MY_ACCOUNT
- See Also:
-
VALIDATIONS_ATTRIBUTE
- See Also:
-
SAP_ERROR
- See Also:
-
-
Constructor Details
-
SapOrderManagementSwitchUIComponentsAspect
public SapOrderManagementSwitchUIComponentsAspect()
-
-
Method Details
-
getProductFacade
public de.hybris.platform.commercefacades.product.ProductFacade getProductFacade()- Returns:
- the productFacade
-
setProductFacade
public void setProductFacade(de.hybris.platform.commercefacades.product.ProductFacade productFacade) - Parameters:
productFacade- the productFacade to set
-
getBaseStoreService
public de.hybris.platform.store.services.BaseStoreService getBaseStoreService()- Returns:
- the baseStoreService
-
setBaseStoreService
public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) - Parameters:
baseStoreService- the baseStoreService to set
-
applyUIChanges
Apply the UI changes when switching between synchronous order management SOM and asynchronous order management AOM. For the SOM scenario add the add-on prefix to the UI component.- Parameters:
pjp-- Returns:
- the UI component name
- Throws:
Throwable
-
redirectToMyAccountPage
Redirect the request to my account page since the requested page is not supported in the SOM scenario- Parameters:
pjp-- Returns:
- my account page
- Throws:
Throwable
-
switchAddonUIComponent
Switch the UI component definition from the b2bacceleratoraddon add-on to the ysapordermgmtb2baddon add-on- Parameters:
pjp-- Returns:
- the UI component name
- Throws:
Throwable
-
logInfoMessage
Log an information message- Parameters:
methodSignature-uiComponent-somEnabled-
-
isSapOrderMgmtEnabled
protected boolean isSapOrderMgmtEnabled()Check if synchronous order management SOM is active- Returns:
- true is SOM is active
-
isUIChangeRequired
- Parameters:
uiComponent-- Returns:
- true if the UI component switch is required
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService() -
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService)
-