public class UserPasswordTranslator extends AbstractSpecialValueTranslator
:. Use as follows:
INSERT Employee; uid[unique=true]; @password[translator=de.hybris.platform.impex.jalo.translators.UserPasswordTranslator] ; fritz ; md5:a7c15c415c37626de8fa648127ba1ae5 ; max ; *:plainPassword
| Constructor and Description |
|---|
UserPasswordTranslator()
Empty constructor for generic instantiation.
|
UserPasswordTranslator(Set<String> encodings)
Constructor for testing purpose.
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(SpecialColumnDescriptor columnDescriptor)
Called once upon header creation to do some initial setup logic.
|
String |
performExport(Item item)
Called each time an item is exported using the enclosing header.
|
void |
performImport(String cellValue,
Item processedItem)
Called each time a non-empty cell value has to be imported.
|
isEmpty, validatepublic UserPasswordTranslator()
public void init(SpecialColumnDescriptor columnDescriptor) throws HeaderValidationException
SpecialValueTranslatorinit in interface SpecialValueTranslatorinit in class AbstractSpecialValueTranslatorcolumnDescriptor - the newly created column descriptorHeaderValidationException - indicates that the column descriptor is not configured properlypublic String performExport(Item item) throws ImpExException
SpecialValueTranslatorperformExport in interface SpecialValueTranslatorperformExport in class AbstractSpecialValueTranslatoritem - the item to exportImpExException - indicates an export errorpublic void performImport(String cellValue, Item processedItem) throws ImpExException
SpecialValueTranslatorperformImport in interface SpecialValueTranslatorperformImport in class AbstractSpecialValueTranslatorcellValue - the cell value stringprocessedItem - the item to import the value forImpExException - indicates an import errorCopyright © 2017 SAP SE. All Rights Reserved.