Package org.xwiki.notifications
Class CompositeEventStatus
- java.lang.Object
-
- org.xwiki.notifications.CompositeEventStatus
-
public class CompositeEventStatus extends Object
Combine all event statuses of a composite event.- Since:
- 9.4RC1
- Version:
- $Id: e39787fae47bfc1d4b9bb91ed867003919e6849d $
-
-
Constructor Summary
Constructors Constructor Description CompositeEventStatus(CompositeEvent compositeEvent)
Construct a composite event status.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(EventStatus eventStatus)
Add an event status to the object.CompositeEvent
getCompositeEvent()
boolean
getStatus()
-
-
-
Constructor Detail
-
CompositeEventStatus
public CompositeEventStatus(CompositeEvent compositeEvent)
Construct a composite event status.- Parameters:
compositeEvent
- composite event
-
-
Method Detail
-
add
public void add(EventStatus eventStatus)
Add an event status to the object. The event status must concern an event that compose the composite event.- Parameters:
eventStatus
- the event status to add
-
getCompositeEvent
public CompositeEvent getCompositeEvent()
- Returns:
- the composite event
-
getStatus
public boolean getStatus()
- Returns:
- a global status for all event statuses
-
-