Class 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
    • Constructor Detail

      • MoveAttachmentRequest

        public MoveAttachmentRequest()
        Default constructor.
      • MoveAttachmentRequest

        public MoveAttachmentRequest​(org.xwiki.job.Request request)
        Parameters:
        request - the request to copy
        Since:
        14.7RC1, 14.4.4, 13.10.9
    • 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