public class MoveRequest extends AbstractCopyOrMoveRequest
Constructor and Description |
---|
MoveRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
isAutoRedirect() |
boolean |
isDeleteSource()
Deprecated.
Since 10.11 the MoveRequest does not handle copy anymore. So it should always delete the source.
|
boolean |
isUpdateParentField() |
void |
setAutoRedirect(boolean autoRedirect)
Sets whether the original pages should be redirected automatically to the new location when accessed by the user,
in order to preserve external links.
|
void |
setDeleteSource(boolean deleteSource)
Deprecated.
Since 10.11 the MoveRequest does not handle copy anymore. So it should always delete the source.
|
void |
setUpdateParentField(boolean updateParentField)
Sets whether the parent-child relationship should be preserved by updating the
parent field of the
source 's child pages to use the destination as parent instead; false otherwise. |
getDestination, isUpdateLinks, isUpdateLinksOnFarm, setDestination, setUpdateLinks, setUpdateLinksOnFarm
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
@Deprecated public boolean isDeleteSource()
true
if the source entities specified by EntityRequest.getEntityReferences()
should be deleted,
false
otherwise; in a standard move operation the source is deleted but sometimes you may want to
keep the source as a backup; this option can also be used to perform a copy instead of a move; note that
the difference between a copy and a standard move without delete is that the back-links are not updated@Deprecated public void setDeleteSource(boolean deleteSource)
EntityRequest.getEntityReferences()
should be deleted or not.deleteSource
- true
to delete the source, false
to keep it as a backuppublic boolean isAutoRedirect()
true
if the original pages should be redirected automatically to the new location when accessed
by the user, in order to preserve external links, false
otherwisepublic void setAutoRedirect(boolean autoRedirect)
autoRedirect
- true
to automatically redirect the old pages to the new location, false
otherwisepublic boolean isUpdateParentField()
true
if the parent-child relationship should be preserved by updating the parent
field of
the source
's child pages to use the destination
as parent instead; false
otherwisepublic void setUpdateParentField(boolean updateParentField)
parent
field of the
source
's child pages to use the destination
as parent instead; false
otherwise.updateParentField
- true
to update the parent field of the source
's child pages and use the
destination
as parent instead, false
otherwiseCopyright © 2004–2021 XWiki. All rights reserved.