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
Fields Modifier and Type Field Description static 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.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
generateUniqueKey(CsticModel model, java.lang.String groupName)
Generates a key that identifies this characteristic uniquely within this configuration.CsticData
mapCsticModelToData(CsticModel model, java.lang.String groupName, java.util.Map<java.lang.String,ClassificationSystemCPQAttributesContainer> nameMap)
Maps a single characteristic.void
updateCsticModelValuesFromData(CsticData data, CsticModel model)
Updates a single characteristic.
-
-
-
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 ModelgroupName
- name of the group, this characteristic belongs tonameMap
- 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 DTOmodel
- 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 modelgroupName
- ui group name the cstic belongs to- Returns:
- unique key
-
-