Package org.xwiki.extension.xar
Class XWikiDocumentMergerConfiguration
- java.lang.Object
-
- org.xwiki.extension.xar.XWikiDocumentMergerConfiguration
-
public class XWikiDocumentMergerConfiguration extends Object
- Since:
- 10.3
- Version:
- $Id: f734c9591bfb4bb80a75edaeeba940d00de78043 $
-
-
Constructor Summary
Constructors Constructor Description XWikiDocumentMergerConfiguration()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getAuthorReference
public DocumentReference getAuthorReference()
- Returns:
- the reference of the user to set as document author
-
setAuthorReference
public void setAuthorReference(DocumentReference author)
- Parameters:
author
- the reference of the user to set as document author
-
getConflictAction
public ConflictQuestion.GlobalAction getConflictAction(ConflictQuestion.ConflictType type)
- Parameters:
type
- the type of conflict- Returns:
- the action associated to the passed conflict type
-
setConflictAction
public void setConflictAction(ConflictQuestion.ConflictType type, ConflictQuestion.GlobalAction action)
- Parameters:
type
- the type of conflictaction
- the action associated to the passed conflict type
-
setConflictAction
public void setConflictAction(ConflictQuestion.ConflictType type, ConflictQuestion.GlobalAction action, ConflictQuestion.GlobalAction defaultAnswer)
- Parameters:
type
- the type of conflictaction
- the action associated to the passed conflict typedefaultAnswer
- the action associated to the passed conflict type (ifaction
is null)
-
getConflictActions
public Map<ConflictQuestion.ConflictType,ConflictQuestion.GlobalAction> getConflictActions()
- Returns:
- the mapping between type of conflict and action
-
setConflictActions
public void setConflictActions(Map<ConflictQuestion.ConflictType,ConflictQuestion.GlobalAction> conflictActions)
- Parameters:
conflictActions
- the mapping between type of conflict and action
-
getType
public XarEntryType.UpgradeType getType()
- Returns:
- the type of upgrade associated with the document
-
setType
public void setType(XarEntryType.UpgradeType type)
- Parameters:
type
- the type of upgrade associated with the document
-
-