Package org.xwiki.refactoring.job
Class AbstractCopyOrMoveRequest
- java.lang.Object
-
- org.xwiki.job.AbstractRequest
-
- org.xwiki.job.api.AbstractCheckRightsRequest
-
- org.xwiki.refactoring.job.EntityRequest
-
- org.xwiki.refactoring.job.AbstractCopyOrMoveRequest
-
- All Implemented Interfaces:
Serializable,org.xwiki.job.Request
- Direct Known Subclasses:
CopyRequest,MoveRequest
public abstract class AbstractCopyOrMoveRequest extends EntityRequest
Represents a request used for Copy, Move or Rename (though Move).- Since:
- 10.11RC1
- Version:
- $Id: 11b0308b3c68b6e12831567a71f56c7f14a77c62 $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractCopyOrMoveRequest()Default constructor.protectedAbstractCopyOrMoveRequest(org.xwiki.job.Request request)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.xwiki.model.reference.EntityReferencegetDestination()booleanisUpdateLinks()booleanisUpdateLinksOnFarm()Deprecated.not taken into account anymorevoidsetDestination(org.xwiki.model.reference.EntityReference destination)Sets the destination entity, where to move the entities specified byEntityRequest.getEntityReferences().voidsetUpdateLinks(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.voidsetUpdateLinksOnFarm(boolean updateLinksOnFarm)Deprecated.not taken into account anymore-
Methods inherited from class org.xwiki.refactoring.job.EntityRequest
getEntityParameters, getEntityReferences, getJobType, isDeep, setDeep, setEntityParameters, setEntityReferences, setJobType
-
Methods inherited from class org.xwiki.job.api.AbstractCheckRightsRequest
getAuthorReference, getUserReference, isCheckAuthorRights, isCheckRights, setAuthorReference, setCheckAuthorRights, setCheckRights, setUserReference
-
Methods inherited from class org.xwiki.job.AbstractRequest
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
-
-
-
-
Method Detail
-
getDestination
public org.xwiki.model.reference.EntityReference getDestination()
- Returns:
- the destination entity, where to move the entities specified by
EntityRequest.getEntityReferences()
-
setDestination
public void setDestination(org.xwiki.model.reference.EntityReference destination)
Sets the destination entity, where to move the entities specified byEntityRequest.getEntityReferences().- Parameters:
destination- the destination entity
-
isUpdateLinks
public boolean isUpdateLinks()
- Returns:
trueif the links that target the old entity reference (before the move) should be updated to target the new reference (after the move),falseto preserve the old link target
-
setUpdateLinks
public 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.- Parameters:
updateLinks-trueto update the links,falseto preserve the old link target
-
isUpdateLinksOnFarm
@Deprecated(since="14.8RC1") public boolean isUpdateLinksOnFarm()
Deprecated.not taken into account anymore- Returns:
trueif the job should update the links that target the old entity reference (before the move) from anywhere on the farm,falseif the job should update only the links from the wiki where the entity was located before the move
-
setUpdateLinksOnFarm
@Deprecated(since="14.8RC1") public void setUpdateLinksOnFarm(boolean updateLinksOnFarm)
Deprecated.not taken into account anymoreSets 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.Note that this parameter has no effect if
isUpdateLinks()isfalse.- Parameters:
updateLinksOnFarm-trueto update the links from anywhere on the farm,falseto update only the links from the wiki where the entity is located
-
-