Class StreamingCommentsJsonBean
java.lang.Object
com.atlassian.jira.issue.fields.rest.json.beans.StreamingCommentsJsonBean
- All Implemented Interfaces:
CommentsJsonBean
- Since:
- 7.2
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionStreamingCommentsJsonBean(Issue issue, boolean isRendered, String rendererType) StreamingCommentsJsonBean(Issue issue, boolean isRendered, String rendererType, ApplicationUser contextUser) Deprecated.protectedStreamingCommentsJsonBean(Issue issue, boolean isRendered, String rendererType, ApplicationUser contextUser, int limit, boolean firstPage) StreamingCommentsJsonBean(Issue issue, boolean isRendered, String rendererType, ApplicationUser contextUser, ApplicationProperties applicationProperties, boolean isBackgroundProcessing) Constructor for StreamingCommentsJsonBean that handles user context for filtering comments. -
Method Summary
-
Field Details
-
EMBEDDED_COMMENTS_BACKGROUND_LIMIT
Deprecated.The limit relates to the webhook payloads that uses this serializer under the hood and cant be passed by any context due to how beans are serialized in webhooks. The desired approach is to make this implementation more flexible in the future- See Also:
-
-
Constructor Details
-
StreamingCommentsJsonBean
- Parameters:
issue- the issue associated with the commentsisRendered- whether the comments should be renderedrendererType- the type of renderer to use for the comments
-
StreamingCommentsJsonBean
@Deprecated public StreamingCommentsJsonBean(Issue issue, boolean isRendered, String rendererType, ApplicationUser contextUser) Deprecated.Constructor for StreamingCommentsJsonBean that handles user context for filtering comments. See JRASERVER-74097- Parameters:
issue- the issue associated with the commentsisRendered- whether the comments should be renderedrendererType- the type of renderer to use for the commentscontextUser- the user context for filtering comments (check browse permissions)- Since:
- v10.7.3
-
StreamingCommentsJsonBean
public StreamingCommentsJsonBean(Issue issue, boolean isRendered, String rendererType, ApplicationUser contextUser, ApplicationProperties applicationProperties, boolean isBackgroundProcessing) Constructor for StreamingCommentsJsonBean that handles user context for filtering comments. See https://jira.atlassian.com/browse/JRASERVER-74097- Parameters:
issue- the issue associated with the commentsisRendered- whether the comments should be renderedrendererType- the type of renderer to use for the commentscontextUser- the user context for filtering comments (check browse permissions)applicationProperties- the application properties to retrieve the limit for comments page sizeisBackgroundProcessing- inform if serialization is made in background (webhook) or foreground (rest) context- Since:
- v10.3.8
-
StreamingCommentsJsonBean
protected StreamingCommentsJsonBean(Issue issue, boolean isRendered, String rendererType, ApplicationUser contextUser, int limit, boolean firstPage)
-
-
Method Details
-
getIssue
-
isRendered
public boolean isRendered() -
getRendererType
-
getContextUser
-
getLimit
public int getLimit() -
isFirstPageRequested
public boolean isFirstPageRequested()
-
CommentsMaxCountProvider.EMBEDDED_COMMENTS_BACKGROUND_LIMIT_APPLICATION_PROPERTIES_KEYinstead