Package org.xwiki.attachment.refactoring
Class MoveAttachmentRequest
- java.lang.Object
-
- org.xwiki.job.AbstractRequest
-
- org.xwiki.job.api.AbstractCheckRightsRequest
-
- org.xwiki.refactoring.job.EntityRequest
-
- org.xwiki.attachment.refactoring.MoveAttachmentRequest
-
- All Implemented Interfaces:
Serializable
,org.xwiki.job.Request
@Unstable public class MoveAttachmentRequest extends EntityRequest
Job request for moving an attachment to a new location. A redirection can be persisted at the old location.- Since:
- 14.0RC1
- Version:
- $Id: 6b5cf0b0e0d87ffc94060e14eb60f9e011a4fd95 $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTO_REDIRECT
Auto-redirection property name.static String
DESTINATION
Destination property name.static String
UPDATE_REFERENCES
Update references refactoring property name.
-
Constructor Summary
Constructors Constructor Description MoveAttachmentRequest()
Default constructor.MoveAttachmentRequest(org.xwiki.job.Request request)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xwiki.model.reference.AttachmentReference
getDestination()
boolean
isAutoRedirect()
boolean
isUpdateReferences()
String
toString()
-
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
-
-
-
-
Field Detail
-
DESTINATION
public static final String DESTINATION
Destination property name.- See Also:
- Constant Field Values
-
AUTO_REDIRECT
public static final String AUTO_REDIRECT
Auto-redirection property name.- See Also:
- Constant Field Values
-
UPDATE_REFERENCES
@Unstable public static final String UPDATE_REFERENCES
Update references refactoring property name.- Since:
- 14.2RC1
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDestination
public org.xwiki.model.reference.AttachmentReference getDestination()
- Returns:
- the destination of the move
-
isAutoRedirect
public boolean isAutoRedirect()
- Returns:
true
if a redirection must be created from the old location to the new one,false
otherwise
-
isUpdateReferences
@Unstable public boolean isUpdateReferences()
- Returns:
true
if the references must be updated,false
otherwise- Since:
- 14.2RC1
-
-