Interface MasterDataContainerResolver

    • Method Detail

      • 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 data
        productId - id of the product
        csticId - 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 data
        csticId - id of the characteristic
        valueId - 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 data
        csticId - 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 data
        itemKey - id of the product or a class node
        itemType - Either SapproductconfigruntimecpsConstants.ITEM_TYPE_MARA or SapproductconfigruntimecpsConstants.ITEM_TYPE_KLAH
        groupId - 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 data
        itemKey - id of the item
        itemType - 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 data
        itemKey - id of the product or class
        itemType - Either SapproductconfigruntimecpsConstants.ITEM_TYPE_MARA or SapproductconfigruntimecpsConstants.ITEM_TYPE_KLAH
        groupId - 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 data
        productId - id of the product
        csticId - id of the characteristic
        valueId - 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 data
        productId - id of the product of of a class node
        itemType - Either SapproductconfigruntimecpsConstants.ITEM_TYPE_MARA or SapproductconfigruntimecpsConstants.ITEM_TYPE_KLAH
        csticId - 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 data
        productId - 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