gpt4 book ai didi

org.xwiki.bridge.event.WikiDeletedEvent.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 04:43:05 30 4
gpt4 key购买 nike

本文整理了Java中org.xwiki.bridge.event.WikiDeletedEvent.<init>()方法的一些代码示例,展示了WikiDeletedEvent.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WikiDeletedEvent.<init>()方法的具体详情如下:
包路径:org.xwiki.bridge.event.WikiDeletedEvent
类名称:WikiDeletedEvent
方法名:<init>

WikiDeletedEvent.<init>介绍

[英]Matches all WikiDeletedEvent events.
[中]匹配所有WikiDeletedEvent事件。

代码示例

代码示例来源:origin: org.xwiki.platform/xwiki-platform-store-filesystem-oldcore

/**
 * The default constructor.
 */
public WikiDeletedListener()
{
  super(NAME, new WikiDeletedEvent());
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-wiki-default

@Override
public void delete(String wikiId) throws WikiManagerException
{
  // Delete the wiki
  wikiDeleter.delete(wikiId);
  // Send an event
  observationManager.notify(new WikiDeletedEvent(wikiId), wikiId);
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-skin-skinx

/**
 * XWiki plugin constructor.
 * 
 * @param name The name of the plugin, which can be used for retrieving the plugin API from velocity. Unused.
 * @param className The canonical classname of the plugin. Unused.
 * @param context The current request context.
 * @see com.xpn.xwiki.plugin.XWikiDefaultPlugin#XWikiDefaultPlugin(String,String,com.xpn.xwiki.XWikiContext)
 */
public AbstractDocumentSkinExtensionPlugin(String name, String className, XWikiContext context)
{
  super(name, className, context);
  this.events.add(new DocumentCreatedEvent());
  this.events.add(new DocumentDeletedEvent());
  this.events.add(new DocumentUpdatedEvent());
  this.events.add(new WikiDeletedEvent());
}

代码示例来源:origin: com.xpn.xwiki.platform/xwiki-core

/**
 * {@inheritDoc}
 * 
 * @see org.xwiki.observation.EventListener#getEvents()
 */
public List<Event> getEvents()
{
  return Arrays.<Event> asList(new DocumentCreatedEvent(), new DocumentUpdatedEvent(),
    new DocumentDeletedEvent(), new WikiDeletedEvent());
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-localization-source-wiki

private void initialize()
{
  this.events =
    Arrays.<Event>asList(new DocumentUpdatedEvent(this.documentReference), new DocumentCreatedEvent(
      this.documentReference), new DocumentDeletedEvent(this.documentReference), new WikiDeletedEvent(
      this.documentReference.getWikiReference().getName()));
  this.observation.addListener(this);
}

代码示例来源:origin: org.xwiki.platform/xwiki-platform-configuration-default

protected List<Event> getCacheCleanupEvents()
{
  RegexEntityReference classMatcher =
    BaseObjectReference.any(this.referenceSerializer.serialize(getClassReference()));
  return Arrays.<Event>asList(new XObjectAddedEvent(classMatcher), new XObjectDeletedEvent(classMatcher),
    new XObjectUpdatedEvent(classMatcher), new WikiDeletedEvent());
}

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com