public class CommentOrderManagerImpl extends Object implements CommentOrderManager
| Constructor and Description |
|---|
CommentOrderManagerImpl(CommentManager commentManager,
JiraAuthenticationContext jiraAuthenticationContext) |
| Modifier and Type | Method and Description |
|---|---|
TabPanelOrder |
getIssueCommentsOrder()
Get a comments order from user preferences
|
List<Comment> |
getSortedComments(Issue issue,
ApplicationUser user)
Get all
Comments on the given Issue that the given
ApplicationUser has permission to see. |
void |
setIssueCommentsOrder(TabPanelOrder order)
Set a comments order in user preferences
|
public CommentOrderManagerImpl(CommentManager commentManager, JiraAuthenticationContext jiraAuthenticationContext)
public void setIssueCommentsOrder(TabPanelOrder order) throws com.atlassian.core.AtlassianCoreException
CommentOrderManagersetIssueCommentsOrder in interface CommentOrderManagerorder - value from TabPanelOrder enumcom.atlassian.core.AtlassianCoreException - if user preferences is nullpublic TabPanelOrder getIssueCommentsOrder()
CommentOrderManagergetIssueCommentsOrder in interface CommentOrderManagerpublic List<Comment> getSortedComments(Issue issue, ApplicationUser user)
CommentOrderManagerComments on the given Issue that the given
ApplicationUser has permission to see.getSortedComments in interface CommentOrderManagerissue - the comments are associated with.user - the user whose permission level will be used to limit the comments returned.CommentsCopyright © 2002-2024 Atlassian. All Rights Reserved.