Interface MasterDataContainerResolver
-
- All Known Implementing Classes:
MasterDataContainerResolverImpl
public interface MasterDataContainerResolverResolver for reading specific master data from aCPSMasterDataKnowledgeBaseContainer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CPSMasterDataCharacteristicContainergetCharacteristic(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String csticId)Gets localised master data for characteristicjava.util.List<java.lang.String>getGroupCharacteristicIDs(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String itemKey, java.lang.String itemType, java.lang.String groupId)Gets characteristic ids for group.java.lang.StringgetGroupName(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String itemKey, java.lang.String itemType, java.lang.String groupId)Gets localised name for group.java.lang.StringgetItemName(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String itemKey, java.lang.String itemType)Gets localised name for itemjava.lang.IntegergetKbBuildNumber(CPSMasterDataKnowledgeBaseContainer kbContainer)Retrieves knowledgebase build number for given master data containerjava.util.Set<java.lang.String>getPossibleValueIds(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String csticId)Get all possible value ids for a given characteristicjava.util.Set<java.lang.String>getSpecificPossibleValueIds(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String productId, java.lang.String itemType, java.lang.String csticId)Get all specific (that have a variant condition) possible value ids for a given characteristic.java.lang.StringgetValueName(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String csticId, java.lang.String valueId)Gets localised name for valuejava.lang.StringgetValuePricingKey(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String productId, java.lang.String csticId, java.lang.String valueId)Get pricing key for valuebooleanisCharacteristicNumeric(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String csticId)Checks if a characteristic is numericbooleanisProductMultilevel(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String productId)Gives information whether product is multilevel
-
-
-
Method Detail
-
getCharacteristic
CPSMasterDataCharacteristicContainer getCharacteristic(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String csticId)
Gets localised master data for characteristic- Parameters:
kbContainer- container with cached master datacsticId- id of the characteristic- Returns:
- localised master data of the characteristic
-
getPossibleValueIds
java.util.Set<java.lang.String> getPossibleValueIds(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String csticId)
Get all possible value ids for a given characteristic- Parameters:
kbContainer- container with cached master dataproductId- id of the productcsticId- id of the characteristic- Returns:
- list of possible value ids
-
getValueName
java.lang.String getValueName(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String csticId, java.lang.String valueId)
Gets localised name for value- Parameters:
kbContainer- container with cached master datacsticId- id of the characteristicvalueId- id of the value- Returns:
- localised name of the value
-
isCharacteristicNumeric
boolean isCharacteristicNumeric(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String csticId)
Checks if a characteristic is numeric- Parameters:
kbContainer- container with cached master datacsticId- Id of the characteristic- Returns:
- whether characteristic is numeric
-
getGroupCharacteristicIDs
java.util.List<java.lang.String> getGroupCharacteristicIDs(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String itemKey, java.lang.String itemType, java.lang.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:
kbContainer- container with cached master dataitemKey- 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
-
getItemName
java.lang.String getItemName(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String itemKey, java.lang.String itemType)
Gets localised name for item- Parameters:
kbContainer- container with cached master dataitemKey- id of the itemitemType- type of the item- Returns:
- localised name of the item
-
getGroupName
java.lang.String getGroupName(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String itemKey, java.lang.String itemType, java.lang.String groupId)
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:
kbContainer- container with cached master dataitemKey- 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
-
getValuePricingKey
java.lang.String getValuePricingKey(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String productId, java.lang.String csticId, java.lang.String valueId)
Get pricing key for value- Parameters:
kbContainer- container with cached master dataproductId- id of the productcsticId- id of the characteristicvalueId- id of the value- Returns:
- pricing key for the given value
-
getSpecificPossibleValueIds
java.util.Set<java.lang.String> getSpecificPossibleValueIds(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String productId, java.lang.String itemType, java.lang.String csticId)
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:
kbContainer- container with cached master dataproductId- id of the product of of a class nodeitemType- EitherSapproductconfigruntimecpsConstants.ITEM_TYPE_MARAorSapproductconfigruntimecpsConstants.ITEM_TYPE_KLAHcsticId- id of the characteristic- Returns:
- list of possible value ids
-
isProductMultilevel
boolean isProductMultilevel(CPSMasterDataKnowledgeBaseContainer kbContainer, java.lang.String productId)
Gives information whether product is multilevel- Parameters:
kbContainer- container with cached master dataproductId- id of the product- Returns:
- whether product is multilevel
-
getKbBuildNumber
java.lang.Integer getKbBuildNumber(CPSMasterDataKnowledgeBaseContainer kbContainer)
Retrieves knowledgebase build number for given master data container- Parameters:
kbContainer- container with cached master data- Returns:
- build number of the knowledgebase
-
-