Class DocumentRenamedEvent

  • All Implemented Interfaces:
    Serializable, EndEvent, EndFoldEvent, Event

    public class DocumentRenamedEvent
    extends org.xwiki.refactoring.internal.event.AbstractEntityCopyOrRenameEvent<org.xwiki.model.reference.DocumentReference>
    implements EndFoldEvent
    Event fired after a document has been 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: a95b58549d366d47d768fa988ffc1401027de0da $
    See Also:
    Serialized Form
    • Constructor Summary

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

      • Methods inherited from class org.xwiki.refactoring.internal.event.AbstractEntityCopyOrRenameEvent

        equals, getSourceReference, getTargetReference, hashCode, matches
      • Methods inherited from class org.xwiki.refactoring.internal.event.AbstractEvent

        cancel, cancel, getReason, isCanceled
      • Methods inherited from interface org.xwiki.observation.event.Event

        matches
    • Constructor Detail

      • DocumentRenamedEvent

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

        public DocumentRenamedEvent​(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