Class CustomerPublishAction

java.lang.Object
de.hybris.platform.processengine.action.AbstractAction<T>
de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<BusinessProcessModel>
com.sap.hybris.sapcustomerb2c.outbound.CustomerPublishAction
All Implemented Interfaces:
de.hybris.platform.processengine.spring.Action<BusinessProcessModel>

public class CustomerPublishAction extends de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<BusinessProcessModel>
Action class to publish the registered customer to the Data Hub
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction

    de.hybris.platform.processengine.action.AbstractSimpleDecisionAction.Transition
  • Field Summary

    Fields inherited from class de.hybris.platform.processengine.action.AbstractAction

    modelService, processParameterHelper

    Fields inherited from interface de.hybris.platform.processengine.spring.Action

    ERROR_RETURN_CODE, RETRY_RETURN_CODE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    de.hybris.platform.processengine.action.AbstractSimpleDecisionAction.Transition
    executeAction(BusinessProcessModel businessProcessModel)
    /** action method to the update the customer and trigger the publish to Data Hub
    de.hybris.platform.processengine.BusinessProcessService
     
    Deprecated, for removal: This API element is subject to removal in a future version.
    (since = "2005", forRemoval = true)
    protected de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator
     
    return instance to send customer to the Data Hub
    de.hybris.platform.commercefacades.storesession.impl.DefaultStoreSessionFacade
    Return Session Store Facade instance
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    (since = "2005", forRemoval = true)
    protected void
    setSapContactId(BusinessProcessModel businessProcessModel)
    Generates a new Contact ID and set it to the Customer Model
    void
    setSapContactIdGenerator(de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator sapContactIdGenerator)
     
    void
    set instance to send customer to the Data Hub
    void
    setStoreSessionFacade(de.hybris.platform.commercefacades.storesession.impl.DefaultStoreSessionFacade storeSessionFacade)
    Set Session Store Facade instance

    Methods inherited from class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction

    execute, getTransitions

    Methods inherited from class de.hybris.platform.processengine.action.AbstractAction

    createTransitions, getModelService, getProcessParameterHelper, getProcessParameterValue, refresh, save, setModelService, setOrderStatus, setProcessParameterHelper

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface de.hybris.platform.processengine.spring.Action

    getCurrentActionDefinitionContext
  • Constructor Details

    • CustomerPublishAction

      public CustomerPublishAction()
  • Method Details

    • getBusinessProcessService

      public de.hybris.platform.processengine.BusinessProcessService getBusinessProcessService()
      Returns:
      businessProcessService
    • executeAction

      public de.hybris.platform.processengine.action.AbstractSimpleDecisionAction.Transition executeAction(BusinessProcessModel businessProcessModel) throws de.hybris.platform.task.RetryLaterException
      /** action method to the update the customer and trigger the publish to Data Hub
      Specified by:
      executeAction in class de.hybris.platform.processengine.action.AbstractSimpleDecisionAction<BusinessProcessModel>
      Throws:
      de.hybris.platform.task.RetryLaterException
    • setSapContactId

      protected void setSapContactId(BusinessProcessModel businessProcessModel)
      Generates a new Contact ID and set it to the Customer Model
      Parameters:
      businessProcessModel -
    • getSendCustomerToDataHub

      public CustomerExportService getSendCustomerToDataHub()
      return instance to send customer to the Data Hub
      Returns:
      sendCustomerToDataHub
    • setSendCustomerToDataHub

      public void setSendCustomerToDataHub(CustomerExportService sendCustomerToDataHub)
      set instance to send customer to the Data Hub
      Parameters:
      sendCustomerToDataHub -
    • getStoreSessionFacade

      public de.hybris.platform.commercefacades.storesession.impl.DefaultStoreSessionFacade getStoreSessionFacade()
      Return Session Store Facade instance
      Returns:
      storeSessionFacade
    • setStoreSessionFacade

      public void setStoreSessionFacade(de.hybris.platform.commercefacades.storesession.impl.DefaultStoreSessionFacade storeSessionFacade)
      Set Session Store Facade instance
      Parameters:
      storeSessionFacade -
    • getCustomerAccountService

      @Deprecated(since="2005", forRemoval=true) public DefaultB2CSapCustomerAccountService getCustomerAccountService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      (since = "2005", forRemoval = true)
    • setCustomerAccountService

      @Deprecated(since="2005", forRemoval=true) public void setCustomerAccountService(DefaultB2CSapCustomerAccountService customerAccountService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      (since = "2005", forRemoval = true)
    • getSapContactIdGenerator

      protected de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator getSapContactIdGenerator()
    • setSapContactIdGenerator

      public void setSapContactIdGenerator(de.hybris.platform.servicelayer.keygenerator.impl.PersistentKeyGenerator sapContactIdGenerator)