Package com.onec.ui.comments
Class CommentController
java.lang.Object
com.onec.ui.comments.CommentController
The discussion-thread endpoint. A thread hangs off any catalog or document detail page and is
addressed by the same
{kind}/{name}/{id} triple the UI routes use. Reading and posting
are gated on read access to the target entity — if you can open the record you can
comment on it (see UiAccessService); deleting is limited to the author or an ADMIN.
Authorship is stamped from the authenticated principal via CurrentUserResolver, so the
client never asserts who it is.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordThe request body for posting a comment. -
Constructor Summary
ConstructorsConstructorDescriptionCommentController(CommentService comments, UiAccessService access, CurrentUserResolver currentUser, CommentAuthorAvatars authorAvatars, CommentProperties properties, UiViewResolver viewResolver, CatalogQueryService catalogQuery, DocumentQueryService documentQuery) -
Method Summary
-
Constructor Details
-
CommentController
public CommentController(CommentService comments, UiAccessService access, CurrentUserResolver currentUser, CommentAuthorAvatars authorAvatars, CommentProperties properties, UiViewResolver viewResolver, CatalogQueryService catalogQuery, DocumentQueryService documentQuery)
-
-
Method Details
-
list
-
add
-
delete
-