Interface CsticTypeMapper

  • All Known Implementing Classes:
    CsticTypeMapperImpl

    public interface CsticTypeMapper
    Populator like helper object to map a single characteristic and all child objects, such as domain values, from the product configuration model to the corresponding DAOs and vice versa.
    • Field Detail

      • READ_ONLY_AUTHOR

        static final java.lang.String READ_ONLY_AUTHOR
        Characteristics that are assigned by the system author may not be chnaged by the front-end user, henc ethey should be considered read-only.
        See Also:
        Constant Field Values
    • Method Detail

      • mapCsticModelToData

        CsticData mapCsticModelToData​(CsticModel model,
                                      java.lang.String groupName,
                                      java.util.Map<java.lang.String,​ClassificationSystemCPQAttributesContainer> nameMap)
        Maps a single characteristic. Model -> DTO.
        Parameters:
        model - source - characteristic Model
        groupName - name of the group, this characteristic belongs to
        nameMap - cache for hybris classification system access
        Returns:
        target - characteristic DTO
      • updateCsticModelValuesFromData

        void updateCsticModelValuesFromData​(CsticData data,
                                            CsticModel model)
        Updates a single characteristic. DTO -> Model.
        Parameters:
        data - source - characteristic DTO
        model - target - characteristic Model
      • generateUniqueKey

        java.lang.String generateUniqueKey​(CsticModel model,
                                           java.lang.String groupName)
        Generates a key that identifies this characteristic uniquely within this configuration.
        Parameters:
        model - characteristic model
        groupName - ui group name the cstic belongs to
        Returns:
        unique key