Class ExcelBaseProductTypeTranslator

All Implemented Interfaces:
ExcelValueTranslator<ProductModel>, org.springframework.core.Ordered

@Deprecated(since="2005", forRemoval=true) public class ExcelBaseProductTypeTranslator extends AbstractCatalogVersionAwareTranslator<ProductModel>
Deprecated, for removal: This API element is subject to removal in a future version.
since 2005. The translator is not used anymore. ExcelGenericReferenceTranslator already covers the base product translation.
Default translator for base product of variant product.
  • Constructor Details

    • ExcelBaseProductTypeTranslator

      public ExcelBaseProductTypeTranslator()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • canHandle

      public boolean canHandle(AttributeDescriptorModel attributeDescriptor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ExcelValueTranslator
      Indicates whether the translator can handle given attribute descriptor. This method is Recommended during importing excel file.
      Parameters:
      attributeDescriptor - AttributeDescriptorModel
      Returns:
      whether the translator can handle request
    • exportData

      public Optional<Object> exportData(ProductModel objectToExport)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ExcelValueTranslator
      Converts given object to value which should be put into cell of exported excel file.
      Returns:
      value which will be put into cell of exported excel file.
    • referenceFormat

      public String referenceFormat(AttributeDescriptorModel attributeDescriptor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns reference format as "baseProductCode:version:catalog".
      Parameters:
      attributeDescriptor - AttributeDescriptorModel
      Returns:
      Format how a reference should be presented
    • importValue

      public ImpexValue importValue(AttributeDescriptorModel attributeDescriptor, ImportParameters importParameters)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from class: AbstractExcelValueTranslator
      Imports single value instead of whole Impex object. Impex value consists of header and value.
      Specified by:
      importValue in class AbstractExcelValueTranslator<ProductModel>
      Parameters:
      attributeDescriptor - AttributeDescriptorModel describes attribute which should be imported
      importParameters - - contains information about language for localized field, type code, parsed parameters inserted into excel's cell.
      Returns:
      ImpexValue value which should be imported
    • setExcelUniqueFilter

      public void setExcelUniqueFilter(ExcelFilter<AttributeDescriptorModel> excelUniqueFilter)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getMandatoryFilter

      public ExcelFilter<AttributeDescriptorModel> getMandatoryFilter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setMandatoryFilter

      public void setMandatoryFilter(ExcelFilter<AttributeDescriptorModel> mandatoryFilter)
      Deprecated, for removal: This API element is subject to removal in a future version.