Class AbstractDocumentEvent

    • Constructor Detail

      • AbstractDocumentEvent

        public AbstractDocumentEvent()
        This event will match any other document event of the same type. Since listeners may expect to find the document reference in the event, it is recommended to use the constructor with the explicit parameter when generating the event.
      • AbstractDocumentEvent

        public AbstractDocumentEvent​(DocumentReference documentReference)
        This event will match only events of the same type affecting the same document.
        documentReference - the reference of the document relater to this event
      • AbstractDocumentEvent

        public AbstractDocumentEvent​(org.xwiki.observation.event.filter.EventFilter eventFilter)
        Constructor using a custom EventFilter.
        eventFilter - the filter to use for matching events
    • Method Detail

      • getDocumentReference

        public DocumentReference getDocumentReference()
        the reference of the document targeted by this event, or null if it was not specified
        14.4.2, 14.5