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 java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    JournalUiController​(de.otto.synapse.journal.JournalRegistry journals)  
  • Method Summary

    Modifier and Type Method Description
    org.springframework.web.servlet.ModelAndView getEntityJournalHtml​(java.lang.String repositoryName, java.lang.String entityId)
    Returns a HTML UI for the event journal of a single event-sourced entity.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 java.lang.String repositoryName, @PathVariable java.lang.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