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 TypeMethodDescriptiondefault IntegergetCurrentKbIdForProduct(String productcode) Reads the current KB ID for a given product.booleanhasKbForDate(String productcode, Date kbdate) Check for knowledge bases on a given datebooleanhasKBForKey(de.hybris.platform.sap.productconfig.runtime.interf.KBKey kbKey) checks the given key for existencebooleanhasValidKBForKey(de.hybris.platform.sap.productconfig.runtime.interf.KBKey kbKey) checks the given key existence and validityde.hybris.platform.sap.productconfig.runtime.interf.KBKeyparseKBKeyFromExtConfig(String productCode, String externalcfg) parses a KBKey from the external configurationreadKbIdForDate(String productcode, Date kbdate) Reads KB ID for a given product and date.
-
Method Details
-
hasKbForDate
Check for knowledge bases on a given date- Parameters:
productcode- Product codekbdate- Validity date- Returns:
- Does at least one knowledge base exist?
-
readKbIdForDate
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 codekbdate- Validity date of KB- Returns:
- KB ID for first matching KB
-
getCurrentKbIdForProduct
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- productCodeexternalcfg- 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
-