Class UserPasswordTranslator

  • All Implemented Interfaces:
    SpecialValueTranslator
    Direct Known Subclasses:
    ConvertPlaintextToEncodedUserPasswordTranslator

    public class UserPasswordTranslator
    extends AbstractSpecialValueTranslator
    Special translator for importing/exporting user passwords. It stores passwords directly by specifying the desired encoding together with the encoded password separated by a :.
    Please refer to the platform documentation about how to configure available password encodings.

    Use as follows:

     INSERT Employee; uid[unique=true]; @password[translator=de.hybris.platform.impex.jalo.translators.UserPasswordTranslator]
     ; fritz ; md5:a7c15c415c37626de8fa648127ba1ae5
     ; max ; *:plainPassword
     
    • Constructor Summary

      Constructors 
      Constructor Description
      UserPasswordTranslator()
      Empty constructor for generic instantiation.
      UserPasswordTranslator​(java.util.Set<java.lang.String> encodings)
      Constructor for testing purpose.
    • 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.
      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.
      • Methods inherited from class java.lang.Object

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