public class CompositeEvent extends Object
Constructor and Description |
---|
CompositeEvent(CompositeEvent compositeEvent)
Copy constructor of
CompositeEvent . |
CompositeEvent(Event event)
Construct a CompositeEvent.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Event event,
int similarity)
Add an event to the composite event.
|
boolean |
equals(Object obj) |
Date |
getDate() |
List<Date> |
getDates() |
org.xwiki.model.reference.DocumentReference |
getDocument() |
List<String> |
getEventIds() |
List<Event> |
getEvents() |
String |
getGroupId() |
int |
getSimilarityBetweenEvents() |
String |
getType() |
Set<org.xwiki.model.reference.DocumentReference> |
getUsers() |
int |
hashCode() |
void |
remove(Event event)
Remove an event from the current object.
|
public CompositeEvent(Event event)
event
- the first event of the composite eventpublic CompositeEvent(CompositeEvent compositeEvent)
CompositeEvent
.compositeEvent
- the composite event to copypublic void add(Event event, int similarity) throws NotificationException
event
- the event to addsimilarity
- the similarity between the event to add and the events of the composite eventsNotificationException
- if the addition is illegal (lower similarity for example)public int getSimilarityBetweenEvents()
public String getType()
public String getGroupId()
public org.xwiki.model.reference.DocumentReference getDocument()
public Set<org.xwiki.model.reference.DocumentReference> getUsers()
public Date getDate()
public void remove(Event event)
event
- the event to removeCopyright © 2004–2021 XWiki. All rights reserved.