Class ExcelMediaImportTranslator

    • Constructor Detail

      • ExcelMediaImportTranslator

        public ExcelMediaImportTranslator()
    • Method Detail

      • canHandle

        public boolean canHandle​(AttributeDescriptorModel attributeDescriptor)
        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 java.util.Optional<java.lang.Object> exportData​(MediaModel objectToExport)
        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.