Interface CommentsMaxCountProvider

All Known Implementing Classes:
DefaultCommentsMaxCountProvider

public interface CommentsMaxCountProvider
Provides the maximum number of comments to include in various contexts. This is used to determine limits for comment serialization in different scenarios.
Since:
10.3.13
  • Field Details

    • DEFAULT_COMMENTS_PAGE_SIZE

      static final Integer DEFAULT_COMMENTS_PAGE_SIZE
      Default value, that can be used while implementing getMaxCommentsCount()
    • EMBEDDED_COMMENTS_BACKGROUND_LIMIT_APPLICATION_PROPERTIES_KEY

      static final String EMBEDDED_COMMENTS_BACKGROUND_LIMIT_APPLICATION_PROPERTIES_KEY
      The limit relates to the webhook payloads that uses this provider under the hood and can't 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:
  • Method Details

    • getMaxCommentsCount

      int getMaxCommentsCount()
      Returns the maximum number of comments that should be included during serialization process.
      Returns:
      the maximum number of comments to include