Class ExcelMediaCollectionImportTranslator

    • Constructor Detail

      • ExcelMediaCollectionImportTranslator

        public ExcelMediaCollectionImportTranslator()
    • Method Detail

      • exportData

        public java.util.Optional<java.lang.Object> exportData​(java.util.Collection<MediaModel> mediasToExport)
        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.
      • importData

        public Impex importData​(AttributeDescriptorModel attributeDescriptor,
                                ImportParameters importParameters)
        Description copied from class: AbstractExcelValueTranslator
        Imports data based on provided importParameters for given attributeDescriptor. The method returns Impex thanks to that it is possible to creating additional entries ( or example creating part-of entries: product - price row, ect.)
        Specified by:
        importData in interface ExcelValueTranslator<java.util.Collection<MediaModel>>
        Overrides:
        importData in class AbstractExcelMediaImportTranslator<java.util.Collection<MediaModel>>
        Parameters:
        attributeDescriptor - describes attribute which should be imported
        importParameters - contains information about language for localized field, type code, parsed parameters inserted into excel's cell.
        Returns:
        Impex object which is representation of impex script.