Class ExcelCatalogVersionTypeTranslator

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

@Deprecated(since="2005", forRemoval=true) public class ExcelCatalogVersionTypeTranslator extends AbstractCatalogVersionAwareTranslator<CatalogVersionModel>
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 catalog version translation.
Default excel translator for catalog version.
  • Constructor Details

    • ExcelCatalogVersionTypeTranslator

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

    • canHandle

      public boolean canHandle(AttributeDescriptorModel attributeDescriptorModel)
      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:
      attributeDescriptorModel - AttributeDescriptorModel
      Returns:
      whether the translator can handle request
    • exportData

      public Optional<Object> exportData(CatalogVersionModel 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<CatalogVersionModel>
      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
    • getExcelUniqueFilter

      public ExcelFilter<AttributeDescriptorModel> getExcelUniqueFilter()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • 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.