Class SapOrderManagementSwitchUIComponentsAspect

java.lang.Object
de.hybris.platform.sap.ysapordermgmtb2baddon.aspect.SapOrderManagementSwitchUIComponentsAspect

public class SapOrderManagementSwitchUIComponentsAspect extends Object
This aspect is used to apply the UI changes when switching between synchronous order management SOM and asynchronous order management AOM.
  • Field Details

  • 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

      public Object applyUIChanges(org.aspectj.lang.ProceedingJoinPoint pjp) throws Throwable
      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

      public Object redirectToMyAccountPage(org.aspectj.lang.ProceedingJoinPoint pjp) throws Throwable
      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

      public Object switchAddonUIComponent(org.aspectj.lang.ProceedingJoinPoint pjp) throws Throwable
      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

      public static void logInfoMessage(String methodSignature, String uiComponent, boolean somEnabled)
      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

      protected boolean isUIChangeRequired(String uiComponent)
      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)