@Role
@Unstable
public interface MergeConflictDecisionsManager
DiffManager.merge(List, List, List, MergeConfiguration)
.Modifier and Type | Method and Description |
---|---|
List<org.xwiki.diff.ConflictDecision> |
getConflictDecisionList(DocumentReference documentReference,
EntityReference userReference)
Retrieve the list of
ConflictDecision recorded for the given document and user. |
void |
recordConflicts(DocumentReference documentReference,
EntityReference userReference,
List<org.xwiki.diff.Conflict<?>> conflicts)
Record a list of conflicts to be used in for the later decisions.
|
<E> boolean |
recordDecision(DocumentReference documentReference,
EntityReference userReference,
String conflictReference,
org.xwiki.diff.ConflictDecision.DecisionType decisionType,
List<E> customDecision)
Record a decision made for a given conflict.
|
void |
removeConflictDecisionList(DocumentReference documentReference,
EntityReference userReference)
Remove a record of decisions.
|
void |
setConflictDecisionList(List<org.xwiki.diff.ConflictDecision> conflictDecisionList,
DocumentReference documentReference,
EntityReference userReference)
Record a list of decisions for a given document and a given user.
|
List<org.xwiki.diff.ConflictDecision> getConflictDecisionList(DocumentReference documentReference, EntityReference userReference)
ConflictDecision
recorded for the given document and user.documentReference
- the document reference for which to retrieve the decisions.userReference
- the user who made the decisions.ConflictDecision
or null if no decision has been recorded for this pair of
document and user.void setConflictDecisionList(List<org.xwiki.diff.ConflictDecision> conflictDecisionList, DocumentReference documentReference, EntityReference userReference)
conflictDecisionList
- the decisions to record.documentReference
- the document on which the decisions should apply.userReference
- the user who made the decisions.void removeConflictDecisionList(DocumentReference documentReference, EntityReference userReference)
documentReference
- the document for which to remove the record.userReference
- the user who made the decisions.void recordConflicts(DocumentReference documentReference, EntityReference userReference, List<org.xwiki.diff.Conflict<?>> conflicts)
documentReference
- the document on which the decisions should apply.userReference
- the user who performed the merge.conflicts
- the list of conflicts to record.<E> boolean recordDecision(DocumentReference documentReference, EntityReference userReference, String conflictReference, org.xwiki.diff.ConflictDecision.DecisionType decisionType, List<E> customDecision)
E
- the type of element concerned by the conflict.documentReference
- the document on which the decisions should apply.userReference
- the user who performed the merge.conflictReference
- the reference of a conflict as given by Conflict.getReference()
.decisionType
- the decision made.customDecision
- the custom decision to apply if needed, as specified in
ConflictDecision.setCustom(List)
or null.true
if the decision has been properly recorded, false
if something went wrong.Copyright © 2004–2021 XWiki. All rights reserved.