com.jalios.jcms.tools.storemerge.rule
Class DeleteRule
java.lang.Object
com.jalios.jcms.tools.storemerge.rule.ConflictResolutionRule
com.jalios.jcms.tools.storemerge.rule.DeleteRule
- All Implemented Interfaces:
- StoreConstants
public class DeleteRule
- extends ConflictResolutionRule
This rule resolves Update/Delete conflict by selecting the Delete.
- Since:
- jcms-8.0.0
Fields inherited from interface com.jalios.jstore.StoreConstants |
ARRAY_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, MAP_ASSIGN, MAP_CHARS_TO_ESCAPE, MAP_CLASS_SEPARATOR, MAP_FLAG, NAMESPACE, REVISION, SH_SUFFIX, STORING_STATE, UPDATE_OP |
Methods inherited from class com.jalios.jcms.tools.storemerge.rule.ConflictResolutionRule |
buildRule, canResolveAttributeConflict, canResolveUpdateDeleteConflict, decodeArray, decodeCollectionOrMapItemSet, decodeList, getResolvedAttributeValue, isArray, isArrayOrCollectionAttribute, isCollection, isMap, isMapAttribute, parseTarget, selectorMatches, toString |
DeleteRule
public DeleteRule(String target)
resolveUpdateDeleteConflict
public List<StorableLogEntry> resolveUpdateDeleteConflict(List<StorableLogEntry> store1OpList,
List<StorableLogEntry> store2OpList)
- Description copied from class:
ConflictResolutionRule
- Returns either store1OpList or store2OpList according the resolution behavior.
- Overrides:
resolveUpdateDeleteConflict
in class ConflictResolutionRule
- Parameters:
store1OpList
- the list of operations on the data from store 1store2OpList
- the list of operations on the data from store 1
- Returns:
- either store1OpList or store2OpList according the resolution behavior.
getAction
public String getAction()
- Description copied from class:
ConflictResolutionRule
- Returns the name of the action.
- Overrides:
getAction
in class ConflictResolutionRule
- Returns:
- the name of the action.
Copyright © 2001-2010 Jalios SA. All Rights Reserved.