Class JournalUiController

java.lang.Object
de.otto.synapse.edison.journal.JournalUiController

@Controller @ConditionalOnBean(de.otto.synapse.state.StateRepository.class) @ConditionalOnProperty(prefix="synapse.edison.state.ui", name="enabled", havingValue="true", matchIfMissing=true) public class JournalUiController extends Object
  • Constructor Details

    • JournalUiController

      public JournalUiController(de.otto.synapse.journal.JournalRegistry journals)
  • Method Details

    • getEntityJournalHtml

      @GetMapping(path="${edison.application.management.base-path:internal}/journals/{repositoryName}/{entityId}", produces="text/html") public org.springframework.web.servlet.ModelAndView getEntityJournalHtml(@PathVariable String repositoryName, @PathVariable String entityId)
      Returns a HTML UI for the event journal of a single event-sourced entity.
      Parameters:
      repositoryName - the name of the Journal
      entityId - the id of the requested entity
      Returns:
      HalRepresentation the representation of the journal