use of com.tyndalehouse.step.models.timeline.simile.SimileEvent in project step by STEPBible.
the class TimelineController method getEventInformation.
/**
* Retrieves all the information available for a particular timeline event
*
* @param eventId the event id identifying a particular timeline event in the database
* @param version the version that is currently being looked at by the user so that we can lookup verses in the
* correct version
* @return all the information available for a particular timeline
*/
public EnhancedSimileEvent getEventInformation(final String eventId, final String version) {
final EnhancedTimelineEvent timelineEvent = this.timelineService.getTimelineEvent(eventId, version);
final SimileEvent se = this.translator.translateEvent(timelineEvent.getEvent());
final EnhancedSimileEvent ese = new EnhancedSimileEvent();
ese.setEvent(se);
ese.setVerses(timelineEvent.getVerses());
return ese;
}
Aggregations