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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCharacteristics that are assigned by the system author may not be changed by the front-end user, hence they should be considered read-only. -
Method Summary
Modifier and TypeMethodDescriptiongenerateUniqueKey(CsticModel model, String groupName) Generates a key that identifies this characteristic uniquely within this configuration.mapCsticModelToData(ConfigModel configModel, CsticModel model, String groupName, Map<String, ClassificationSystemCPQAttributesContainer> nameMap) Maps a single characteristic.voidupdateCsticModelValuesFromData(CsticData data, CsticModel model) Updates a single characteristic.
-
Field Details
-
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 contextmodel- source - characteristic ModelgroupName- name of the group, this characteristic belongs tonameMap- cache for hybris classification system access- Returns:
- target - characteristic DTO
-
updateCsticModelValuesFromData
Updates a single characteristic. DTO -> Model.- Parameters:
data- source - characteristic DTOmodel- target - characteristic Model
-
generateUniqueKey
Generates a key that identifies this characteristic uniquely within this configuration.- Parameters:
model- characteristic modelgroupName- ui group name the cstic belongs to- Returns:
- unique key
-