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 allComment
s on the given Issue that the givenApplicationUser
has permission to see.void
Set 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 allComment
s on the given Issue that the givenApplicationUser
has 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
Comment
s
-