Class PersonalizationPreviewTicketReversePopulator
- java.lang.Object
-
- de.hybris.platform.previewpersonalizationweb.populator.PersonalizationPreviewTicketReversePopulator
-
- All Implemented Interfaces:
Populator<PreviewTicketWsDTO,PreviewDataModel>
public class PersonalizationPreviewTicketReversePopulator extends java.lang.Object implements Populator<PreviewTicketWsDTO,PreviewDataModel>
-
-
Constructor Summary
Constructors Constructor Description PersonalizationPreviewTicketReversePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
createErrorMessageForCodes(java.util.Collection<java.lang.String> codes)
protected java.lang.String
createErrorMessageForVariationKeys(java.util.Collection<CxVariationKey> keys)
protected CxVariationKey
createKey(CxVariationModel variation)
protected java.util.Optional<CatalogVersionModel>
findCxCatalogVersion(java.lang.String catalog, java.lang.String catalogVersion)
protected java.util.Collection<CxVariationModel>
findExistingVariations(PreviewTicketWsDTO source)
CatalogVersionService
getCatalogVersionService()
CxCatalogService
getCxCatalogService()
CxSegmentService
getCxSegmentService()
CxVariationService
getCxVariationService()
LocalViewExecutor
getLocalViewExecutor()
void
populate(PreviewTicketWsDTO source, PreviewDataModel target)
Populate the target instance with values from the source instance.void
setCatalogVersionService(CatalogVersionService catalogVersionService)
void
setCxCatalogService(CxCatalogService cxCatalogService)
void
setCxSegmentService(CxSegmentService cxSegmentService)
void
setCxVariationService(CxVariationService cxVariationService)
void
setLocalViewExecutor(LocalViewExecutor localViewExecutor)
protected void
setSegments(PreviewTicketWsDTO source, PreviewDataModel target)
protected void
setVariations(PreviewTicketWsDTO source, PreviewDataModel target)
void
validateSegments(java.util.Collection<java.lang.String> inputSegmentsCode, java.util.Collection<CxSegmentModel> existingSegments)
void
validateVariations(java.util.Collection<CxVariationKey> inputVariationCodes, java.util.Collection<CxVariationModel> existingVariations)
-
-
-
Method Detail
-
populate
public void populate(PreviewTicketWsDTO source, PreviewDataModel target)
Description copied from interface:Populator
Populate the target instance with values from the source instance.- Specified by:
populate
in interfacePopulator<PreviewTicketWsDTO,PreviewDataModel>
- Parameters:
source
- the source objecttarget
- the target to fill
-
setVariations
protected void setVariations(PreviewTicketWsDTO source, PreviewDataModel target)
-
findExistingVariations
protected java.util.Collection<CxVariationModel> findExistingVariations(PreviewTicketWsDTO source)
-
findCxCatalogVersion
protected java.util.Optional<CatalogVersionModel> findCxCatalogVersion(java.lang.String catalog, java.lang.String catalogVersion)
-
setSegments
protected void setSegments(PreviewTicketWsDTO source, PreviewDataModel target)
-
validateVariations
public void validateVariations(java.util.Collection<CxVariationKey> inputVariationCodes, java.util.Collection<CxVariationModel> existingVariations)
-
validateSegments
public void validateSegments(java.util.Collection<java.lang.String> inputSegmentsCode, java.util.Collection<CxSegmentModel> existingSegments)
-
createKey
protected CxVariationKey createKey(CxVariationModel variation)
-
createErrorMessageForVariationKeys
protected java.lang.String createErrorMessageForVariationKeys(java.util.Collection<CxVariationKey> keys)
-
createErrorMessageForCodes
protected java.lang.String createErrorMessageForCodes(java.util.Collection<java.lang.String> codes)
-
getCxVariationService
public CxVariationService getCxVariationService()
-
setCxVariationService
public void setCxVariationService(CxVariationService cxVariationService)
-
getCatalogVersionService
public CatalogVersionService getCatalogVersionService()
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
-
getCxSegmentService
public CxSegmentService getCxSegmentService()
-
setCxSegmentService
public void setCxSegmentService(CxSegmentService cxSegmentService)
-
setLocalViewExecutor
public void setLocalViewExecutor(LocalViewExecutor localViewExecutor)
-
getLocalViewExecutor
public LocalViewExecutor getLocalViewExecutor()
-
setCxCatalogService
public void setCxCatalogService(CxCatalogService cxCatalogService)
-
getCxCatalogService
public CxCatalogService getCxCatalogService()
-
-