|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.xpn.xwiki.api.Api
com.xpn.xwiki.plugin.PluginApi<WatchListPlugin>
com.xpn.xwiki.plugin.watchlist.WatchListPluginApi
public class WatchListPluginApi
Plugin that offers WatchList features to XWiki. These feature allow users to build lists of pages and spaces they want to follow. At a frequency choosen by the user XWiki will send an email notification to him with a list of the elements that has been modified since the last notification. This is the wrapper accessible from in-document scripts.
| Field Summary |
|---|
| Fields inherited from class com.xpn.xwiki.api.Api |
|---|
context |
| Constructor Summary | |
|---|---|
WatchListPluginApi(WatchListPlugin plugin,
com.xpn.xwiki.XWikiContext context)
API constructor. |
|
| Method Summary | |
|---|---|
boolean |
addDocument(java.lang.String wDoc)
Add the specified document to the current user's WatchList. |
boolean |
addDocumentForUser(java.lang.String user,
java.lang.String wDoc)
Allows Adminstrators to add the specified document in the specified user's WatchList. |
boolean |
addSpace(java.lang.String wSpace)
Add the current space to the current user's WatchList. |
boolean |
addSpaceForUser(java.lang.String user,
java.lang.String wSpace)
Allows Administrators to add the specified space to the specified user's WatchList. |
java.util.List<java.lang.String> |
getWatchedDocuments()
Get the documents watched by the current user. |
java.util.List<java.lang.String> |
getWatchedElements()
Get the elements (wikis + spaces + documents) watched by the current user. |
java.util.List<java.lang.String> |
getWatchedSpaces()
Get the spaces watched by the current user. |
java.util.List<java.lang.String> |
getWatchedWikis()
Get the list of wikis watched by the current user. |
java.util.List<java.lang.String> |
getWatchListWhatsNew(java.lang.String user)
Get the list of the elements watched by user ordered by last modification date, descending. |
boolean |
isDocInWatchedSpaces()
Is current document within a space watched by the current user. |
boolean |
isDocumentWatched()
Is current document watched by the current user. |
boolean |
isSpaceWatched()
Is the current space watched by the current user. |
boolean |
removeDocument(java.lang.String wDoc)
Removed the specified document from the current user's WatchList. |
boolean |
removeDocumentForUser(java.lang.String user,
java.lang.String wDoc)
Allows Adminstrators to remove the specified document from the specified user's WatchList. |
boolean |
removeSpace(java.lang.String wSpace)
Remove the specified space from the current user's WatchList. |
boolean |
removeSpaceForUser(java.lang.String user,
java.lang.String wSpace)
Allows Administrators to remove the specified space from the specified user's WatchList. |
| Methods inherited from class com.xpn.xwiki.plugin.PluginApi |
|---|
getInternalPlugin, getPlugin, getProtectedPlugin, setPlugin |
| Methods inherited from class com.xpn.xwiki.api.Api |
|---|
checkProgrammingRights, convert, convert, getXWikiContext, hasAccessLevel, hasAdminRights, hasProgrammingRights |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WatchListPluginApi(WatchListPlugin plugin,
com.xpn.xwiki.XWikiContext context)
plugin - The wrapped plugin objectcontext - Context of the requestPluginApi.PluginApi(com.xpn.xwiki.plugin.XWikiPluginInterface, XWikiContext)| Method Detail |
|---|
public boolean isDocInWatchedSpaces()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public boolean isDocumentWatched()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public boolean addDocument(java.lang.String wDoc)
throws com.xpn.xwiki.XWikiException
wDoc - Document to add
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public boolean addDocumentForUser(java.lang.String user,
java.lang.String wDoc)
throws com.xpn.xwiki.XWikiException
user - XWiki UserwDoc - Document to add
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public boolean removeDocument(java.lang.String wDoc)
throws com.xpn.xwiki.XWikiException
wDoc - Document to remove
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public boolean removeDocumentForUser(java.lang.String user,
java.lang.String wDoc)
throws com.xpn.xwiki.XWikiException
user - XWiki UserwDoc - Document to remove
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public boolean isSpaceWatched()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public boolean addSpace(java.lang.String wSpace)
throws com.xpn.xwiki.XWikiException
wSpace - Space to add
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public boolean addSpaceForUser(java.lang.String user,
java.lang.String wSpace)
throws com.xpn.xwiki.XWikiException
user - XWiki UserwSpace - Space to add
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public boolean removeSpace(java.lang.String wSpace)
throws com.xpn.xwiki.XWikiException
wSpace - Space to remove
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public boolean removeSpaceForUser(java.lang.String user,
java.lang.String wSpace)
throws com.xpn.xwiki.XWikiException
user - XWiki UserwSpace - Space to remove
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public java.util.List<java.lang.String> getWatchedDocuments()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public java.util.List<java.lang.String> getWatchedSpaces()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public java.util.List<java.lang.String> getWatchedWikis()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public java.util.List<java.lang.String> getWatchedElements()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retreived nor created
public java.util.List<java.lang.String> getWatchListWhatsNew(java.lang.String user)
throws java.lang.Exception
user - XWiki User
java.lang.Exception - If the search request fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||