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 Details

    • READ_ONLY_AUTHOR

      static final String READ_ONLY_AUTHOR
      Characteristics that are assigned by the system author may not be changed by the front-end user, hence they should be considered read-only.
      See Also:
  • Method Details

    • mapCsticModelToData

      CsticData mapCsticModelToData(ConfigModel configModel, CsticModel model, String groupName, Map<String,ClassificationSystemCPQAttributesContainer> nameMap)
      Maps a single characteristic. Model -> DTO.
      Parameters:
      configModel - configuration model as context
      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

      String generateUniqueKey(CsticModel model, 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