public class AnonymousUserTranslator extends SingleValueTranslator
RuleEngineServicesConstants.CUSTOMER_CONDITION_USE_PK_PROPERTY
configuration flag performs conversion of 'anonymous' string value to the respective PK representation that matches
that of the anonymous user in the system.
INSERT_UPDATE PromotionSourceRule;code[unique=true];conditions[translator=de.hybris.platform.ruleengineservices.impex.impl.AnonymousUserTranslator]| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
USER_SERVICE |
| Constructor and Description |
|---|
AnonymousUserTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
convertToJalo(java.lang.String value,
Item item)
Converts a non-null and non-empty string into a jalo attribute value.
|
protected java.lang.String |
convertToString(java.lang.Object object)
Converts a non-null jalo attribute value into its string representation.
|
protected UserService |
getUserService() |
void |
init(StandardColumnDescriptor descriptor)
Called once per header creation to allow configuring this translator using column modifiers etc.
|
protected boolean |
isUsePk() |
exportValue, getEmptyValue, importValue, isEmptyclearStatus, createTranslator, createTranslator, createTranslator, debug, error, getColumnDescriptor, getFlexibleSearch, info, isDebugEnabled, isInfoEnabled, setEmpty, setError, validate, warn, wasEmpty, wasUnresolvedprotected static final java.lang.String USER_SERVICE
public void init(StandardColumnDescriptor descriptor)
AbstractValueTranslatorinit in class AbstractValueTranslatordescriptor - descriptor where the value to translate belongs toprotected java.lang.Object convertToJalo(java.lang.String value,
Item item)
SingleValueTranslatorconvertToJalo in class SingleValueTranslatorvalue - string to translateitem - item instance the translated value will be set to as attributeprotected java.lang.String convertToString(java.lang.Object object)
SingleValueTranslatorconvertToString in class SingleValueTranslatorobject - value to translateprotected boolean isUsePk()
protected UserService getUserService()
Copyright © 2018 SAP SE. All Rights Reserved.