|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ActivityEvent
An Activity Event represents an event done by a user in a certain context.
| Method Summary | |
|---|---|
String |
getApplication()
Events can be triggered by different applications, not only the main wiki update events: user statuses, blog pingbacks, new extension added... |
String |
getBody()
A larger section of text where the event can store some data. |
Date |
getDate()
An event happens at a precise date. |
String |
getDisplayBody(com.xpn.xwiki.XWikiContext context)
Get a more user-friendly, or a localized version of the event body. |
String |
getDisplayDate(com.xpn.xwiki.XWikiContext context)
Get a formatted, localized version of the event date. |
String |
getDisplayTitle(com.xpn.xwiki.XWikiContext context)
Get a more user-friendly, or a localized version of the event title. |
String |
getDisplayUser(com.xpn.xwiki.XWikiContext context)
Get the user name as a HTML link. |
String |
getEventId()
Each event has a unique ID. |
String |
getPage()
Document-related events target a certain document, and documents have a name; this is the name of the target document. |
String |
getParam1()
Free form parameter to be used by the event consumer. |
String |
getParam2()
Free form parameter to be used by the event consumer. |
String |
getParam3()
Free form parameter to be used by the event consumer. |
String |
getParam4()
Free form parameter to be used by the event consumer. |
String |
getParam5()
Free form parameter to be used by the event consumer. |
Map<String,String> |
getParameters()
|
int |
getPriority()
Different events can have a different priority. |
String |
getRequestId()
Multiple events can correspond to the same activity, so events can be grouped under the same request ID. |
String |
getSpace()
Document-related events target a certain document, and documents belong to a space; this is the space of the target document. |
String |
getStream()
Events can happen in different contexts; for example, wiki activity events happen in different spaces, user statuses are targeted to different groups. |
String |
getTitle()
A name for the event. |
String |
getType()
|
String |
getUrl()
If an event happens in an URL-accessible location (a document), or if the event itself can be seen at a given URL, this field stores that URL. |
String |
getUser()
Event usually occur as the result of a registered user activity. |
String |
getVersion()
For events related to documents, this field records the version of the document at the time when the event occurred. |
String |
getWiki()
In a wiki farm, each event happens in one of the wikis. |
void |
setApplication(String application)
|
void |
setBody(String body)
|
void |
setDate(Date date)
|
void |
setEventId(String id)
|
void |
setPage(String page)
|
void |
setParam1(String param1)
|
void |
setParam2(String param2)
|
void |
setParam3(String param3)
|
void |
setParam4(String param4)
|
void |
setParam5(String param5)
|
void |
setParameters(Map<String,String> parameters)
Associates name-value pair parameters with this event. |
void |
setParams(List<String> params)
Set all parameters at once. |
void |
setPriority(int priority)
|
void |
setRequestId(String id)
|
void |
setSpace(String space)
|
void |
setStream(String stream)
|
void |
setTitle(String title)
|
void |
setType(String type)
|
void |
setUrl(String url)
|
void |
setUser(String user)
|
void |
setVersion(String version)
|
void |
setWiki(String wiki)
|
| Method Detail |
|---|
String getEventId()
void setEventId(String id)
id - the unique ID of the event to setgetEventId()String getRequestId()
void setRequestId(String id)
id - the event group IDgetRequestId()int getPriority()
void setPriority(int priority)
priority - the priority of the eventgetPriority()String getType()
void setType(String type)
type - The type of the eventgetType()String getApplication()
void setApplication(String application)
application - the application NamegetApplication()String getStream()
void setStream(String stream)
stream - the stream NamegetStream()Date getDate()
void setDate(Date date)
date - the event dategetDate()String getUser()
void setUser(String user)
user - the wiki name of the user creating the eventgetUser()String getWiki()
void setWiki(String wiki)
wiki - the wiki name in which the event was createdgetWiki()String getSpace()
void setSpace(String space)
space - the space name in which the event was createdgetSpace()String getPage()
void setPage(String page)
page - the page of the eventgetPage()String getUrl()
void setUrl(String url)
url - the URL related to the eventgetUrl()String getTitle()
void setTitle(String title)
title - the title of the eventgetTitle()String getBody()
void setBody(String body)
body - the body of the eventgetBody()String getVersion()
void setVersion(String version)
version - the document version when the event occurredgetVersion()String getParam1()
void setParam1(String param1)
param1 - the first parameter associated with the eventgetParam1()String getParam2()
void setParam2(String param2)
param2 - the second parameter associated with the eventgetParam2()String getParam3()
void setParam3(String param3)
param3 - the third parameter associated with the eventgetParam3()String getParam4()
void setParam4(String param4)
param4 - the fourth parameter associated with the eventgetParam4()String getParam5()
void setParam5(String param5)
param5 - the fifth parameter associated with the eventgetParam5()String getDisplayTitle(com.xpn.xwiki.XWikiContext context)
event title.
context - the XWiki context
getTitle()String getDisplayBody(com.xpn.xwiki.XWikiContext context)
event body.
context - the XWiki context
getBody()String getDisplayDate(com.xpn.xwiki.XWikiContext context)
event date.
context - the XWiki context
getDate()String getDisplayUser(com.xpn.xwiki.XWikiContext context)
user name as a HTML link.
context - the XWiki context
void setParams(List<String> params)
params - parameters to set, a list of at most 5 entriesvoid setParameters(Map<String,String> parameters)
parameters - the parameters to associateMap<String,String> getParameters()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||