Interface ConfigurationMasterDataService
- All Known Implementing Classes:
ConfigurationMasterDataServiceImpl
public interface ConfigurationMasterDataService
Master data service for filling config model.
-
Method Summary
Modifier and TypeMethodDescriptiongetCharacteristic(String kbId, String characteristicId) Gets localised master data for characteristicgetFallbackMasterData(String kbId) Get fallback master data by KB id if fallback locale is maintained for current locale and fallback is enabled.getGroupCharacteristicIDs(String kbId, String itemKey, String itemType, String groupId) Gets characteristic ids for group.getGroupName(String kbId, String itemKey, String itemType, String groupId) Gets localised name for group.getItemName(String kbId, String id, String type) Gets localised name for itemgetKbBuildNumber(String kbId) Retrieves the build number for the specified knowledgebase idgetMasterData(String kbId) Get master data by KB idgetPossibleValueIds(String kbId, String characteristicId) Get all possible value ids for a given characteristicgetSpecificPossibleValueIds(String kbId, String itemKey, String itemType, String characteristicId) Get all specific (that have a variant condition) possible value ids for a given characteristic.getValueDescription(String kbId, String characteristicId, String valueId) Gets localised description for valuegetValueName(String kbId, String characteristicId, String valueId) Gets localised name for valuegetValuePricingKey(String kbId, String productId, String characteristicId, String valueId) Get pricing key for valuebooleanisCharacteristicNumeric(String kbId, String csticId) Checks if a characteristic is numericbooleanisProductMultilevel(String kbId, String productId) Gives information whether product is multilevelvoidremoveCachedKb(String kbId) Removes the knowledgebase from the hybris cache in order to force a reload from service
-
Method Details
-
getItemName
Gets localised name for item- Parameters:
kbId- id of the knowledgebaseid- id of the itemtype- type of the item- Returns:
- localised name of the item
-
getGroupName
Gets localised name for group. In case we are requesting the group name for class nodes, the class name will be returned as the class node doesn't carry UI groups, except for the 'general' dummy group- Parameters:
kbId- id of the knowledgebaseitemKey- id of the product or classitemType- EitherSapproductconfigruntimecpsConstants.ITEM_TYPE_MARAorSapproductconfigruntimecpsConstants.ITEM_TYPE_KLAHgroupId- id of the group. Not relevant for class nodes- Returns:
- localised name of the group
-
isProductMultilevel
Gives information whether product is multilevel- Parameters:
kbId- id of the knowledgebaseproductId- id of the product- Returns:
- whether product is multilevel
-
getCharacteristic
Gets localised master data for characteristic- Parameters:
kbId- id of the knowledgebasecharacteristicId- id of the characteristic- Returns:
- localised master data of the characteristic
-
getValueName
Gets localised name for value- Parameters:
kbId- id of the knowledgebasecharacteristicId- id of the characteristicvalueId- id of the value- Returns:
- localised name of the value
-
getValueDescription
Gets localised description for value- Parameters:
kbId- id of the knowledgebasecharacteristicId- id of the characteristicvalueId- id of the value- Returns:
- localised description of the value
-
getGroupCharacteristicIDs
List<String> getGroupCharacteristicIDs(String kbId, String itemKey, String itemType, String groupId) Gets characteristic ids for group. In case we are requesting the characteristics for class nodes, all characteristic assigned to the class node will be returned as the class node does not carry any group besides the 'general' dummy group- Parameters:
kbId- id of the knowledgebaseitemKey- id of the product or a class nodeitemType- EitherSapproductconfigruntimecpsConstants.ITEM_TYPE_MARAorSapproductconfigruntimecpsConstants.ITEM_TYPE_KLAHgroupId- id of the group. Not relevant for class nodes- Returns:
- list of characteristic ids belonging to the group
-
getMasterData
Get master data by KB id- Parameters:
kbId- id of the knowledgebase- Returns:
- knowledgebase data for the given id
-
getFallbackMasterData
Get fallback master data by KB id if fallback locale is maintained for current locale and fallback is enabled. Otherwise returns null.- Parameters:
kbId- id of the knowledgebase- Returns:
- fallback knowledgebase data for the given id
-
getValuePricingKey
Get pricing key for value- Parameters:
kbId- id of the knowledgebaseproductId- id of the productcharacteristicId- id of the characteristicvalueId- id of the value- Returns:
- pricing key for the given value
-
getSpecificPossibleValueIds
Set<String> getSpecificPossibleValueIds(String kbId, String itemKey, String itemType, String characteristicId) Get all specific (that have a variant condition) possible value ids for a given characteristic. For class nodes, which don't carry variant key assignments, an empty Set is returned- Parameters:
kbId- id of the knowledgebaseitemKey- id of the product of of a class nodeitemType- EitherSapproductconfigruntimecpsConstants.ITEM_TYPE_MARAorSapproductconfigruntimecpsConstants.ITEM_TYPE_KLAHcharacteristicId- id of the characteristic- Returns:
- list of possible value ids
-
getPossibleValueIds
Get all possible value ids for a given characteristic- Parameters:
kbId- id of the knowledgebaseproductId- id of the productcharacteristicId- id of the characteristic- Returns:
- list of possible value ids
-
isCharacteristicNumeric
Checks if a characteristic is numeric- Parameters:
kbId- Id of the knowledgebasecsticId- Id of the characteristic- Returns:
- whether characteristic is numeric
-
getKbBuildNumber
Retrieves the build number for the specified knowledgebase id- Parameters:
kbId- Id of the knowledgebase- Returns:
- build number of the knowledgebase
-
removeCachedKb
Removes the knowledgebase from the hybris cache in order to force a reload from service- Parameters:
kbId- Id of the knowledgebase
-