public abstract class AbstractReferralPlugin extends Object implements Plugin
Parameters (also valid for all subclasses of this class) :
RuleBasedCollator rule string. (since 2.8.3)| Modifier and Type | Field and Description |
|---|---|
static int |
ALL_ITEMS
Magic value for rendering all items.
|
protected String |
m_after |
protected String |
m_before |
protected SimpleDateFormat |
m_dateFormat |
protected Date |
m_dateLastModified |
protected Engine |
m_engine |
protected org.apache.oro.text.regex.Pattern[] |
m_exclude |
protected org.apache.oro.text.regex.Pattern[] |
m_include |
protected boolean |
m_lastModified |
protected int |
m_maxwidth |
protected String |
m_separator |
protected String |
m_show |
protected PageSorter |
m_sorter |
static String |
PARAM_AFTER
Parameter name for the output after the link.
|
static String |
PARAM_BEFORE
Parameter name for the output before the link.
|
static String |
PARAM_EXCLUDE
Parameter name for setting the list of excluded patterns.
|
static String |
PARAM_INCLUDE
Parameter name for setting the list of included patterns.
|
static String |
PARAM_LASTMODIFIED
Parameter name for showing the last modification count.
|
static String |
PARAM_MAXWIDTH
Parameter name for setting the maximum width.
|
static String |
PARAM_SEPARATOR
Parameter name for the separator string.
|
static String |
PARAM_SHOW
Parameter name for the show parameter.
|
static String |
PARAM_SHOW_VALUE_COUNT
Parameter name for setting show to "count".
|
static String |
PARAM_SHOW_VALUE_PAGES
Parameter name for setting show to "pages".
|
protected static String |
PARAM_SORTORDER
Parameter name for specifying the sort order.
|
protected static String |
PARAM_SORTORDER_HUMAN |
protected static String |
PARAM_SORTORDER_JAVA |
protected static String |
PARAM_SORTORDER_LOCALE |
CORE_PLUGINS_RESOURCEBUNDLE| Constructor and Description |
|---|
AbstractReferralPlugin() |
| Modifier and Type | Method and Description |
|---|---|
protected List<String> |
filterAndSortCollection(Collection<String> c)
Filters and sorts a collection according to the include and exclude parameters.
|
protected List<String> |
filterCollection(Collection<String> c)
Filters a collection according to the include and exclude parameters.
|
protected List<Page> |
filterWikiPageCollection(Collection<Page> pages) |
void |
initialize(Context context,
Map<String,String> params) |
protected String |
makeHTML(Context context,
String wikitext)
Makes HTML with common parameters.
|
protected String |
wikitizeCollection(Collection<String> links,
String separator,
int numItems)
Makes WikiText from a Collection.
|
public static final int ALL_ITEMS
public static final String PARAM_MAXWIDTH
public static final String PARAM_SEPARATOR
public static final String PARAM_AFTER
public static final String PARAM_BEFORE
public static final String PARAM_EXCLUDE
public static final String PARAM_INCLUDE
public static final String PARAM_SHOW
public static final String PARAM_SHOW_VALUE_PAGES
public static final String PARAM_SHOW_VALUE_COUNT
public static final String PARAM_LASTMODIFIED
protected static final String PARAM_SORTORDER
protected static final String PARAM_SORTORDER_HUMAN
protected static final String PARAM_SORTORDER_JAVA
protected static final String PARAM_SORTORDER_LOCALE
protected int m_maxwidth
protected String m_separator
protected org.apache.oro.text.regex.Pattern[] m_exclude
protected org.apache.oro.text.regex.Pattern[] m_include
protected PageSorter m_sorter
protected boolean m_lastModified
protected Date m_dateLastModified
protected SimpleDateFormat m_dateFormat
public AbstractReferralPlugin()
public void initialize(Context context, Map<String,String> params) throws PluginException
context - the wiki contextparams - parameters for initializing the pluginPluginException - if any of the plugin parameters are malformedprotected List<Page> filterWikiPageCollection(Collection<Page> pages)
protected List<String> filterCollection(Collection<String> c)
c - The collection to filter.protected List<String> filterAndSortCollection(Collection<String> c)
c - The collection to filter.protected String wikitizeCollection(Collection<String> links, String separator, int numItems)
links - Collection to make into WikiText.separator - Separator string to use.numItems - How many items to show.Copyright © 2001-2020 The Apache Software Foundation. All rights reserved.