public class DefaultMappingLineService extends java.lang.Object implements MappingLineService
| Constructor and Description |
|---|
DefaultMappingLineService() |
| Modifier and Type | Method and Description |
|---|---|
MappingLineModel |
addCollectionEntry(CollectionMappingLine mappingLineModel)
Adds an additional entry mappingLineModel to a collection mapping mappingLineModel.
|
MappingLineModel |
generateAtomicMappingLine(ItemAttributePropertyDescriptor propertyDescriptor)
Generates an Atomic type mapping line model based on the attribute property descriptor
|
MappingLineModel |
generateComposedMappingLine(ItemAttributePropertyDescriptor propertyDescriptor,
boolean generateSubLines)
Generates a composed mapping mappingLineModel based on the property descriptor
|
boolean |
generateMappedSubMappingLines(MappingLineModel mappingLineModel,
java.util.Collection<ItemModel> items)
Generates new sub mapping lines for the items given.
|
MappingLineModel |
generateMappingLine(PropertyDescriptor propertyDescriptor)
Generates a mapping line model based on the property descriptor.
|
MappingLineModel |
generateProductAttributeMappingLine(java.lang.String translator,
java.lang.String translatorQualifier)
Generate a specific translator for type Product (@ClassificationAttributeTranslator)
|
MappingLineModel |
generateTranslatorMappingLine(ClassificationClassModel classificationClass,
ClassificationAttributeModel classificationAttribute,
java.lang.String translator)
Generate a translator mapping mappingLineModel
|
MappingLineModel |
generateTranslatorMappingLine(java.lang.String translatorQualifier,
java.lang.String translator)
Generate a translator mapping mappingLineModel
|
MappingLineModel |
generateVirtualMappingLine(SourceColumnModel sourceColumn)
Generates a so called "virtual" mapping line model after a source column has been dropped into the mapping view
without a target attribute specified.
|
protected TypeService |
getCockpitTypeService() |
protected MappingLineConfigService |
getMappingLineConfigService() |
protected MappingLineTypeService |
getMappingLineTypeService() |
ModelService |
getModelService() |
protected TypeService |
getTypeService() |
boolean |
isLineOfDateType(MappingLineModel mappingLineModel)
Checks if the mapping mappingLineModel refers to an attribute of a date type (like Product.onlineDate,
Product.offlineDate etc.)
|
boolean |
isLineOfNumberType(MappingLineModel mappingLineModel)
Checks if the mapping mappingLineModel refers to an attribute of a number type (like integer, double etc.).
|
void |
setMappingLineConfigService(MappingLineConfigService mappingLineConfigService) |
void |
setMappingLineTypeService(MappingLineTypeService mappingLineTypeService) |
void |
setTypeService(TypeService typeService) |
public void setTypeService(TypeService typeService)
protected TypeService getTypeService()
protected TypeService getCockpitTypeService()
public void setMappingLineTypeService(MappingLineTypeService mappingLineTypeService)
protected MappingLineTypeService getMappingLineTypeService()
public void setMappingLineConfigService(MappingLineConfigService mappingLineConfigService)
protected MappingLineConfigService getMappingLineConfigService()
public MappingLineModel generateMappingLine(PropertyDescriptor propertyDescriptor)
MappingLineServicegenerateMappingLine in interface MappingLineServicepropertyDescriptor - property descriptorpublic MappingLineModel generateAtomicMappingLine(ItemAttributePropertyDescriptor propertyDescriptor)
MappingLineServicegenerateAtomicMappingLine in interface MappingLineServicepublic MappingLineModel generateVirtualMappingLine(SourceColumnModel sourceColumn)
MappingLineServicegenerateVirtualMappingLine in interface MappingLineServicepublic boolean generateMappedSubMappingLines(MappingLineModel mappingLineModel, java.util.Collection<ItemModel> items)
MappingLineServicegenerateMappedSubMappingLines in interface MappingLineServicepublic MappingLineModel generateComposedMappingLine(ItemAttributePropertyDescriptor propertyDescriptor, boolean generateSubLines)
MappingLineServicegenerateComposedMappingLine in interface MappingLineServicepublic MappingLineModel generateTranslatorMappingLine(java.lang.String translatorQualifier, java.lang.String translator)
MappingLineServicegenerateTranslatorMappingLine in interface MappingLineServicetranslatorQualifier - for example '@media'translator - for @media it is "de.hybris.platform.impex.jalo.media.MediaDataTranslator"public MappingLineModel generateTranslatorMappingLine(ClassificationClassModel classificationClass, ClassificationAttributeModel classificationAttribute, java.lang.String translator)
MappingLineServicegenerateTranslatorMappingLine in interface MappingLineServicetranslator - for @media it is "de.hybris.platform.impex.jalo.media.MediaDataTranslator"public MappingLineModel generateProductAttributeMappingLine(java.lang.String translator, java.lang.String translatorQualifier)
MappingLineServicegenerateProductAttributeMappingLine in interface MappingLineServicetranslator - translatortranslatorQualifier - translator qualifierpublic MappingLineModel addCollectionEntry(CollectionMappingLine mappingLineModel)
MappingLineServiceaddCollectionEntry in interface MappingLineServicemappingLineModel - collection mappingLineModelpublic boolean isLineOfNumberType(MappingLineModel mappingLineModel)
MappingLineServiceisLineOfNumberType in interface MappingLineServicemappingLineModel - MappingLineModelpublic boolean isLineOfDateType(MappingLineModel mappingLineModel)
MappingLineServiceisLineOfDateType in interface MappingLineServicemappingLineModel - MappingLineModelpublic ModelService getModelService()
Copyright © 2018 SAP SE. All Rights Reserved.