public abstract class AbstractCopyOrMoveRequest extends EntityRequest
Constructor and Description |
---|
AbstractCopyOrMoveRequest() |
Modifier and Type | Method and Description |
---|---|
org.xwiki.model.reference.EntityReference |
getDestination() |
boolean |
isUpdateLinks() |
boolean |
isUpdateLinksOnFarm() |
void |
setDestination(org.xwiki.model.reference.EntityReference destination)
Sets the destination entity, where to move the entities specified by
EntityRequest.getEntityReferences() . |
void |
setUpdateLinks(boolean updateLinks)
Sets whether the links that target the old entity reference (before the move) should be updated to target the new
reference (after the move) or not.
|
void |
setUpdateLinksOnFarm(boolean updateLinksOnFarm)
Sets whether the job should update the links that target the old entity reference (before the move) from anywhere
on the farm, or only from the wiki where the entity was located before the mode.
|
getEntityParameters, getEntityReferences, getJobType, isDeep, setDeep, setEntityParameters, setEntityReferences, setJobType
getAuthorReference, getUserReference, isCheckAuthorRights, isCheckRights, setAuthorReference, setCheckAuthorRights, setCheckRights, setUserReference
containsProperty, equals, getContext, getId, getProperties, getProperty, getProperty, getPropertyNames, hashCode, isInteractive, isRemote, isStatusLogIsolated, isStatusSerialized, isVerbose, removeProperty, setContext, setId, setId, setId, setInteractive, setProperty, setRemote, setStatusLogIsolated, setStatusSerialized, setVerbose
public org.xwiki.model.reference.EntityReference getDestination()
EntityRequest.getEntityReferences()
public void setDestination(org.xwiki.model.reference.EntityReference destination)
EntityRequest.getEntityReferences()
.destination
- the destination entitypublic boolean isUpdateLinks()
true
if the links that target the old entity reference (before the move) should be updated to
target the new reference (after the move), false
to preserve the old link targetpublic void setUpdateLinks(boolean updateLinks)
updateLinks
- true
to update the links, false
to preserve the old link targetpublic boolean isUpdateLinksOnFarm()
true
if the job should update the links that target the old entity reference (before the move)
from anywhere on the farm, false
if the job should update only the links from the wiki where the
entity was located before the movepublic void setUpdateLinksOnFarm(boolean updateLinksOnFarm)
Note that this parameter has no effect if isUpdateLinks()
is false
.
updateLinksOnFarm
- true
to update the links from anywhere on the farm, false
to update only
the links from the wiki where the entity is locatedCopyright © 2004–2021 XWiki. All rights reserved.