Class Impex

java.lang.Object
com.hybris.backoffice.excel.data.Impex
All Implemented Interfaces:
Serializable

public class Impex extends Object implements Serializable
Represents impex for all typeCodes. In order to generate impex script based on this object please see ImpexConverter.
See Also:
  • Field Details

    • EXCEL_IMPORT_DOCUMENT_REF_HEADER_NAME

      public static final String EXCEL_IMPORT_DOCUMENT_REF_HEADER_NAME
      See Also:
  • Constructor Details

    • Impex

      public Impex()
  • Method Details

    • findUpdates

      public ImpexForType findUpdates(String typeCode)
      Finds ImpexForType for given type code. If not found then a new instance of ImpexForType will be created, automatically added to list of impexes and returned.
      Parameters:
      typeCode -
      Returns:
    • createNewImpex

      protected ImpexForType createNewImpex(String typeCode)
      Creates a new Impex type for given type code.
      Parameters:
      typeCode -
      Returns:
      empty ImpexForType for given type code
    • getImpexes

      public List<ImpexForType> getImpexes()
    • usesDocumentRef

      protected boolean usesDocumentRef(ImpexForType impexForType)
    • mergeImpex

      public void mergeImpex(Impex subImpex, String typeCode, Integer rowIndex)
      Merges subImpex to current main impex.
      Parameters:
      subImpex - Impex contains impex's values for current sheet's cell
      typeCode - for current excel's sheet. It's required in order to recognize whether ImpexForType contains single value for current typeCode or dependent impex for another type.
      rowIndex - of currently processing row
    • mergeImpex

      public void mergeImpex(Impex subImpex)
      Merges subImpex into mainImpex. All rows from subImpex are rewritten to mainImpex
      Parameters:
      subImpex - Impex contains changes which should be merged to mainImpex