public class SapOrderManagementSwitchUIComponentsAspect
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADDON_PREFIX |
static java.lang.String |
FORWARD_PREFIX |
static Logger |
LOG |
static java.lang.String |
REDIRECT_MY_ACCOUNT |
static java.lang.String |
REDIRECT_PREFIX |
static java.lang.String |
SAP_ERROR |
static java.lang.String |
SOM_ADDON_PREFIX |
static java.lang.String |
VALIDATIONS_ATTRIBUTE |
| Constructor and Description |
|---|
SapOrderManagementSwitchUIComponentsAspect() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
applyUIChanges(ProceedingJoinPoint pjp)
Apply the UI changes when switching between synchronous order management SOM and asynchronous order management
AOM.
|
BaseStoreService |
getBaseStoreService() |
ProductFacade |
getProductFacade() |
protected SessionService |
getSessionService() |
protected boolean |
isSapOrderMgmtEnabled()
Check if synchronous order management SOM is active
|
protected boolean |
isUIChangeRequired(java.lang.String uiComponent) |
static void |
logInfoMessage(java.lang.String methodSignature,
java.lang.String uiComponent,
boolean somEnabled)
Log an information message
|
java.lang.Object |
redirectToMyAccountPage(ProceedingJoinPoint pjp)
Redirect the request to my account page since the requested page is not supported in the SOM scenario
|
void |
setBaseStoreService(BaseStoreService baseStoreService) |
void |
setProductFacade(ProductFacade productFacade) |
void |
setSessionService(SessionService sessionService) |
java.lang.Object |
switchAddonUIComponent(ProceedingJoinPoint pjp)
Switch the UI component definition from the b2bacceleratoraddon add-on to the ysapordermgmtb2baddon add-on
|
public static final Logger LOG
public static final java.lang.String SOM_ADDON_PREFIX
public static final java.lang.String REDIRECT_PREFIX
public static final java.lang.String FORWARD_PREFIX
public static final java.lang.String ADDON_PREFIX
public static final java.lang.String REDIRECT_MY_ACCOUNT
public static final java.lang.String VALIDATIONS_ATTRIBUTE
public static final java.lang.String SAP_ERROR
public SapOrderManagementSwitchUIComponentsAspect()
public ProductFacade getProductFacade()
public void setProductFacade(ProductFacade productFacade)
productFacade - the productFacade to setpublic BaseStoreService getBaseStoreService()
public void setBaseStoreService(BaseStoreService baseStoreService)
baseStoreService - the baseStoreService to setpublic java.lang.Object applyUIChanges(ProceedingJoinPoint pjp)
throws java.lang.Throwable
pjp - java.lang.Throwablepublic java.lang.Object redirectToMyAccountPage(ProceedingJoinPoint pjp)
throws java.lang.Throwable
pjp - java.lang.Throwablepublic java.lang.Object switchAddonUIComponent(ProceedingJoinPoint pjp)
throws java.lang.Throwable
pjp - java.lang.Throwablepublic static void logInfoMessage(java.lang.String methodSignature,
java.lang.String uiComponent,
boolean somEnabled)
methodSignature - uiComponent - somEnabled - protected boolean isSapOrderMgmtEnabled()
protected boolean isUIChangeRequired(java.lang.String uiComponent)
uiComponent - protected SessionService getSessionService()
public void setSessionService(SessionService sessionService)
Copyright © 2018 SAP SE. All Rights Reserved.