Class CPQSalesDocumentERPHook

java.lang.Object
de.hybris.platform.sap.sapproductconfigsombol.hook.CPQSalesDocumentERPHook
All Implemented Interfaces:
SalesDocumentERPHook

public class CPQSalesDocumentERPHook extends Object implements SalesDocumentERPHook
Hook for SalesDocumentERP for after read and write document.
  • Constructor Details

    • CPQSalesDocumentERPHook

      public CPQSalesDocumentERPHook()
  • Method Details

    • afterWriteDocument

      public void afterWriteDocument(SalesDocument salesDocument, JCoConnection aJCoCon)
      Write product configuration data to the back end.
      Specified by:
      afterWriteDocument in interface SalesDocumentERPHook
      Parameters:
      salesDocument - Document containing items which might have a configuration attached.
    • afterReadFromBackend

      public void afterReadFromBackend(SalesDocument salesDocument, JCoConnection aJCoCon)
      Specified by:
      afterReadFromBackend in interface SalesDocumentERPHook
    • isOrder

      protected boolean isOrder(SalesDocument salesDocument)
    • getProductConfigurationStrategy

      public ProductConfigurationStrategy getProductConfigurationStrategy()
      Returns:
      Stratey for dealing with configurable products
    • setProductConfigurationStrategy

      public void setProductConfigurationStrategy(ProductConfigurationStrategy productConfigurationStrategy)
      Parameters:
      productConfigurationStrategy - the productConfigurationStrategy to set
    • determineConfigurableItems

      protected List<String> determineConfigurableItems(SalesDocument salesDocument)
    • getcPQSalesDocumentImpl

      public CPQSalesDocumentImpl getcPQSalesDocumentImpl()
      Returns:
      the cPQSalesDocumentImpl
    • setcPQSalesDocumentImpl

      public void setcPQSalesDocumentImpl(CPQSalesDocumentImpl cPQSalesDocumentImpl)
      Parameters:
      cPQSalesDocumentImpl - the cPQSalesDocumentImpl to set