@Component(roles=EventConverter.class) @Singleton public class EventConverter extends Object
Constructor and Description |
---|
EventConverter() |
Modifier and Type | Method and Description |
---|---|
EventStatus |
convertActivityStatusToEventStatus(ActivityEventStatus eventStatus)
Convert an
ActivityEventStatus to an EventStatus . |
Event |
convertActivityToEvent(ActivityEvent e)
Convert an old
ActivityEvent to the new Event . |
ActivityEventStatus |
convertEventStatusToActivityStatus(EventStatus eventStatus)
Convert an
EventStatus to an ActivityEventStatus . |
ActivityEvent |
convertEventToActivity(Event e)
Converts a new
Event to the old ActivityEvent . |
public ActivityEvent convertEventToActivity(Event e)
Event
to the old ActivityEvent
.e
- the event to transformpublic Event convertActivityToEvent(ActivityEvent e)
ActivityEvent
to the new Event
.e
- the activity event to transformpublic ActivityEventStatus convertEventStatusToActivityStatus(EventStatus eventStatus)
EventStatus
to an ActivityEventStatus
.eventStatus
- the status to transformpublic EventStatus convertActivityStatusToEventStatus(ActivityEventStatus eventStatus)
ActivityEventStatus
to an EventStatus
.eventStatus
- the activity event status to transformCopyright © 2004–2017 XWiki. All rights reserved.