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 voidappendCatalogVersionDetailsForAttributeReference(MappingLineModel line, java.lang.StringBuilder outBuffer)Appends the catalog version details if the mapping line is catalog version aware to the ImpexHeaderAttributeReference output.protected voidappendOwner(MappingLineModel line, MappingLineModel subLine, java.lang.StringBuilder outBuffer)Appends the owner if it exists to the ImpexHeaderAttributeReference outputprotected booleanapppendTranslatorForProductAttrib(MappingLineModel mappingLineModel, java.lang.StringBuilder macro)protected CatalogTypeServicegetCatalogTypeService()java.util.Set<java.lang.String>getCatalogVersionsForMapping(java.lang.String catalogVersionBaseType, MappingModel mapping)java.lang.StringgetGeneratedDocIDReference(MappingLineModel mappingLine)protected booleangetHaveUniqueAttributes(java.util.List<MappingLineModel> lines)Checks the supplied List of mapping line models (MappingLineModel), to determine if contains any unique attributes.protected MappingLineServicegetMappingLineService()protected ImportCockpitMappingServicegetMappingService()java.lang.StringgetVersionForMappingLine(MappingLineModel line)protected booleanhasMappedSource(MappingLineModel mappingLineModel)booleanhasMappedSources(MappingModel mapping)booleanisCatalogItem(MappingLineModel mappingLineModel)voidsetCatalogTypeService(CatalogTypeService catalogTypeService)voidsetMappingLineService(MappingLineService mappingLineService)voidsetMappingService(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:
getGeneratedDocIDReferencein interfaceImpexGeneratorOperation
-
isCatalogItem
public boolean isCatalogItem(MappingLineModel mappingLineModel)
- Specified by:
isCatalogItemin interfaceImpexGeneratorOperation
-
hasMappedSources
public boolean hasMappedSources(MappingModel mapping)
- Specified by:
hasMappedSourcesin interfaceImpexGeneratorOperation
-
getVersionForMappingLine
public java.lang.String getVersionForMappingLine(MappingLineModel line)
- Specified by:
getVersionForMappingLinein interfaceImpexGeneratorOperation
-
getCatalogVersionsForMapping
public java.util.Set<java.lang.String> getCatalogVersionsForMapping(java.lang.String catalogVersionBaseType, MappingModel mapping)- Specified by:
getCatalogVersionsForMappingin 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-nullMappingLineModelobjectsubLine- - a non-nullMappingLineModelobject 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-nullMappingLineModelobjectoutBuffer- - - a non-null String object to which the owner is appended.
-
apppendTranslatorForProductAttrib
protected boolean apppendTranslatorForProductAttrib(MappingLineModel mappingLineModel, java.lang.StringBuilder macro)
-
-