Class AbstractMappingValidationStrategy
- java.lang.Object
-
- de.hybris.platform.importcockpit.services.mapping.validation.strategy.impl.AbstractMappingValidationStrategy
-
- All Implemented Interfaces:
MappingModelValidationStrategy
- Direct Known Subclasses:
DefaultAttributeCollectionMappingValidationStrategy
,DefaultImpexModeMappingValidationStrategy
,DefaultSrcMappingValidationStrategy
public abstract class AbstractMappingValidationStrategy extends java.lang.Object implements MappingModelValidationStrategy
-
-
Constructor Summary
Constructors Constructor Description AbstractMappingValidationStrategy()
-
Method Summary
-
-
-
Method Detail
-
getImportCockpitMediaService
protected ImportCockpitMediaService getImportCockpitMediaService()
-
setImportCockpitMediaService
public void setImportCockpitMediaService(ImportCockpitMediaService importCockpitMediaService)
-
setMappingLineTypeService
public void setMappingLineTypeService(MappingLineTypeService mappingLineTypeService)
-
getMappingLineTypeService
protected MappingLineTypeService getMappingLineTypeService()
-
setMappingLineConfigService
public void setMappingLineConfigService(MappingLineConfigService mappingLineConfigService)
-
getMappingLineConfigService
protected MappingLineConfigService getMappingLineConfigService()
-
setTypeService
public void setTypeService(TypeService typeService)
-
getTypeService
protected TypeService getTypeService()
-
addError
public void addError(java.util.List<ValidationError> errors, ValidationError error)
- Specified by:
addError
in interfaceMappingModelValidationStrategy
-
validateMandatoryMappingLine
public void validateMandatoryMappingLine(java.util.List<ValidationError> errors, MappingLineModel mappingLineModel)
- Specified by:
validateMandatoryMappingLine
in interfaceMappingModelValidationStrategy
-
checkForComposedMappingLine
protected void checkForComposedMappingLine(java.util.List<ValidationError> errors, MappingLineModel mappingLineModel)
-
checkForCollectionElementsConsistency
protected void checkForCollectionElementsConsistency(java.util.List<ValidationError> errors, MappingModel mappingModel)
-
checkForCollectionMappingLine
protected void checkForCollectionMappingLine(java.util.List<ValidationError> errors, MappingLineModel mappingLineModel)
-
checkForEnumerationMappingLine
protected void checkForEnumerationMappingLine(java.util.List<ValidationError> errors, MappingLineModel mappingLineModel)
-
checkEnumerationValueExist
protected void checkEnumerationValueExist(java.util.List<ValidationError> errors, MappingLineModel mappingLineModel)
-
checkForLocalizedMappingLine
protected void checkForLocalizedMappingLine(java.util.List<ValidationError> errors, MappingLineModel line)
-
checkForUnmappedMandatoryAttributes
protected void checkForUnmappedMandatoryAttributes(java.util.List<ValidationError> errors, MappingModel mapping)
- Parameters:
errors
-mapping
- check for unmapped existing mandatory attributes
-
checkForUnmappedMandatoryAttributesAndFeatures
protected void checkForUnmappedMandatoryAttributesAndFeatures(java.util.List<ValidationError> errors, MappingModel mapping, MappingLineModel line)
-
checkForMissingMandatoryAttributes
protected void checkForMissingMandatoryAttributes(java.util.List<ValidationError> errors, MappingModel mapping)
- Parameters:
errors
-mapping
- check for missing mandatory attributes
-
checkChildrenElementsConsistent
protected boolean checkChildrenElementsConsistent(java.util.List<MappingLineModel> currentChildList, java.util.List<MappingLineModel> firstChildList)
-
isAllUniqueAttribsMapped
protected boolean isAllUniqueAttribsMapped(MappingLineModel mappingLineModel)
- Parameters:
mappingLineModel
-- Returns:
- Return true if all unique attributes have been mapped else false if user missed one.
-
getMandatoryAttributeDesciptors
protected java.util.Set<AttributeDescriptorModel> getMandatoryAttributeDesciptors(ComposedTypeModel composedTypeModel)
- Parameters:
composedTypeModel
-- Returns:
- all MandatoryAttributeDesciptors for the composed type
-
-