Package com.onec.ui
Class UiAutoConfiguration
java.lang.Object
com.onec.ui.UiAutoConfiguration
- All Implemented Interfaces:
org.springframework.web.servlet.config.annotation.WebMvcConfigurer
@AutoConfiguration(after=OnecAutoConfiguration.class)
@EnableConfigurationProperties({UiProperties.class,UpdateProperties.class})
@ConditionalOnBean(MetadataRegistry.class)
@ConditionalOnProperty(prefix="onec.ui",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class UiAutoConfiguration
extends Object
implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionController(CatalogQueryService catalogQueryService, DocumentQueryService documentQueryService, UiAccessService access, UiActionResolver uiActionResolver) voidaddResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) catalogCommandService(org.jdbi.v3.core.Jdbi jdbi, UiProperties properties, NumberGenerator numberGenerator, CatalogQueryService catalogQueryService, UiAccessService access, org.springframework.context.ApplicationEventPublisher events, SecretCipher secretCipher) catalogQueryService(MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi) clusterUiBridge(ClusterEventBus clusterEventBus, UiEventPublisher publisher) Bridges the cross-nodeClusterEventBusinto the local SSE stream so a write on one node lights up browsers connected to any node.currentUserResolver(UiLayout uiLayout, MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi) divKitController(LayoutSet layoutSet, UiLayoutResolver layoutResolver, UiProfileResolver profileResolver, UiAccessService access, CurrentUserResolver currentUserResolver, ResolvedMetadataService resolvedMetadata, UiViewResolver uiViewResolver, PageResolver pageResolver, CatalogQueryService catalogQueryService, DocumentQueryService documentQueryService, RegisterQueryService registerQueryService, UiActionResolver uiActionResolver, RelatedListReader relatedListReader, UiProperties uiProperties, org.springframework.beans.factory.ObjectProvider<CommentProperties> commentProperties) documentCommandService(MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi, UiProperties properties, NumberGenerator numberGenerator, PostingService postingService, DocumentQueryService documentQueryService, UiAccessService access, org.springframework.context.ApplicationEventPublisher events, SecretCipher secretCipher) documentQueryService(MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi) fieldHintResolver(org.springframework.beans.factory.ObjectProvider<EntityView> entityViews) genericCatalogController(CatalogQueryService catalogQueryService, UiAccessService access, CatalogCommandService catalogCommandService, RelatedListReader relatedListReader) genericDocumentController(DocumentQueryService documentQueryService, UiAccessService access, DocumentCommandService documentCommandService, RelatedListReader relatedListReader) genericRegisterController(RegisterQueryService registerQueryService, UiAccessService access) informationRegisterQueryService(MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi) listDataController(CatalogQueryService catalogQueryService, DocumentQueryService documentQueryService, UiAccessService access, UiActionResolver uiActionResolver) loginDivController(org.springframework.beans.factory.ObjectProvider<AuthMethodsProvider> authMethods, org.springframework.beans.factory.ObjectProvider<AuthMethodsContributor> contributors) pageResolver(org.springframework.beans.factory.ObjectProvider<Page> pages) registerQueryService(MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi) relatedListReader(FieldHintResolver fieldHintResolver, MetadataRegistry registry, CatalogQueryService catalogQueryService, InformationRegisterQueryService informationRegisterQueryService, UiAccessService access) resolvedMetadataService(MetadataRegistry registry, FieldHintResolver fieldHintResolver) settingsController(MetadataRegistry registry, ConstantManager constantManager, UiAccessService access) com.onec.ui.SpaIndexControllerthemeController(UiProperties properties, UiLayout uiLayout, org.springframework.beans.factory.ObjectProvider<UpdateChecker> updateChecker) uiAccessService(MetadataRegistry registry) uiActionResolver(org.springframework.beans.factory.ObjectProvider<EntityView> entityViews) uiEventController(UiEventPublisher publisher) uiViewResolver(ResolvedMetadataService resolvedMetadata, org.springframework.beans.factory.ObjectProvider<EntityView> entityViews) updateChecker(UpdateProperties updateProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Polls onec-cloud for a newer framework release and exposes the result through/config.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer
addArgumentResolvers, addCorsMappings, addErrorResponseInterceptors, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
-
Constructor Details
-
UiAutoConfiguration
-
-
Method Details
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) - Specified by:
addResourceHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
spaIndexController
@Bean public com.onec.ui.SpaIndexController spaIndexController() -
settingsController
@Bean public SettingsController settingsController(MetadataRegistry registry, ConstantManager constantManager, UiAccessService access) -
listDataController
@Bean public ListDataController listDataController(CatalogQueryService catalogQueryService, DocumentQueryService documentQueryService, UiAccessService access, UiActionResolver uiActionResolver) -
uiActionResolver
@Bean public UiActionResolver uiActionResolver(org.springframework.beans.factory.ObjectProvider<EntityView> entityViews) -
actionController
@Bean public ActionController actionController(CatalogQueryService catalogQueryService, DocumentQueryService documentQueryService, UiAccessService access, UiActionResolver uiActionResolver) -
onecValidationExceptionHandler
@Bean @ConditionalOnMissingBean public OnecValidationExceptionHandler onecValidationExceptionHandler() -
themeController
@Bean public ThemeController themeController(UiProperties properties, UiLayout uiLayout, org.springframework.beans.factory.ObjectProvider<UpdateChecker> updateChecker) -
updateChecker
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(prefix="onec.ui.update-check", name="enabled", havingValue="true", matchIfMissing=true) public UpdateChecker updateChecker(UpdateProperties updateProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper) Polls onec-cloud for a newer framework release and exposes the result through/config. Disabled withonec.ui.update-check.enabled=false; otherwise on by default and fail-silent. -
loginDivController
@Bean public LoginDivController loginDivController(org.springframework.beans.factory.ObjectProvider<AuthMethodsProvider> authMethods, org.springframework.beans.factory.ObjectProvider<AuthMethodsContributor> contributors) -
uiAccessService
-
uiEventPublisher
-
uiEventController
-
clusterUiBridge
@Bean public ClusterUiBridge clusterUiBridge(ClusterEventBus clusterEventBus, UiEventPublisher publisher) Bridges the cross-nodeClusterEventBusinto the local SSE stream so a write on one node lights up browsers connected to any node. With the default no-op bus this is inert. SeeClusterUiBridgefor why received events bypass the Spring event bus. -
fieldHintResolver
@Bean public FieldHintResolver fieldHintResolver(org.springframework.beans.factory.ObjectProvider<EntityView> entityViews) -
resolvedMetadataService
@Bean public ResolvedMetadataService resolvedMetadataService(MetadataRegistry registry, FieldHintResolver fieldHintResolver) -
catalogQueryService
@Bean public CatalogQueryService catalogQueryService(MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi) -
documentQueryService
@Bean public DocumentQueryService documentQueryService(MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi) -
registerQueryService
@Bean public RegisterQueryService registerQueryService(MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi) -
informationRegisterQueryService
@Bean public InformationRegisterQueryService informationRegisterQueryService(MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi) -
catalogCommandService
@Bean public CatalogCommandService catalogCommandService(org.jdbi.v3.core.Jdbi jdbi, UiProperties properties, NumberGenerator numberGenerator, CatalogQueryService catalogQueryService, UiAccessService access, org.springframework.context.ApplicationEventPublisher events, SecretCipher secretCipher) -
documentCommandService
@Bean public DocumentCommandService documentCommandService(MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi, UiProperties properties, NumberGenerator numberGenerator, PostingService postingService, DocumentQueryService documentQueryService, UiAccessService access, org.springframework.context.ApplicationEventPublisher events, SecretCipher secretCipher) -
genericCatalogController
@Bean public GenericCatalogController genericCatalogController(CatalogQueryService catalogQueryService, UiAccessService access, CatalogCommandService catalogCommandService, RelatedListReader relatedListReader) -
genericDocumentController
@Bean public GenericDocumentController genericDocumentController(DocumentQueryService documentQueryService, UiAccessService access, DocumentCommandService documentCommandService, RelatedListReader relatedListReader) -
genericRegisterController
@Bean public GenericRegisterController genericRegisterController(RegisterQueryService registerQueryService, UiAccessService access) -
currentUserResolver
@Bean public CurrentUserResolver currentUserResolver(UiLayout uiLayout, MetadataRegistry registry, org.jdbi.v3.core.Jdbi jdbi) -
uiViewResolver
@Bean public UiViewResolver uiViewResolver(ResolvedMetadataService resolvedMetadata, org.springframework.beans.factory.ObjectProvider<EntityView> entityViews) -
pageResolver
@Bean public PageResolver pageResolver(org.springframework.beans.factory.ObjectProvider<Page> pages) -
divKitController
@Bean public DivKitController divKitController(LayoutSet layoutSet, UiLayoutResolver layoutResolver, UiProfileResolver profileResolver, UiAccessService access, CurrentUserResolver currentUserResolver, ResolvedMetadataService resolvedMetadata, UiViewResolver uiViewResolver, PageResolver pageResolver, CatalogQueryService catalogQueryService, DocumentQueryService documentQueryService, RegisterQueryService registerQueryService, UiActionResolver uiActionResolver, RelatedListReader relatedListReader, UiProperties uiProperties, org.springframework.beans.factory.ObjectProvider<CommentProperties> commentProperties)
-