Class NewValueRule
- java.lang.Object
- 
- com.jalios.jcms.tools.storemerge.rule.ConflictResolutionRule
- 
- com.jalios.jcms.tools.storemerge.rule.NewValueRule
 
 
- 
- All Implemented Interfaces:
- StoreConstants
 
 public class NewValueRule extends ConflictResolutionRule This rule resolves Update/Update conflict on attribute by setting a new value.- Since:
- jcms-8.0.0
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.StringnewValue- 
Fields inherited from class com.jalios.jcms.tools.storemerge.rule.ConflictResolutionRuleACTION_DELETE, ACTION_IGNORE, ACTION_IGNORE_EMPTY_ITEM, ACTION_IGNORE_ORDER, ACTION_MERGE, ACTION_PREFER_NOT_EMPTY, ACTION_STORE1, ACTION_STORE2, ACTION_UPDATE
 - 
Fields inherited from interface com.jalios.jstore.StoreConstantsARRAY_FLAG, CLEANING_STATE, COLLECTION_FLAG, CREATE_OP, DELETE_OP, IDLE_STATE, INNER_LOGS, INNER_MILESTONE, INNER_PREFIX, INNER_SYNC, ITEM_ESCAPE_CHAR, ITEM_SEPARATOR, LOADING_STATE, LOG_DIR_LOG_PREFIX, LOG_DIR_LOG_WORK, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, SH_SUFFIX, STORING_STATE, UPDATE_OP
 
- 
 - 
Constructor SummaryConstructors Constructor Description NewValueRule(java.lang.String target, java.lang.String action)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAction()Returns the name of the action.java.lang.StringgetResolvedAttributeValue(java.lang.String id, java.lang.String className, java.lang.String attName, java.lang.String value1, java.lang.String value2)Returns the resolved value for the conflict on the given attribute or null if the conflict must be ignored.- 
Methods inherited from class com.jalios.jcms.tools.storemerge.rule.ConflictResolutionRulebuildRule, canResolveAttributeConflict, canResolveCreateCreateConflict, canResolveUpdateDeleteConflict, decodeArray, decodeCollectionOrMapItemSet, decodeList, isArray, isArrayOrCollectionAttribute, isCollection, isMap, isMapAttribute, parseTarget, resolveCreateCreateConflict, resolveUpdateDeleteConflict, selectorMatches, toString
 
- 
 
- 
- 
- 
Method Detail- 
getResolvedAttributeValuepublic java.lang.String getResolvedAttributeValue(java.lang.String id, java.lang.String className, java.lang.String attName, java.lang.String value1, java.lang.String value2)Description copied from class:ConflictResolutionRuleReturns the resolved value for the conflict on the given attribute or null if the conflict must be ignored.- Overrides:
- getResolvedAttributeValuein class- ConflictResolutionRule
- Parameters:
- id- the data id
- className- the data class
- attName- the name of the attribute
- value1- the value of the attribute in store1
- value2- the value of the attribute in store1
- Returns:
- the resolved value for the conflict on the given attribute or null if the conflict must be ignored.
 
 - 
getActionpublic java.lang.String getAction() Description copied from class:ConflictResolutionRuleReturns the name of the action.- Overrides:
- getActionin class- ConflictResolutionRule
- Returns:
- the name of the action.
 
 
- 
 
-