|
|||||||||
| 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 Administrators 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. |
boolean |
addUser(java.lang.String user)
Add the specified user to the current user's WatchList. |
boolean |
addUserForUser(java.lang.String user,
java.lang.String userToWatch)
Allows Administrators to add the specified user in the specified user's WatchList. |
boolean |
addWiki(java.lang.String wWiki)
Add the current wiki to the current user's WatchList. |
boolean |
addWikiForUser(java.lang.String user,
java.lang.String wWiki)
Allows Administrators to add the specified wiki to the specified user's WatchList. |
com.sun.syndication.feed.synd.SyndFeed |
getFeed(int entryNumber)
|
com.sun.syndication.feed.synd.SyndFeed |
getFeed(java.lang.String user,
int entryNumber)
|
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 + users) 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> |
getWatchedUsers()
Get the list of users watched by the current user. |
java.util.List<java.lang.String> |
getWatchedWikis()
Get the list of wikis watched by the current user. |
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 |
isUserWatched(java.lang.String user)
Is the given user watched by the current user. |
boolean |
isWikiWatched()
Is the current wiki 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. |
boolean |
removeUser(java.lang.String user)
Removed the specified user from the current user's WatchList. |
boolean |
removeUserForUser(java.lang.String user,
java.lang.String userToRemove)
Allows Administrators to remove the specified user from the specified user's WatchList. |
boolean |
removeWiki(java.lang.String wWiki)
Remove the specified wiki from the current user's WatchList. |
boolean |
removeWikiForUser(java.lang.String user,
java.lang.String wWiki)
Allows Administrators to remove the specified wiki 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 retrieved nor created
public boolean isDocumentWatched()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved 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 retrieved 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 retrieved 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 retrieved 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 retrieved nor created
public boolean isSpaceWatched()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved 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 retrieved 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 retrieved 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 retrieved 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 retrieved nor created
public boolean isWikiWatched()
throws com.xpn.xwiki.XWikiException
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public boolean addWiki(java.lang.String wWiki)
throws com.xpn.xwiki.XWikiException
wWiki - Wiki to add
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public boolean addWikiForUser(java.lang.String user,
java.lang.String wWiki)
throws com.xpn.xwiki.XWikiException
user - XWiki UserwWiki - Wiki to add
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public boolean removeWiki(java.lang.String wWiki)
throws com.xpn.xwiki.XWikiException
wWiki - Wiki to remove
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public boolean removeWikiForUser(java.lang.String user,
java.lang.String wWiki)
throws com.xpn.xwiki.XWikiException
user - XWiki UserwWiki - Wiki to remove
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public boolean isUserWatched(java.lang.String user)
throws com.xpn.xwiki.XWikiException
user - the prefixed fullName of the user to test
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public boolean addUser(java.lang.String user)
throws com.xpn.xwiki.XWikiException
user - User to add
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public boolean addUserForUser(java.lang.String user,
java.lang.String userToWatch)
throws com.xpn.xwiki.XWikiException
user - XWiki UseruserToWatch - User to add
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public boolean removeUser(java.lang.String user)
throws com.xpn.xwiki.XWikiException
user - User to remove
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved nor created
public boolean removeUserForUser(java.lang.String user,
java.lang.String userToRemove)
throws com.xpn.xwiki.XWikiException
user - XWiki UseruserToRemove - User to remove
com.xpn.xwiki.XWikiException - If the user's WatchList Object cannot be retrieved 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> getWatchedUsers()
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 retrieved nor created
public com.sun.syndication.feed.synd.SyndFeed getFeed(int entryNumber)
throws com.xpn.xwiki.XWikiException
entryNumber - number of entries to retrieve
com.xpn.xwiki.XWikiException - if the retrieval of RSS entries fails
public com.sun.syndication.feed.synd.SyndFeed getFeed(java.lang.String user,
int entryNumber)
throws com.xpn.xwiki.XWikiException
user - the user to retreive the RSS forentryNumber - number of entries to retrieve
com.xpn.xwiki.XWikiException - if the retrieval of RSS entries fails
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||