Class ReplaceUserRequest

  • All Implemented Interfaces:
    Serializable, org.xwiki.job.Request

    public class ReplaceUserRequest
    extends EntityRequest
    A job request that can be used to replace user references.
    Since:
    11.8RC1
    Version:
    $Id: de18e8a95f349ebc5732825fccb20a4ebd6f1d26 $
    See Also:
    Serialized Form
    • Constructor Detail

      • ReplaceUserRequest

        public ReplaceUserRequest()
        Default constructor.
      • ReplaceUserRequest

        public ReplaceUserRequest​(org.xwiki.job.Request request)
        Parameters:
        request - the request to copy
        Since:
        14.7RC1, 14.4.4, 13.10.9
    • Method Detail

      • setOldUserReference

        public void setOldUserReference​(org.xwiki.model.reference.DocumentReference oldUserReference)
        Sets the user reference to replace.
        Parameters:
        oldUserReference - the user reference to replace
      • getOldUserReference

        public org.xwiki.model.reference.DocumentReference getOldUserReference()
        Returns:
        the user reference to replace
      • setNewUserReference

        public void setNewUserReference​(org.xwiki.model.reference.DocumentReference newUserRefernce)
        Sets the user reference replacement.
        Parameters:
        newUserRefernce - the user reference replacement
      • getNewUserReference

        public org.xwiki.model.reference.DocumentReference getNewUserReference()
        Returns:
        the user reference replacement
      • setReplaceDocumentAuthor

        public void setReplaceDocumentAuthor​(boolean replace)
        Sets whether to replace the author of existing pages.
        Parameters:
        replace - true to replace the page author, false to preserve it
      • isReplaceDocumentAuthor

        public boolean isReplaceDocumentAuthor()
        Returns:
        whether to replace the author of existing pages
      • setReplaceDocumentContentAuthor

        public void setReplaceDocumentContentAuthor​(boolean replace)
        Sets whether to replace the content author of existing pages.
        Parameters:
        replace - true to replace the page content author, false to preserve it
      • isReplaceDocumentContentAuthor

        public boolean isReplaceDocumentContentAuthor()
        Returns:
        whether to replace the content author of existing pages
      • setReplaceDocumentCreator

        public void setReplaceDocumentCreator​(boolean replace)
        Sets whether to replace the creator of existing pages.
        Parameters:
        replace - true to replace the page creator, false to preserve it
      • isReplaceDocumentCreator

        public boolean isReplaceDocumentCreator()
        Returns:
        whether to replace the creator of existing pages