public class DeleteRule extends ConflictResolutionRule
ACTION_DELETE, ACTION_IGNORE, ACTION_IGNORE_EMPTY_ITEM, ACTION_IGNORE_ORDER, ACTION_MERGE, ACTION_PREFER_NOT_EMPTY, ACTION_STORE1, ACTION_STORE2, ACTION_UPDATE
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
Constructor and Description |
---|
DeleteRule(java.lang.String target) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAction()
Returns the name of the action.
|
java.util.List<StorableLogEntry> |
resolveUpdateDeleteConflict(java.util.List<StorableLogEntry> store1OpList,
java.util.List<StorableLogEntry> store2OpList)
Returns either store1OpList or store2OpList according the resolution behavior.
|
buildRule, canResolveAttributeConflict, canResolveCreateCreateConflict, canResolveUpdateDeleteConflict, decodeArray, decodeCollectionOrMapItemSet, decodeList, getResolvedAttributeValue, isArray, isArrayOrCollectionAttribute, isCollection, isMap, isMapAttribute, parseTarget, resolveCreateCreateConflict, selectorMatches, toString
public java.util.List<StorableLogEntry> resolveUpdateDeleteConflict(java.util.List<StorableLogEntry> store1OpList, java.util.List<StorableLogEntry> store2OpList)
ConflictResolutionRule
resolveUpdateDeleteConflict
in class ConflictResolutionRule
store1OpList
- the list of operations on the data from store 1store2OpList
- the list of operations on the data from store 1public java.lang.String getAction()
ConflictResolutionRule
getAction
in class ConflictResolutionRule
Copyright © 2001-2017 Jalios SA. All Rights Reserved.