Class AbstractImpexGeneratorOperation
- java.lang.Object
-
- de.hybris.platform.importcockpit.services.impex.generator.operations.impl.AbstractImpexGeneratorOperation
-
- All Implemented Interfaces:
ImpexGeneratorOperation
- Direct Known Subclasses:
DefaultDataGeneratorOperation
,DefaultFileGeneratorOperation
,DefaultHeaderGeneratorOperation
public abstract class AbstractImpexGeneratorOperation extends java.lang.Object implements ImpexGeneratorOperation
-
-
Constructor Summary
Constructors Constructor Description AbstractImpexGeneratorOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendCatalogVersionDetailsForAttributeReference(MappingLineModel line, java.lang.StringBuilder outBuffer)
Appends the catalog version details if the mapping line is catalog version aware to the ImpexHeaderAttributeReference output.protected void
appendOwner(MappingLineModel line, MappingLineModel subLine, java.lang.StringBuilder outBuffer)
Appends the owner if it exists to the ImpexHeaderAttributeReference outputprotected boolean
apppendTranslatorForProductAttrib(MappingLineModel mappingLineModel, java.lang.StringBuilder macro)
protected CatalogTypeService
getCatalogTypeService()
java.util.Set<java.lang.String>
getCatalogVersionsForMapping(java.lang.String catalogVersionBaseType, MappingModel mapping)
java.lang.String
getGeneratedDocIDReference(MappingLineModel mappingLine)
protected boolean
getHaveUniqueAttributes(java.util.List<MappingLineModel> lines)
Checks the supplied List of mapping line models (MappingLineModel
), to determine if contains any unique attributes.protected MappingLineService
getMappingLineService()
protected ImportCockpitMappingService
getMappingService()
java.lang.String
getVersionForMappingLine(MappingLineModel line)
protected boolean
hasMappedSource(MappingLineModel mappingLineModel)
boolean
hasMappedSources(MappingModel mapping)
boolean
isCatalogItem(MappingLineModel mappingLineModel)
void
setCatalogTypeService(CatalogTypeService catalogTypeService)
void
setMappingLineService(MappingLineService mappingLineService)
void
setMappingService(ImportCockpitMappingService mappingService)
-
-
-
Method Detail
-
getMappingService
protected ImportCockpitMappingService getMappingService()
-
setMappingService
public void setMappingService(ImportCockpitMappingService mappingService)
-
getMappingLineService
protected MappingLineService getMappingLineService()
- Returns:
- the importMappingService
-
setMappingLineService
public void setMappingLineService(MappingLineService mappingLineService)
- Parameters:
mappingLineService
- the importMappingService to set
-
getCatalogTypeService
protected CatalogTypeService getCatalogTypeService()
-
setCatalogTypeService
public void setCatalogTypeService(CatalogTypeService catalogTypeService)
-
getGeneratedDocIDReference
public java.lang.String getGeneratedDocIDReference(MappingLineModel mappingLine)
- Specified by:
getGeneratedDocIDReference
in interfaceImpexGeneratorOperation
-
isCatalogItem
public boolean isCatalogItem(MappingLineModel mappingLineModel)
- Specified by:
isCatalogItem
in interfaceImpexGeneratorOperation
-
hasMappedSources
public boolean hasMappedSources(MappingModel mapping)
- Specified by:
hasMappedSources
in interfaceImpexGeneratorOperation
-
getVersionForMappingLine
public java.lang.String getVersionForMappingLine(MappingLineModel line)
- Specified by:
getVersionForMappingLine
in interfaceImpexGeneratorOperation
-
getCatalogVersionsForMapping
public java.util.Set<java.lang.String> getCatalogVersionsForMapping(java.lang.String catalogVersionBaseType, MappingModel mapping)
- Specified by:
getCatalogVersionsForMapping
in interfaceImpexGeneratorOperation
- Returns:
- (All needed catalog version for base type and all subtype. It exist only the values catalogVersion and systemVersion)
-
hasMappedSource
protected boolean hasMappedSource(MappingLineModel mappingLineModel)
- Parameters:
mappingLineModel
-- Returns:
- true... false...
-
getHaveUniqueAttributes
protected boolean getHaveUniqueAttributes(java.util.List<MappingLineModel> lines)
Checks the supplied List of mapping line models (MappingLineModel
), to determine if contains any unique attributes.- Parameters:
lines
-- Returns:
- true if any of the mapping lines contains any unique attrributes, false otherwise.
-
appendOwner
protected void appendOwner(MappingLineModel line, MappingLineModel subLine, java.lang.StringBuilder outBuffer)
Appends the owner if it exists to the ImpexHeaderAttributeReference output- Parameters:
line
- - a non-nullMappingLineModel
objectsubLine
- - a non-nullMappingLineModel
object which is a child of line.outBuffer
- - - a non-null String object to which the owner is appended.
-
appendCatalogVersionDetailsForAttributeReference
protected void appendCatalogVersionDetailsForAttributeReference(MappingLineModel line, java.lang.StringBuilder outBuffer)
Appends the catalog version details if the mapping line is catalog version aware to the ImpexHeaderAttributeReference output.- Parameters:
line
- - a non-nullMappingLineModel
objectoutBuffer
- - - a non-null String object to which the owner is appended.
-
apppendTranslatorForProductAttrib
protected boolean apppendTranslatorForProductAttrib(MappingLineModel mappingLineModel, java.lang.StringBuilder macro)
-
-