com.xpn.xwiki.plugin.activitystream.impl
Class ActivityEventImpl

java.lang.Object
  extended by com.xpn.xwiki.plugin.activitystream.impl.ActivityEventImpl
All Implemented Interfaces:
ActivityEvent

public class ActivityEventImpl
extends java.lang.Object
implements ActivityEvent

Version:
$Id: ActivityEventImpl.java 24078 2009-09-27 02:37:41Z sdumitriu $

Constructor Summary
ActivityEventImpl()
           
 
Method Summary
 java.lang.String getApplication()
          
 java.lang.String getBody()
          
 java.util.Date getDate()
          
 java.lang.String getDisplayBody(com.xpn.xwiki.XWikiContext context)
          
 java.lang.String getDisplayDate(com.xpn.xwiki.XWikiContext context)
          
 java.lang.String getDisplayTitle(com.xpn.xwiki.XWikiContext context)
          
 java.lang.String getDisplayUser(com.xpn.xwiki.XWikiContext context)
          
 java.lang.String getEventId()
          
 java.lang.String getPage()
          
 java.lang.String getParam1()
          
 java.lang.String getParam2()
          
 java.lang.String getParam3()
          
 java.lang.String getParam4()
          
 java.lang.String getParam5()
          
 java.util.List<java.lang.String> getParams()
          
 int getPriority()
          
 java.lang.String getRequestId()
          
 java.lang.String getSpace()
          
 java.lang.String getStream()
          
 java.lang.String getTitle()
          
 java.lang.String getType()
          
 java.lang.String getUrl()
          
 java.lang.String getUser()
          
 java.lang.String getVersion()
          
 java.lang.String getWiki()
          
 void setApplication(java.lang.String application)
          
 void setBody(java.lang.String body)
          
 void setDate(java.util.Date date)
          
 void setEventId(java.lang.String eventId)
          
 void setPage(java.lang.String page)
          
 void setParam1(java.lang.String param1)
          
 void setParam2(java.lang.String param2)
          
 void setParam3(java.lang.String param3)
          
 void setParam4(java.lang.String param4)
          
 void setParam5(java.lang.String param5)
          
 void setParams(java.util.List<java.lang.String> params)
          Set all params at once.
 void setPriority(int priority)
          
 void setRequestId(java.lang.String requestId)
          
 void setSpace(java.lang.String space)
          
 void setStream(java.lang.String stream)
          
 void setTitle(java.lang.String title)
          
 void setType(java.lang.String type)
          
 void setUrl(java.lang.String url)
          
 void setUser(java.lang.String user)
          
 void setVersion(java.lang.String version)
          
 void setWiki(java.lang.String wiki)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivityEventImpl

public ActivityEventImpl()
Method Detail

getDisplayTitle

public java.lang.String getDisplayTitle(com.xpn.xwiki.XWikiContext context)

Specified by:
getDisplayTitle in interface ActivityEvent
Parameters:
context - the XWiki context
Returns:
the event title in a human readable format

getDisplayBody

public java.lang.String getDisplayBody(com.xpn.xwiki.XWikiContext context)

Specified by:
getDisplayBody in interface ActivityEvent
Parameters:
context - the XWiki context
Returns:
the event body in a human readable format

getDisplayDate

public java.lang.String getDisplayDate(com.xpn.xwiki.XWikiContext context)

Specified by:
getDisplayDate in interface ActivityEvent
Parameters:
context - the XWiki context
Returns:
the event date in a human readable format

getDisplayUser

public java.lang.String getDisplayUser(com.xpn.xwiki.XWikiContext context)

Specified by:
getDisplayUser in interface ActivityEvent
Parameters:
context - the XWiki context
Returns:
the event user in a human readable format (example: Administrator instead of XWiki.Admin)

setParams

public void setParams(java.util.List<java.lang.String> params)
Set all params at once.

Specified by:
setParams in interface ActivityEvent
Parameters:
params - parameters to set

getParams

public java.util.List<java.lang.String> getParams()


getEventId

public java.lang.String getEventId()

Specified by:
getEventId in interface ActivityEvent
Returns:
The unique ID of the event

setEventId

public void setEventId(java.lang.String eventId)

Specified by:
setEventId in interface ActivityEvent
Parameters:
eventId - Unique ID of the event
See Also:
ActivityEvent.getEventId()

getRequestId

public java.lang.String getRequestId()

Specified by:
getRequestId in interface ActivityEvent
Returns:
The request ID

setRequestId

public void setRequestId(java.lang.String requestId)

Specified by:
setRequestId in interface ActivityEvent
Parameters:
requestId - The request ID of the event
See Also:
ActivityEvent.getRequestId()

getPriority

public int getPriority()

Specified by:
getPriority in interface ActivityEvent
Returns:
The priority of the event

setPriority

public void setPriority(int priority)

Specified by:
setPriority in interface ActivityEvent
Parameters:
priority - The priority of the event
See Also:
ActivityEvent.getPriority()

getApplication

public java.lang.String getApplication()

Specified by:
getApplication in interface ActivityEvent
Returns:
The application name

setStream

public void setStream(java.lang.String stream)

Specified by:
setStream in interface ActivityEvent
Parameters:
stream - The stream Name
See Also:
ActivityEvent.getStream()

