Class 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

      All Methods Instance Methods Concrete Methods 
      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 Detail

      • JournalUiController

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

      • 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