Class DocumentCopyingEvent

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

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

    The event also send the following parameters:

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

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

      • DocumentCopyingEvent

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

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