Interface RecentCommentManager
- All Known Implementing Classes:
DefaultRecentCommentManager
@PublicApi
public interface RecentCommentManager
A standard way of getting a list of recent comments from JIRA
-
Method Summary
Modifier and TypeMethodDescriptiongetRecentComments(SearchRequest searchRequest, ApplicationUser user) getRecentComments(SearchRequest searchRequest, ApplicationUser user, int maxResults)
-
Method Details
-
getRecentComments
CommentIterator getRecentComments(SearchRequest searchRequest, ApplicationUser user) throws SearchException - Parameters:
searchRequest- The search request to limit the comments touser- TheUserto match the Permissions against- Returns:
- An iterator over all the comments from any issues in the search request that the user can see
- Throws:
SearchException- Exceptions occured while trying to peform a search on theSearchRequest
-
getRecentComments
CommentIterator getRecentComments(SearchRequest searchRequest, ApplicationUser user, int maxResults) throws SearchException - Parameters:
searchRequest- The search request to limit the comments touser- TheUserto match the Permissions againstmaxResults- Maximum results to return, might be limited by the underlying search platform.- Returns:
- An iterator over all the comments from any issues in the search request that the user can see
- Throws:
SearchException- Exceptions occured while trying to peform a search on theSearchRequest
-