getVersion

public java.lang.String getVersion()

Specified by:
getVersion in interface ActivityEvent
Returns:
The document version on the event

setVersion

public void setVersion(java.lang.String version)

Specified by:
setVersion in interface ActivityEvent
Parameters:
version - Version on this event
See Also:
ActivityEvent.getVersion()

getParam1

public java.lang.String getParam1()

Specified by:
getParam1 in interface ActivityEvent
Returns:
The first param of the event

setParam1

public void setParam1(java.lang.String param1)

Specified by:
setParam1 in interface ActivityEvent
Parameters:
param1 - The first param of the event
See Also:
ActivityEvent.getParam1()

getParam2

public java.lang.String getParam2()

Specified by:
getParam2 in interface ActivityEvent
Returns:
The second param of the event

setParam2

public void setParam2(java.lang.String param2)

Specified by:
setParam2 in interface ActivityEvent
Parameters:
param2 - The second param of the event
See Also:
ActivityEvent.getParam2()

getParam3

public java.lang.String getParam3()

Specified by:
getParam3 in interface ActivityEvent
Returns:
The third param of the event

setParam3

public void setParam3(java.lang.String param3)

Specified by:
setParam3 in interface ActivityEvent
Parameters:
param3 - The third param of the event
See Also:
ActivityEvent.getParam3()

getParam4

public java.lang.String getParam4()

Specified by:
getParam4 in interface ActivityEvent
Returns:
The fourth param of the event

setParam4

public void setParam4(java.lang.String param4)

Specified by:
setParam4 in interface ActivityEvent
Parameters:
param4 - The fourth param of the event
See Also:
ActivityEvent.getParam4()

getParam5

public java.lang.String getParam5()

Specified by:
getParam5 in interface ActivityEvent
Returns:
The fifth param of the event

setParam5

public void setParam5(java.lang.String param5)

Specified by:
setParam5 in interface ActivityEvent
Parameters:
param5 - The fifth param of the event
See Also:
ActivityEvent.getParam5()

getWiki

public java.lang.String getWiki()

Specified by:
getWiki in interface ActivityEvent
Returns:
The wiki name in which the event was created

setWiki

public void setWiki(java.lang.String wiki)

Specified by:
setWiki in interface ActivityEvent
Parameters:
wiki - The wiki name in which the event was created
See Also:
ActivityEvent.getWiki()

getType

public java.lang.String getType()

Specified by:
getType in interface ActivityEvent
Returns:
The type of the event

setType

public void setType(java.lang.String type)

Specified by:
setType in interface ActivityEvent
Parameters:
type - The type of the event
See Also:
ActivityEvent.getType()

getUser

public java.lang.String getUser()

Specified by:
getUser in interface ActivityEvent
Returns:
The wiki name of the user creating the event

setUser

public void setUser(java.lang.String user)

Specified by:
setUser in interface ActivityEvent
Parameters:
user - The wiki name of the user creating the event
See Also:
ActivityEvent.getUser()

getSpace

public java.lang.String getSpace()

Specified by:
getSpace in interface ActivityEvent
Returns:
The space name in which the event was created

setSpace

public void setSpace(java.lang.String space)

Specified by:
setSpace in interface ActivityEvent
Parameters:
space - The space name in which the event was created
See Also:
ActivityEvent.getSpace()

getPage

public java.lang.String getPage()

Specified by:
getPage in interface ActivityEvent
Returns:
The page of the event

setPage

public void setPage(java.lang.String page)

Specified by:
setPage in interface ActivityEvent
Parameters:
page - The page of the event
See Also:
ActivityEvent.getPage()

getUrl

public java.lang.String getUrl()

Specified by:
getUrl in interface ActivityEvent
Returns:
The target url

setUrl

public void setUrl(java.lang.String url)

Specified by:
setUrl in interface ActivityEvent
Parameters:
url - The url of the event
See Also:
ActivityEvent.getUrl()

getTitle

public java.lang.String getTitle()

Specified by:
getTitle in interface ActivityEvent
Returns:
The title of the event

setTitle

public void setTitle(java.lang.String title)

Specified by:
setTitle in interface ActivityEvent
Parameters:
title - The title of the event
See Also:
ActivityEvent.getTitle()

getBody

public java.lang.String getBody()

Specified by:
getBody in interface ActivityEvent
Returns:
The Body of the event

setBody

public void setBody(java.lang.String body)

Specified by:
setBody in interface ActivityEvent
Parameters:
body - The body of the event
See Also:
ActivityEvent.getBody()

getDate

public java.util.Date getDate()

Specified by:
getDate in interface ActivityEvent
Returns:
The stream name

setDate

public void setDate(java.util.Date date)

Specified by:
setDate in interface ActivityEvent
Parameters:
date - The event date
See Also:
ActivityEvent.getDate()

getStream

public java.lang.String getStream()

Specified by:
getStream in interface ActivityEvent
Returns:
The stream name

setApplication

public void setApplication(java.lang.String application)

Specified by:
setApplication in interface ActivityEvent
Parameters:
application - The application Name
See Also:
ActivityEvent.getApplication()


Copyright © 2004-2010 XWiki. All Rights Reserved.