Class CommentOrderManagerImpl
java.lang.Object
com.atlassian.jira.issue.comments.CommentOrderManagerImpl
- All Implemented Interfaces:
CommentOrderManager
-
Constructor Summary
ConstructorsConstructorDescriptionCommentOrderManagerImpl(CommentManager commentManager, JiraAuthenticationContext jiraAuthenticationContext, UserPreferencesManager userPreferencesManager, ApplicationProperties applicationProperties) -
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
-
Constructor Details
-
CommentOrderManagerImpl
public CommentOrderManagerImpl(CommentManager commentManager, JiraAuthenticationContext jiraAuthenticationContext, UserPreferencesManager userPreferencesManager, ApplicationProperties applicationProperties)
-
-
Method Details
-
setIssueCommentsOrder
public void setIssueCommentsOrder(TabPanelOrder order) throws com.atlassian.core.AtlassianCoreException Description copied from interface:CommentOrderManagerSet a comments order in user preferences- Specified by:
setIssueCommentsOrderin interfaceCommentOrderManager- Parameters:
order- value from TabPanelOrder enum- Throws:
com.atlassian.core.AtlassianCoreException- if user preferences is null
-
getIssueCommentsOrder
Description copied from interface:CommentOrderManagerGet 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)- Specified by:
getIssueCommentsOrderin interfaceCommentOrderManager- Returns:
- a value from TabPanelOrder enum which represents the saved order in user preferences
-
getSortedComments
Description copied from interface:CommentOrderManagerGet allComments on the given Issue that the givenApplicationUserhas permission to see.- Specified by:
getSortedCommentsin interfaceCommentOrderManager- 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
-