public class XWikiDocumentMergerConfiguration extends Object
Constructor and Description |
---|
XWikiDocumentMergerConfiguration()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
DocumentReference |
getAuthorReference() |
ConflictQuestion.GlobalAction |
getConflictAction(ConflictQuestion.ConflictType type) |
Map<ConflictQuestion.ConflictType,ConflictQuestion.GlobalAction> |
getConflictActions() |
XarEntryType.UpgradeType |
getType() |
void |
setAuthorReference(DocumentReference author) |
void |
setConflictAction(ConflictQuestion.ConflictType type,
ConflictQuestion.GlobalAction action) |
void |
setConflictAction(ConflictQuestion.ConflictType type,
ConflictQuestion.GlobalAction action,
ConflictQuestion.GlobalAction defaultAnswer) |
void |
setConflictActions(Map<ConflictQuestion.ConflictType,ConflictQuestion.GlobalAction> conflictActions) |
void |
setType(XarEntryType.UpgradeType type) |
public XWikiDocumentMergerConfiguration()
public DocumentReference getAuthorReference()
public void setAuthorReference(DocumentReference author)
author
- the reference of the user to set as document authorpublic ConflictQuestion.GlobalAction getConflictAction(ConflictQuestion.ConflictType type)
type
- the type of conflictpublic void setConflictAction(ConflictQuestion.ConflictType type, ConflictQuestion.GlobalAction action)
type
- the type of conflictaction
- the action associated to the passed conflict typepublic void setConflictAction(ConflictQuestion.ConflictType type, ConflictQuestion.GlobalAction action, ConflictQuestion.GlobalAction defaultAnswer)
type
- the type of conflictaction
- the action associated to the passed conflict typedefaultAnswer
- the action associated to the passed conflict type (if action
is null)public Map<ConflictQuestion.ConflictType,ConflictQuestion.GlobalAction> getConflictActions()
public void setConflictActions(Map<ConflictQuestion.ConflictType,ConflictQuestion.GlobalAction> conflictActions)
conflictActions
- the mapping between type of conflict and actionpublic XarEntryType.UpgradeType getType()
public void setType(XarEntryType.UpgradeType type)
type
- the type of upgrade associated with the documentCopyright © 2004–2022 XWiki. All rights reserved.