Interface CommentOrderManager
- All Known Implementing Classes:
CommentOrderManagerImpl
public interface CommentOrderManager
The CommentOrderManager is used to store and read chosen comment sort order
-
Method Summary
Modifier and TypeMethodDescriptionGet a comments order from user preferences If user is anonymous or has no stored order in preferences, then the default order will be returned (jira.issue.actions.order)getSortedComments(Issue issue, ApplicationUser user) Get allComments on the given Issue that the givenApplicationUserhas permission to see.voidSet a comments order in user preferences
-
Method Details
-
setIssueCommentsOrder
Set a comments order in user preferences- Parameters:
order- value from TabPanelOrder enum- Throws:
com.atlassian.core.AtlassianCoreException- if user preferences is null
-
getIssueCommentsOrder
TabPanelOrder getIssueCommentsOrder()Get a comments order from user preferences If user is anonymous or has no stored order in preferences, then the default order will be returned (jira.issue.actions.order)- Returns:
- a value from TabPanelOrder enum which represents the saved order in user preferences
-
getSortedComments
Get allComments on the given Issue that the givenApplicationUserhas permission to see.- Parameters:
issue- the comments are associated with.user- the user whose permission level will be used to limit the comments returned.- Returns:
- a list of the
Comments
-