|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.eventstream.internal.DefaultEvent
public class DefaultEvent
A recorded event that occurred at some point in the wiki.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.xwiki.eventstream.Event |
|---|
Event.Importance |
| Constructor Summary | |
|---|---|
DefaultEvent()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getApplication()
Events can be triggered by different applications, not only the main wiki update events: user statuses, blog pingbacks, new extension added... |
java.lang.String |
getBody()
A larger section of text where the event can store some data. |
java.util.Date |
getDate()
An event happens at a precise date. |
DocumentReference |
getDocument()
Document-related events target a certain document. |
java.lang.String |
getDocumentTitle()
The document title is usually more important than the document name. |
java.lang.String |
getDocumentVersion()
For events related to documents, this field records the version of the document at the time when the event occurred. |
java.lang.String |
getGroupId()
Multiple events can correspond to the same activity, so events can be grouped under the same GroupID. |
java.lang.String |
getId()
Each event has a unique ID. |
Event.Importance |
getImportance()
Different events can have a different importance. |
EntityReference |
getRelatedEntity()
Some events may be related to a more specific entity in the target document, like an attachment or an object, or may relate to another document besides the main related document. |
SpaceReference |
getSpace()
Document-related events target a certain document, and documents belong to a space; this is the space of the target document. |
java.lang.String |
getStream()
Events can happen in different contexts; for example, wiki activity events happen in different spaces, user statuses are targeted to different groups. |
java.lang.String |
getTitle()
A name for the event. |
java.lang.String |
getType()
Events have different types: adding a comment, updating an attachment, importing an application, etc. |
java.net.URL |
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. |
DocumentReference |
getUser()
Event usually occur as the result of a registered user activity. |
WikiReference |
getWiki()
In a wiki farm, each event happens in one of the wikis. |
void |
setApplication(java.lang.String application)
|
void |
setBody(java.lang.String body)
|
void |
setDate(java.util.Date date)
|
void |
setDocument(DocumentReference document)
|
void |
setDocumentTitle(java.lang.String title)
|
void |
setDocumentVersion(java.lang.String version)
|
void |
setGroupId(java.lang.String id)
|
void |
setId(java.lang.String id)
|
void |
setImportance(Event.Importance importance)
|
void |
setRelatedEntity(EntityReference entity)
|
void |
setSpace(SpaceReference space)
|
void |
setStream(java.lang.String stream)
|
void |
setTitle(java.lang.String title)
|
void |
setType(java.lang.String type)
|
void |
setUrl(java.net.URL url)
|
void |
setUser(DocumentReference user)
|
void |
setWiki(WikiReference wiki)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEvent()
| Method Detail |
|---|
public java.lang.String getId()
getId in interface EventEvent.getId()public void setId(java.lang.String id)
setId in interface Eventid - the unique ID of the event to setEvent.setId(String),
getId()public java.lang.String getGroupId()
getGroupId in interface EventEvent.getGroupId()public void setGroupId(java.lang.String id)
setGroupId in interface Eventid - the event group IDEvent.setGroupId(String),
getGroupId()public java.lang.String getType()
getType in interface EventEvent.getType()public void setType(java.lang.String type)
setType in interface Eventtype - The type of the eventEvent.setType(String),
getType()public java.util.Date getDate()
getDate in interface EventEvent.getDate()public void setDate(java.util.Date date)
setDate in interface Eventdate - the event dateEvent.setDate(Date),
getDate()public Event.Importance getImportance()
getImportance in interface EventEvent.getImportance()public void setImportance(Event.Importance importance)
setImportance in interface Eventimportance - the importance of the eventEvent.setImportance(org.xwiki.eventstream.Event.Importance),
getImportance()public java.lang.String getApplication()
getApplication in interface EventEvent.getApplication()public void setApplication(java.lang.String application)
setApplication in interface Eventapplication - the application NameEvent.setApplication(String),
getApplication()public java.lang.String getStream()
getStream in interface EventEvent.getStream()public void setStream(java.lang.String stream)
setStream in interface Eventstream - the stream NameEvent.setStream(String),
getStream()public WikiReference getWiki()
getWiki in interface EventEvent.getWiki()public void setWiki(WikiReference wiki)
setWiki in interface Eventwiki - the wiki name in which the event was createdEvent.setWiki(WikiReference),
getWiki()public SpaceReference getSpace()
getSpace in interface EventEvent.getSpace()public void setSpace(SpaceReference space)
setSpace in interface Eventspace - the space in which the event was createdEvent.setSpace(SpaceReference),
getSpace()public DocumentReference getDocument()
getDocument in interface EventEvent.getDocument()public void setDocument(DocumentReference document)
setDocument in interface Eventdocument - the document related to the eventEvent.setDocument(DocumentReference),
getDocument()public java.lang.String getDocumentVersion()
getDocumentVersion in interface EventEvent.getDocumentVersion()public void setDocumentVersion(java.lang.String version)
setDocumentVersion in interface Eventversion - the document version when the event occurredEvent.setDocumentVersion(String),
getDocumentVersion()public EntityReference getRelatedEntity()
main related document. The result of this
method depends on the actual event type.
getRelatedEntity in interface EventnullEvent.getRelatedEntity()public void setRelatedEntity(EntityReference entity)
setRelatedEntity in interface Evententity - the eventual entity related to the eventEvent.setRelatedEntity(EntityReference),
getRelatedEntity()public DocumentReference getUser()
getUser in interface EventEvent.getUser()public void setUser(DocumentReference user)
setUser in interface Eventuser - the user creating the eventEvent.setUser(DocumentReference),
getUser()public java.net.URL getUrl()
getUrl in interface EventEvent.getUrl()public void setUrl(java.net.URL url)
setUrl in interface Eventurl - the URL related to the eventEvent.setUrl(URL),
getUrl()public java.lang.String getTitle()
getTitle in interface EventEvent.getTitle()public void setTitle(java.lang.String title)
setTitle in interface Eventtitle - the title of the eventEvent.setTitle(String),
getTitle()public java.lang.String getBody()
getBody in interface EventEvent.getBody()public void setBody(java.lang.String body)
setBody in interface Eventbody - the body of the eventEvent.setBody(String),
getBody()public java.lang.String getDocumentTitle()
getDocumentTitle in interface EventEvent.getDocumentTitle()public void setDocumentTitle(java.lang.String title)
setDocumentTitle in interface Eventtitle - the title of the related document when the event occurred.Event.setDocumentTitle(String),
getDocumentTitle()public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||