Class IndexPlugin

All Implemented Interfaces:
org.apache.wiki.api.plugin.Plugin

public class IndexPlugin extends AbstractReferralPlugin implements org.apache.wiki.api.plugin.Plugin
A Plugin that creates an index of pages according to a certain pattern.
The default is to include all pages.

This is a rewrite of the earlier JSPWiki IndexPlugin using JDOM2. 8

Parameters (from AbstractReferralPlugin):

  • include - A regexp pattern for marking which pages should be included.
  • exclude - A regexp pattern for marking which pages should be excluded.
Author:
Ichiro Furusato
  • Constructor Details

  • Method Details

    • getDisplayName

      public String getDisplayName(Locale locale)
      Specified by:
      getDisplayName in interface org.apache.wiki.api.plugin.Plugin
    • execute

      public String execute(org.apache.wiki.api.core.Context context, Map<String,String> params) throws org.apache.wiki.api.exceptions.PluginException
      Specified by:
      execute in interface org.apache.wiki.api.plugin.Plugin
      Throws:
      org.apache.wiki.api.exceptions.PluginException