Class PullMediaDataTranslator

  • All Implemented Interfaces:
    SpecialValueTranslator

    public class PullMediaDataTranslator
    extends java.lang.Object
    implements SpecialValueTranslator
    Allows to transfer media data from a source platform to another target platform like this: Export: It's assembling a URL which shall be accessible be the target system. For that a 'baseURL' ImpEx property may be specified. If that's omitted the platform property 'y2ysync.home.url' will be used. INSERT_UPDATE Media; @doesntMatter[translator=de.hybris.y2ysync.impexmc.PullMediaDataTranslator, baseURL='http://public.host.url']; Import: When importing it's simply pulling the data from the previously exported URL and calls Media.setDataFromStream(InputStream).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void init​(SpecialColumnDescriptor columnDescriptor)
      Called once upon header creation to do some initial setup logic.
      boolean isEmpty​(java.lang.String cellValue)
      Evaluates whether or not a cell value is treated as empty.
      protected boolean isExport​(SpecialColumnDescriptor cd)  
      java.lang.String performExport​(Item item)
      Called each time an item is exported using the enclosing header.
      void performImport​(java.lang.String cellValue, Item processedItem)
      Called each time a non-empty cell value has to be imported.
      void validate​(java.lang.String expr)
      Validates the special column definition.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait