public interface FilterManager extends ModuleManager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_XMLFILE
Default location for the filter XML property file.
|
static java.lang.String |
PROP_FILTERXML
Property name for setting the filter XML property file.
|
static int |
SYSTEM_FILTER_PRIORITY
JSPWiki system filters are all below this value.
|
static int |
USER_FILTER_PRIORITY
The standard user level filtering.
|
PLUGIN_RESOURCE_LOCATION| Modifier and Type | Method and Description |
|---|---|
void |
addPageFilter(PageFilter f,
int priority)
Adds a page filter to the queue.
|
void |
destroy()
Notifies PageFilters to clean up their resources.
|
void |
doPostSaveFiltering(Context context,
java.lang.String pageData)
Does the page filtering after the page has been saved.
|
java.lang.String |
doPostTranslateFiltering(Context context,
java.lang.String htmlData)
Does the filtering after HTML translation.
|
java.lang.String |
doPreSaveFiltering(Context context,
java.lang.String pageData)
Does the filtering before a save to the page repository.
|
java.lang.String |
doPreTranslateFiltering(Context context,
java.lang.String pageData)
Does the filtering before a translation.
|
java.util.List<PageFilter> |
getFilterList()
Returns the list of filters currently installed.
|
checkCompatibility, getModuleInfo, modulesstatic final java.lang.String PROP_FILTERXML
static final java.lang.String DEFAULT_XMLFILE
static final int SYSTEM_FILTER_PRIORITY
static final int USER_FILTER_PRIORITY
void addPageFilter(PageFilter f, int priority) throws java.lang.IllegalArgumentException
In case two filters have the same priority, their execution order is the insertion order.
f - PageFilter to addpriority - The priority in which position to add it in.java.lang.IllegalArgumentException - If the PageFilter is null or invalid.java.lang.String doPreTranslateFiltering(Context context, java.lang.String pageData) throws FilterException
context - The WikiContextpageData - WikiMarkup data to be passed through the preTranslate chain.FilterException - If any of the filters throws a FilterExceptionPageFilter.preTranslate(Context, String)java.lang.String doPostTranslateFiltering(Context context, java.lang.String htmlData) throws FilterException
context - The WikiContexthtmlData - HTML data to be passed through the postTranslateFilterException - If any of the filters throws a FilterExceptionPageFilter.postTranslate(Context, String)java.lang.String doPreSaveFiltering(Context context, java.lang.String pageData) throws FilterException
context - The WikiContextpageData - WikiMarkup data to be passed through the preSave chain.FilterException - If any of the filters throws a FilterExceptionPageFilter.preSave(Context, String)void doPostSaveFiltering(Context context, java.lang.String pageData) throws FilterException
context - The WikiContextpageData - WikiMarkup data to be passed through the postSave chain.FilterException - If any of the filters throws a FilterExceptionPageFilter.postSave(Context, String)java.util.List<PageFilter> getFilterList()
void destroy()
Copyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.