Interface CharonKbDeterminationFacade

All Known Implementing Classes:
CharonKbDeterminationFacadeImpl

public interface CharonKbDeterminationFacade
Wraps the service calls for KB determination. Implementation details (usage of charon) should be hidden from the configuration provider
  • Method Summary

    Modifier and Type
    Method
    Description
    default Integer
    Reads the current KB ID for a given product.
    boolean
    hasKbForDate(String productcode, Date kbdate)
    Check for knowledge bases on a given date
    boolean
    hasKBForKey(de.hybris.platform.sap.productconfig.runtime.interf.KBKey kbKey)
    checks the given key for existence
    boolean
    hasValidKBForKey(de.hybris.platform.sap.productconfig.runtime.interf.KBKey kbKey)
    checks the given key existence and validity
    de.hybris.platform.sap.productconfig.runtime.interf.KBKey
    parseKBKeyFromExtConfig(String productCode, String externalcfg)
    parses a KBKey from the external configuration
    readKbIdForDate(String productcode, Date kbdate)
    Reads KB ID for a given product and date.
  • Method Details

    • hasKbForDate

      boolean hasKbForDate(String productcode, Date kbdate)
      Check for knowledge bases on a given date
      Parameters:
      productcode - Product code
      kbdate - Validity date
      Returns:
      Does at least one knowledge base exist?
    • readKbIdForDate

      Integer readKbIdForDate(String productcode, Date kbdate)
      Reads KB ID for a given product and date. It's not required that the KB for the product/date combination is unique, if multiple knowledge bases exist, the ID for the first found KB is returned
      Parameters:
      productcode - product code
      kbdate - Validity date of KB
      Returns:
      KB ID for first matching KB
    • getCurrentKbIdForProduct

      default Integer getCurrentKbIdForProduct(String productcode)
      Reads the current KB ID for a given product.
      Parameters:
      productcode - product code
      Returns:
      KB ID for matching KB
    • parseKBKeyFromExtConfig

      de.hybris.platform.sap.productconfig.runtime.interf.KBKey parseKBKeyFromExtConfig(String productCode, String externalcfg)
      parses a KBKey from the external configuration
      Parameters:
      productCode - productCode
      externalcfg - extConfig
      Returns:
      KBKey with all fields filled
    • hasKBForKey

      boolean hasKBForKey(de.hybris.platform.sap.productconfig.runtime.interf.KBKey kbKey)
      checks the given key for existence
      Parameters:
      kbKey - key to check
      Returns:
      true, only if the given KBKey is known by the configuration engine
    • hasValidKBForKey

      boolean hasValidKBForKey(de.hybris.platform.sap.productconfig.runtime.interf.KBKey kbKey)
      checks the given key existence and validity
      Parameters:
      kbKey - key to check
      Returns:
      true, only if the given KBKey is known by the configuration engine and valid as of today