|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TagManager
The TagManager API manages the setting (via Tag)
and querying (via HasTagOf) of user tags.
Tag,
HasTagOf,
TagManager,
TagManagerFactory| Field Summary | |
|---|---|
static String |
LOGICAL_AND
The String indicating a logical AND operation. |
static String |
LOGICAL_NOT
The String indicating a logical NOT operation. |
static String |
LOGICAL_OR
The String indicating a logical OR operation. |
static String |
TAG_PROPERTY
The name of the tag property name set as a variable on the wiki page. |
| Method Summary | |
|---|---|
void |
convertToTerms(List terms,
String pagename)
Provided with a List of Strings and Terms, converts any square-bracketed Strings in the List to Terms. |
WikiEngine |
getEngine()
Returns the WikiEngine associated with this TagManager. |
List |
getPagesForTag(String tag)
Returns the List of wiki page names (as Strings) containing the provided tag, an empty List if no matches exist. |
QueryItem |
getQueryForExpression(Expression expression)
Return a QueryItem corresponding to the provided Expression. |
List |
getTagsForPage(String pagename)
Returns the List of tags (as Strings) for the provided Page, an empty List if none have been set. |
boolean |
hasTag(String pagename,
String tag)
Returns true if the wiki page contains the tag, false if it does not contain the tag or the page does not exist. |
boolean |
isListenerEnabled()
Returns the enabled state of this TagManager's WikiEventListener. |
Set |
processQuery(WikiContext context,
Map params)
Processes the parameters as a query, returning the resulting Set of wiki page names. |
void |
setListenerEnabled(boolean enable)
Enables or disables this TagManager's WikiEventListener so that it tracks or no longer tracks changes to the wiki. |
void |
setTagsForPage(String pagename,
List terms)
Sets the List of tags (as Strings) for the provided Page, replacing any previous List. |
| Field Detail |
|---|
static final String TAG_PROPERTY
static final String LOGICAL_AND
static final String LOGICAL_OR
static final String LOGICAL_NOT
| Method Detail |
|---|
boolean hasTag(String pagename,
String tag)
List getPagesForTag(String tag)
List getTagsForPage(String pagename)
void setTagsForPage(String pagename,
List terms)
void convertToTerms(List terms,
String pagename)
throws PluginException
terms - the List of Strings and Termspagename - the wiki page name of the plugin's origin
PluginException
Set processQuery(WikiContext context,
Map params)
throws QueryException
QueryExceptionQueryItem getQueryForExpression(Expression expression)
WikiEngine getEngine()
void setListenerEnabled(boolean enable)
The listener is created upon class instantiation, and removed from the WikiEventManager and destroyed when this method is called with a parameter value of false.
boolean isListenerEnabled()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||