Class ExcelProductSupercategoriesTypeTranslator

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

@Deprecated(since="2005", forRemoval=true) public class ExcelProductSupercategoriesTypeTranslator extends AbstractCatalogVersionAwareTranslator<Collection<CategoryModel>>
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 supercategories translation.
Default excel translator for supercategories of product.
  • Field Details

    • CATEGORY_TOKEN

      public static final String CATEGORY_TOKEN
      Deprecated, for removal: This API element is subject to removal in a future version.
      See Also:
  • Constructor Details

    • ExcelProductSupercategoriesTypeTranslator

      public ExcelProductSupercategoriesTypeTranslator()
      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(Collection<CategoryModel> 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.
    • 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<Collection<CategoryModel>>
      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
    • referenceFormat

      public String referenceFormat(AttributeDescriptorModel attributeDescriptor)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: ExcelValueTranslator
      Format how a reference should be presented. Usually references consist of a few fields indicated as unique. Therefore all unique attributes should be included in the format. Example reference format: "catalog:version"
      Parameters:
      attributeDescriptor - AttributeDescriptorModel
      Returns:
      Format how a reference should be presented
    • exportCategory

      protected String exportCategory(CategoryModel category)
      Deprecated, for removal: This API element is subject to removal in a future version.