Class WikiCopiedEvent

  • All Implemented Interfaces:
    Serializable, WikiEvent, org.xwiki.observation.event.Event, org.xwiki.observation.event.FilterableEvent

    public class WikiCopiedEvent
    extends AbstractWikiEvent
    An event triggered after a wiki has been copied.

    The event also send the following parameters:

    • source: the source wiki identifier as String
    • data: the current {com.xpn.xwiki.XWikiContext} instance
    Since:
    4.3M1
    Version:
    $Id: 55de3f2699f6abce9b0acd8c348bcf82aa4429e9 $
    See Also:
    Serialized Form
    • Constructor Detail

      • WikiCopiedEvent

        public WikiCopiedEvent()
        Matches all WikiCopiedEvent events.
      • WikiCopiedEvent

        public WikiCopiedEvent​(String sourceWikiId,
                               String targetWikiId)
        Matches events affecting the same wikis.
        Parameters:
        sourceWikiId - the source wiki identifier
        targetWikiId - the target wiki identifier
    • Method Detail

      • matches

        public boolean matches​(Object otherEvent)
        Specified by:
        matches in interface org.xwiki.observation.event.Event
        Overrides:
        matches in class org.xwiki.observation.event.AbstractFilterableEvent
      • getSourceWikiId

        public String getSourceWikiId()
        Returns:
        the source wiki identifier
      • getTargetWikiId

        public String getTargetWikiId()
        Returns:
        the target wiki identifier