public class MergeConfiguration extends Object
Constructor and Description |
---|
MergeConfiguration() |
Modifier and Type | Method and Description |
---|---|
DocumentReference |
getConcernedDocument() |
EntityReference |
getUserReference() |
boolean |
isProvidedVersionsModifiables()
Indicate of the provided previous/new document can be modified.
|
void |
setConcernedDocument(DocumentReference concernedDocument)
Specify which document is currently merged.
|
void |
setProvidedVersionsModifiables(boolean providedVersionsModifiables) |
void |
setUserReference(EntityReference userReference)
Specify which user is performing the merge.
|
public void setProvidedVersionsModifiables(boolean providedVersionsModifiables)
providedVersionsModifiables
- true if the merge is allowed to modify input elementspublic boolean isProvidedVersionsModifiables()
By default merge can modify provided documents for performances reasons. For example when the new version of the document contains a new object it's directly moved without being cloned.
public DocumentReference getConcernedDocument()
public void setConcernedDocument(DocumentReference concernedDocument)
concernedDocument
- the reference to the document that is merged.public EntityReference getUserReference()
public void setUserReference(EntityReference userReference)
userReference
- the reference to the user doing the merge.Copyright © 2004–2022 XWiki. All rights reserved.