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 Summary
FieldsModifier and TypeFieldDescriptionprotected de.uniba.minf.auth.spring.mvc.AuthInfoHelperprotected Stringprotected EntityDefinitionRepositoryprotected EntityDefinitionServiceprotected EntityRepositoryprotected VocabularyDefinitionRepositoryFields inherited from class de.unibamberg.minf.core.web.controller.BaseTranslationController
messageSource, objectMapperFields inherited from class de.unibamberg.minf.core.web.controller.BaseNavigatingController
appContext, logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongprotected Collection<de.uniba.minf.registry.model.definition.EntityDefinition>Collection<de.uniba.minf.registry.model.definition.EntityDefinition>protected Collection<de.uniba.minf.registry.model.definition.EntityDefinition>Collection<de.uniba.minf.registry.model.definition.EntityDefinition>Collection<de.uniba.minf.registry.model.definition.EntityDefinition>Collection<de.uniba.minf.registry.model.vocabulary.VocabularyDefinition>Collection<de.uniba.minf.registry.model.vocabulary.VocabularyDefinition>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) Methods inherited from class de.unibamberg.minf.core.web.controller.BaseTranslationController
getActionResult, getJsonErrorList, getTranslationsMethods inherited from class de.unibamberg.minf.core.web.controller.BaseNavigatingController
afterPropertiesSet, getBuildProperties, getLoginUrl, getLogoutUrl, getNavigation, getNuance, getRefreshViews, overrideNavItem, setApplicationContext
-
Field Details
-
entityDefinitionService
-
entityDefinitionRepository
-
entityRepository
-
vocabularyDefinitionRepository
-
authInfoHelper
@Autowired protected de.uniba.minf.auth.spring.mvc.AuthInfoHelper authInfoHelper -
baseUrl
-
-
Constructor Details
-
BaseViewController
-
-
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()
-