|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wiki.plugin.AbstractReferralPlugin
public abstract class AbstractReferralPlugin
This is a base class for all plugins using referral things.
Parameters (also valid for all subclasses of this class) :
RuleBasedCollator
rule string. (since 2.8.3)
Field Summary | |
---|---|
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 WikiEngine |
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
|
Fields inherited from interface org.apache.wiki.api.plugin.WikiPlugin |
---|
CORE_PLUGINS_RESOURCEBUNDLE |
Constructor Summary | |
---|---|
AbstractReferralPlugin()
|
Method Summary | |
---|---|
protected Collection |
filterAndSortCollection(Collection c)
Filters and sorts a collection according to the include and exclude parameters. |
protected Collection |
filterCollection(Collection c)
Filters a collection according to the include and exclude parameters. |
void |
initialize(WikiContext context,
Map<String,String> params)
|
protected String |
makeHTML(WikiContext context,
String wikitext)
Makes HTML with common parameters. |
protected String |
wikitizeCollection(Collection links,
String separator,
int numItems)
Makes WikiText from a Collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.wiki.api.plugin.WikiPlugin |
---|
execute |
Field Detail |
---|
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_before
protected String m_separator
protected String m_after
protected org.apache.oro.text.regex.Pattern[] m_exclude
protected org.apache.oro.text.regex.Pattern[] m_include
protected PageSorter m_sorter
protected String m_show
protected boolean m_lastModified
protected Date m_dateLastModified
protected SimpleDateFormat m_dateFormat
protected WikiEngine m_engine
Constructor Detail |
---|
public AbstractReferralPlugin()
Method Detail |
---|
public void initialize(WikiContext context, Map<String,String> params) throws PluginException
context
- the wiki contextparams
- parameters for initializing the plugin
PluginException
- if any of the plugin parameters are malformedprotected Collection filterCollection(Collection c)
c
- The collection to filter.
protected Collection filterAndSortCollection(Collection c)
c
- The collection to filter.
protected String wikitizeCollection(Collection links, String separator, int numItems)
links
- Collection to make into WikiText.separator
- Separator string to use.numItems
- How many items to show.
protected String makeHTML(WikiContext context, String wikitext)
context
- The WikiContextwikitext
- The wikitext to render
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |