info.magnolia.ui.form.field.transformer.basic
Class BCryptTransformer

java.lang.Object
  extended by info.magnolia.ui.form.field.transformer.basic.BasicTransformer<String>
      extended by info.magnolia.ui.form.field.transformer.basic.BCryptTransformer
All Implemented Interfaces:
info.magnolia.ui.api.i18n.I18NAwareHandler, Transformer<String>

public class BCryptTransformer
extends BasicTransformer<String>

BasicTransformer implementation that BCrypted (encode) the String property.


Field Summary
 
Fields inherited from class info.magnolia.ui.form.field.transformer.basic.BasicTransformer
basePropertyName, definition, i18NPropertyName, relatedFormItem, type
 
Constructor Summary
BCryptTransformer(com.vaadin.data.Item relatedFormItem, ConfiguredFieldDefinition definition, Class<String> type)
           
 
Method Summary
 void writeToItem(String clearPassword)
          Convert the T newValue to a specific Item format.
 
Methods inherited from class info.magnolia.ui.form.field.transformer.basic.BasicTransformer
definePropertyName, getBasePropertyName, getLocale, getOrCreateProperty, getOrCreateProperty, getRelatedFormItem, getType, hasI18NSupport, readFromItem, setI18NPropertyName, setLocale, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BCryptTransformer

public BCryptTransformer(com.vaadin.data.Item relatedFormItem,
                         ConfiguredFieldDefinition definition,
                         Class<String> type)
Method Detail

writeToItem

public void writeToItem(String clearPassword)
Description copied from interface: Transformer
Convert the T newValue to a specific Item format.

Specified by:
writeToItem in interface Transformer<String>
Overrides:
writeToItem in class BasicTransformer<String>


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.