Class BaseViewController

java.lang.Object
de.unibamberg.minf.core.web.controller.BaseNavigatingController
de.unibamberg.minf.core.web.controller.BaseTranslationController
de.uniba.minf.registry.view.controller.BaseViewController
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
DraftsViewController, EntitiesViewController, EntityDefinitionViewController, EntityViewController, HomeController, ImportViewController, TemplatesViewController, UserController, ViewExceptionHandler, VocabularyDefinitionViewController

public class BaseViewController extends de.unibamberg.minf.core.web.controller.BaseTranslationController
  • Field Details

    • entityDefinitionService

      @Autowired protected EntityDefinitionService entityDefinitionService
    • entityDefinitionRepository

      @Autowired protected EntityDefinitionRepository entityDefinitionRepository
    • entityRepository

      @Autowired protected EntityRepository entityRepository
    • vocabularyDefinitionRepository

      @Autowired protected VocabularyDefinitionRepository vocabularyDefinitionRepository
    • authInfoHelper

      @Autowired protected de.uniba.minf.auth.spring.mvc.AuthInfoHelper authInfoHelper
    • baseUrl

      @Value("${baseUrl}") protected String baseUrl
  • Constructor Details

    • BaseViewController

      public BaseViewController(String mainNavId)
  • Method Details

    • getPrimaryEntityDefinitionsOrAll

      @ModelAttribute("primaryEntityDefinitions") public Collection<de.uniba.minf.registry.model.definition.EntityDefinition> getPrimaryEntityDefinitionsOrAll()
    • getSecondaryEntityDefinitionsOrEmpty

      @ModelAttribute("secondaryEntityDefinitions") public Collection<de.uniba.minf.registry.model.definition.EntityDefinition> getSecondaryEntityDefinitionsOrEmpty()
    • getDraftCount

      @ModelAttribute("_draftCount") public long getDraftCount()
    • getSystemEntityDefinitions

      @ModelAttribute("systemEntityDefinitions") public Collection<de.uniba.minf.registry.model.definition.EntityDefinition> getSystemEntityDefinitions()
    • getVocabularyDefinitions

      @ModelAttribute("vocabularyDefinitions") public Collection<de.uniba.minf.registry.model.vocabulary.VocabularyDefinition> getVocabularyDefinitions()
    • getSystemVocabularyDefinitions

      @ModelAttribute("systemVocabularyDefinitions") public Collection<de.uniba.minf.registry.model.vocabulary.VocabularyDefinition> getSystemVocabularyDefinitions()
    • handleRuntimeException

      @ExceptionHandler(de.unibamberg.minf.core.web.exception.NotFoundException.class) public String handleRuntimeException(org.springframework.ui.Model model, jakarta.servlet.http.HttpServletResponse resp, jakarta.servlet.http.HttpServletRequest req, de.unibamberg.minf.core.web.exception.NotFoundException ex, Locale locale)
    • getPrimaryEntityDefinitions

      protected Collection<de.uniba.minf.registry.model.definition.EntityDefinition> getPrimaryEntityDefinitions()
    • getSecondaryEntityDefinitions

      protected Collection<de.uniba.minf.registry.model.definition.EntityDefinition> getSecondaryEntityDefinitions()