Class AbstractExcelMediaImportTranslator<T>

Type Parameters:
T - type of imported reference. It should be related to Media e.g. single reference or collection of medias.
All Implemented Interfaces:
ExcelValueTranslator<T>, org.springframework.core.Ordered
Direct Known Subclasses:
ExcelMediaCollectionImportTranslator, ExcelMediaImportTranslator

public abstract class AbstractExcelMediaImportTranslator<T> extends AbstractCatalogVersionAwareTranslator<T>
Abstract media translator which allows to import media references with content. Format:
     filePath:code:catalog:version
 
Where:
  • "filePath" - defines file in the uploaded zip (sub dirs can be specified)
  • "code" - media's code MediaModel.CODE.
    • if empty and "filePath" is defined then code will be generated.
    • if code:catalog:version corresponds to an existing media it will be assigned as a reference
    • if "filePath" is defined and code:catalog:version corresponds to an existing media it's content will be updated and it will be assigned as a reference
  • catalog:version - defines media's catalog version MediaModel.CATALOGVERSION