Class CommentSearchManager
java.lang.Object
com.atlassian.jira.issue.comments.CommentSearchManager
The CommentSearchManager is used to retrieve comments in JIRA.
Comments are always associated with an issue. This manager is only used internally.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommentSearchManager(UserManager userManager, OfBizDelegator delegator, IssueManager issueManager, ProjectRoleManager projectRoleManager, CommentPermissionManager commentPermissionManager, FeatureManager featureManager, ApplicationPropertiesService applicationPropertiesService, StreamingCommentsRetriever streamingCommentsRetriever) -
Method Summary
Modifier and TypeMethodDescriptionconvertToComment(org.ofbiz.core.entity.GenericValue gv) getCommentById(Long commentId) getComments(Issue issue) longgetCommentsCount(Issue issue) getCommentsForUser(Issue issue, ApplicationUser user) getCommentsForUserSince(Issue issue, ApplicationUser user, Date since) getCommentSummary(ApplicationUser user, Issue issue, Optional<Long> focusedCommentId) getMutableComment(Long commentId) searchCommentsVisibleForUser(CommentSearchParameters parameters) streamComments(ApplicationUser user, Issue issue)
-
Field Details
-
NUMBER_OF_NEW_COMMENTS_TO_SHOW
public static final int NUMBER_OF_NEW_COMMENTS_TO_SHOW- See Also:
-
-
Constructor Details
-
CommentSearchManager
public CommentSearchManager(UserManager userManager, OfBizDelegator delegator, IssueManager issueManager, ProjectRoleManager projectRoleManager, CommentPermissionManager commentPermissionManager, FeatureManager featureManager, ApplicationPropertiesService applicationPropertiesService, StreamingCommentsRetriever streamingCommentsRetriever)
-
-
Method Details
-
convertToComment
-
getCommentById
-
getMutableComment
-
getComments
-
getCommentsCount
-
getCommentsForUserSince
@Nonnull public List<Comment> getCommentsForUserSince(@Nonnull Issue issue, @Nullable ApplicationUser user, @Nonnull Date since) -
getCommentsForUser
-
streamComments
-
getCommentSummary
public CommentSummary getCommentSummary(@Nullable ApplicationUser user, @Nonnull Issue issue, @Nonnull Optional<Long> focusedCommentId) -
searchCommentsVisibleForUser
-