public class OverwriteQuestion extends Object
Constructor and Description |
---|
OverwriteQuestion(org.xwiki.model.reference.EntityReference source,
org.xwiki.model.reference.EntityReference destination)
Ask whether to overwrite or not the destination entity with the source entity.
|
Modifier and Type | Method and Description |
---|---|
org.xwiki.model.reference.EntityReference |
getDestination() |
org.xwiki.model.reference.EntityReference |
getSource() |
boolean |
isAskAgain() |
boolean |
isOverwrite() |
void |
setAskAgain(boolean askAgain)
Sets whether this question will be asked again or not if another pair of entities with the same name is found.
|
void |
setOverwrite(boolean overwrite)
Sets whether to overwrite or not the destination entity with the one being copied or moved.
|
public OverwriteQuestion(org.xwiki.model.reference.EntityReference source, org.xwiki.model.reference.EntityReference destination)
source
- the entity being copied or moveddestination
- an entity with the same name that exists at the destinationpublic org.xwiki.model.reference.EntityReference getSource()
public org.xwiki.model.reference.EntityReference getDestination()
public boolean isOverwrite()
true
to overwrite the destination entity with the one being copied or moved, false
to
keep the destination entitypublic void setOverwrite(boolean overwrite)
overwrite
- true
to overwrite, false
to keeppublic boolean isAskAgain()
public void setAskAgain(boolean askAgain)
askAgain
- true
to ask again, false
to perform the same action for the following entities,
during the current operationCopyright © 2004–2021 XWiki. All rights reserved.