com.xpn.xwiki.plugin.activitystream.plugin
Class ActivityEvent
java.lang.Object
com.xpn.xwiki.api.Api
com.xpn.xwiki.plugin.activitystream.plugin.ActivityEvent
public class ActivityEvent
- extends Api
Api wrapper for a ActivityEvent to be exposed from velocity.
- Version:
- $Id: 9446f358b6727f2e354749680da30ea1b4f29751 $
| Fields inherited from class com.xpn.xwiki.api.Api |
context |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
event
protected ActivityEvent event
- Wrapped event.
ActivityEvent
public ActivityEvent(ActivityEvent event,
com.xpn.xwiki.XWikiContext context)
- Constructor.
- Parameters:
event - event to wrapcontext - the XWiki context
getEventId
public String getEventId()
- Returns:
- The unique ID of the event
getRequestId
public String getRequestId()
- Returns:
- The request ID
getPriority
public int getPriority()
- Returns:
- The priority of the event
getType
public String getType()
- Returns:
- The type of the event
getApplication
public String getApplication()
- Returns:
- The application name
getStream
public String getStream()
- Returns:
- The stream name
getDate
public Date getDate()
- Returns:
- The stream name
getUser
public String getUser()
- Returns:
- The wiki name of the user creating the event
getWiki
public String getWiki()
- Returns:
- The wiki name in which the event was created
getSpace
public String getSpace()
- Returns:
- The space name in which the event was created
getPage
public String getPage()
- Returns:
- The page of the event
getUrl
public String getUrl()
- Returns:
- The target url
getTitle
public String getTitle()
- Returns:
- The title of the event
getBody
public String getBody()
- Returns:
- The Body of the event
setTitle
public void setTitle(String title)
- Allows to modify the title of an event This might be useful to control the display or RSS feeds.
- Parameters:
title - title to set
setBody
public void setBody(String body)
- Allows to modify the body of an event This might be useful to control the display or RSS feeds.
- Parameters:
body - body to set
getVersion
public String getVersion()
- Returns:
- The document version on the event
getParam1
public String getParam1()
- Returns:
- The first param of the event
getParam2
public String getParam2()
- Returns:
- The second param of the event
getParam3
public String getParam3()
- Returns:
- The third param of the event
getParam4
public String getParam4()
- Returns:
- The fourth param of the event
getParam5
public String getParam5()
- Returns:
- The fifth param of the event
getDisplayTitle
public String getDisplayTitle()
- Returns:
- the event in displayable format.
getDisplayBody
public String getDisplayBody()
- Returns:
- the event body in displayable format
getDisplayDate
public String getDisplayDate()
- Returns:
- the event date in displayable format
getDisplayUser
public String getDisplayUser()
- Returns:
- the event user in displayable format
getParameters
public Map<String,String> getParameters()
- Returns:
- the parameters associated with the event
getProtectedEvent
public ActivityEvent getProtectedEvent()
- Returns:
- the wrapped event
getEvent
protected ActivityEvent getEvent()
- Returns:
- the wrapped event
Copyright © 2004-2011 XWiki. All Rights Reserved.