public class CampaignSourceRulesTranslator extends SingleValueTranslator
DEFAULT_SEPARATOR or
define your own separator by adding extra meta data separator=[char].
eg. INSERT_UPDATE
Campaign[disable.interceptor.types=validate];code[unique=true];sourceRules[translator=de.hybris.platform.
ruleengineservices.impex.impl.CampaignSourceRulesTranslator,mode=append,ruleSelection=latest,separator=","]; ;campaign-name;ruleA,ruleB;| Constructor and Description |
|---|
CampaignSourceRulesTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureMode(StandardColumnDescriptor descriptor) |
protected void |
configureSelectionStrategy(StandardColumnDescriptor descriptor) |
protected void |
configureSeparator(StandardColumnDescriptor descriptor) |
protected java.lang.Object |
convertToJalo(java.lang.String expression,
Item item)
Converts a non-null and non-empty string into a jalo attribute value.
|
protected java.lang.String |
convertToString(java.lang.Object o)
Converts a non-null jalo attribute value into its string representation.
|
protected java.util.Set<SourceRule> |
findSourceRules(java.lang.String expression) |
protected java.util.Set<SourceRule> |
findSourceRulesHavingLatestVersion(java.lang.String[] codes) |
protected ModelService |
getModelService() |
protected RuleDao |
getRuleDao() |
void |
init(StandardColumnDescriptor descriptor)
Called once per header creation to allow configuring this translator using column modifiers etc.
|
protected boolean |
isAppendMode() |
protected boolean |
isRuleSelectionEarliest() |
protected AbstractRuleModel |
selectOldestRule(java.util.List<AbstractRuleModel> rules) |
exportValue, getEmptyValue, importValue, isEmptyclearStatus, createTranslator, createTranslator, createTranslator, debug, error, getColumnDescriptor, getFlexibleSearch, info, isDebugEnabled, isInfoEnabled, setEmpty, setError, validate, warn, wasEmpty, wasUnresolvedpublic void init(StandardColumnDescriptor descriptor)
AbstractValueTranslatorinit in class AbstractValueTranslatordescriptor - descriptor where the value to translate belongs toprotected void configureSelectionStrategy(StandardColumnDescriptor descriptor)
protected void configureMode(StandardColumnDescriptor descriptor)
protected void configureSeparator(StandardColumnDescriptor descriptor)
protected java.lang.Object convertToJalo(java.lang.String expression,
Item item)
SingleValueTranslatorconvertToJalo in class SingleValueTranslatorexpression - string to translateitem - item instance the translated value will be set to as attributeprotected java.util.Set<SourceRule> findSourceRules(java.lang.String expression)
protected java.util.Set<SourceRule> findSourceRulesHavingLatestVersion(java.lang.String[] codes)
protected boolean isRuleSelectionEarliest()
protected AbstractRuleModel selectOldestRule(java.util.List<AbstractRuleModel> rules)
protected java.lang.String convertToString(java.lang.Object o)
SingleValueTranslatorconvertToString in class SingleValueTranslatoro - value to translateprotected RuleDao getRuleDao()
protected ModelService getModelService()
protected boolean isAppendMode()
Copyright © 2018 SAP SE. All Rights Reserved.