Package com.onec.ui.comments
Class CommentsAutoConfiguration
java.lang.Object
com.onec.ui.comments.CommentsAutoConfiguration
@AutoConfiguration(after=UiAutoConfiguration.class)
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnBean(MetadataRegistry.class)
@EnableConfigurationProperties(CommentProperties.class)
@ConditionalOnProperty(prefix="onec.comments",
name="enabled",
havingValue="true",
matchIfMissing=true)
public class CommentsAutoConfiguration
extends Object
Wires the
/api/comments discussion-thread endpoint, its CommentService store, and
the onec.comments.* configuration. Gated on a servlet web app and onec.comments
.enabled (default true), and runs after UiAutoConfiguration so the UiAccessService
and CurrentUserResolver it builds on are already present. Storage is the framework-owned
onec_comments table the service creates on startup — there is no app metadata to model.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommentAuthorAvatars(UiLayout uiLayout, MetadataRegistry registry, FieldHintResolver fieldHintResolver, org.jdbi.v3.core.Jdbi jdbi) commentController(CommentService commentService, UiAccessService access, CurrentUserResolver currentUserResolver, CommentAuthorAvatars authorAvatars, CommentProperties properties, UiViewResolver viewResolver, CatalogQueryService catalogQuery, DocumentQueryService documentQuery) commentService(org.jdbi.v3.core.Jdbi jdbi)
-
Constructor Details
-
CommentsAutoConfiguration
public CommentsAutoConfiguration()
-
-
Method Details
-
commentService
-
commentAuthorAvatars
@Bean public CommentAuthorAvatars commentAuthorAvatars(UiLayout uiLayout, MetadataRegistry registry, FieldHintResolver fieldHintResolver, org.jdbi.v3.core.Jdbi jdbi) -
commentController
@Bean public CommentController commentController(CommentService commentService, UiAccessService access, CurrentUserResolver currentUserResolver, CommentAuthorAvatars authorAvatars, CommentProperties properties, UiViewResolver viewResolver, CatalogQueryService catalogQuery, DocumentQueryService documentQuery)
-