Class DocumentRenamingEvent

  • All Implemented Interfaces:
    Serializable, BeginEvent, BeginFoldEvent, CancelableEvent, Event

    public class DocumentRenamingEvent
    extends org.xwiki.refactoring.internal.event.AbstractEntityCopyOrRenameEvent<org.xwiki.model.reference.DocumentReference>
    implements BeginFoldEvent, CancelableEvent
    Event fired when a document is about to be renamed.

    The event also send the following parameters:

    • source: the job which produced this event or null for a remote event
    • data: the MoveRequest request of the job which produced this event
    Since:
    11.1RC1
    Version:
    $Id: 959c06a8fdc50a1544b48406b50fe36d22c9ac15 $
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      DocumentRenamingEvent()
      Default constructor, used by listeners.
      DocumentRenamingEvent​(org.xwiki.model.reference.DocumentReference sourceReference, org.xwiki.model.reference.DocumentReference targetReference)
      Creates a new instance with the given data.
    • Constructor Detail

      • DocumentRenamingEvent

        public DocumentRenamingEvent()
        Default constructor, used by listeners.
      • DocumentRenamingEvent

        public DocumentRenamingEvent​(org.xwiki.model.reference.DocumentReference sourceReference,
                                     org.xwiki.model.reference.DocumentReference targetReference)
        Creates a new instance with the given data.
        Parameters:
        sourceReference - the reference of the source entity
        targetReference - the reference of the target entity