Package com.hybris.backoffice.excel.data
Class Impex
java.lang.Object
com.hybris.backoffice.excel.data.Impex
- All Implemented Interfaces:
Serializable
Represents impex for all typeCodes. In order to generate impex script based on this object please see
ImpexConverter.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ImpexForTypecreateNewImpex(String typeCode) Creates a new Impex type for given type code.findUpdates(String typeCode) FindsImpexForTypefor given type code.voidmergeImpex(Impex subImpex) Merges subImpex into mainImpex.voidmergeImpex(Impex subImpex, String typeCode, Integer rowIndex) Merges subImpex to current main impex.protected booleanusesDocumentRef(ImpexForType impexForType)
-
Field Details
-
EXCEL_IMPORT_DOCUMENT_REF_HEADER_NAME
- See Also:
-
-
Constructor Details
-
Impex
public Impex()
-
-
Method Details
-
findUpdates
FindsImpexForTypefor given type code. If not found then a new instance ofImpexForTypewill be created, automatically added to list of impexes and returned.- Parameters:
typeCode-- Returns:
-
createNewImpex
Creates a new Impex type for given type code.- Parameters:
typeCode-- Returns:
- empty
ImpexForTypefor given type code
-
getImpexes
-
usesDocumentRef
-
mergeImpex
Merges subImpex to current main impex.- Parameters:
subImpex-Impexcontains impex's values for current sheet's celltypeCode- for current excel's sheet. It's required in order to recognize whetherImpexForTypecontains single value for current typeCode or dependent impex for another type.rowIndex- of currently processing row
-
mergeImpex
Merges subImpex into mainImpex. All rows from subImpex are rewritten to mainImpex- Parameters:
subImpex-Impexcontains changes which should be merged to mainImpex
-