Class CommentTabPanel
java.lang.Object
com.atlassian.jira.issue.tabpanels.CommentTabPanel
- All Implemented Interfaces:
PaginatedIssueTabPanel
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCommentTabPanel(CommentManager commentManager, CommentPinManager commentPinManager, CommentService commentService, CommentPermissionManager commentPermissionManager, CommentReactionsEnabledService commentReactionsEnabledService, IssueManager issueManager, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, DateTimeFormatter dateTimeFormatter, CommentFieldRenderer commentFieldRenderer, CommentPropertyService commentPropertyService, JiraAuthenticationContext jiraAuthenticationContext) -
Method Summary
Modifier and TypeMethodDescriptiongetActions(GetActionsRequest request) Returns a sorted list of issue actions wrapped in a Page object.getHeader(GetActionsRequest request) getPersistentMarkup(GetActionsRequest request) Allows implementors to provide additional HTML code to the page.voidinit(IssueTabPanelModuleDescriptor descriptor) booleanshowPanel(ShowPanelRequest request) Indicates whether this tab should be shown on a given issue.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.plugin.issuetabpanel.PaginatedIssueTabPanel
paginationSupported
-
Field Details
-
descriptor
-
-
Constructor Details
-
CommentTabPanel
public CommentTabPanel(CommentManager commentManager, CommentPinManager commentPinManager, CommentService commentService, CommentPermissionManager commentPermissionManager, CommentReactionsEnabledService commentReactionsEnabledService, IssueManager issueManager, FieldLayoutManager fieldLayoutManager, RendererManager rendererManager, DateTimeFormatter dateTimeFormatter, CommentFieldRenderer commentFieldRenderer, CommentPropertyService commentPropertyService, JiraAuthenticationContext jiraAuthenticationContext)
-
-
Method Details
-
init
- Specified by:
initin interfacePaginatedIssueTabPanel
-
showPanel
Description copied from interface:PaginatedIssueTabPanelIndicates whether this tab should be shown on a given issue.- Specified by:
showPanelin interfacePaginatedIssueTabPanel- Parameters:
request- a ShowPanelRequest- Returns:
- a boolean indicating whether to show the panel or not
-
getActions
Description copied from interface:PaginatedIssueTabPanelReturns a sorted list of issue actions wrapped in a Page object. This method will only be called ifshowPanelreturned true for a given context. Therequestparameter contains the user that is viewing the tab, information as to whether the tab is being loaded using an AJAX request, and so on.Note that for the 'all' tab, the returned actions will be displayed in order according to the value returned by
IssueAction.getTimePerformed().- Specified by:
getActionsin interfacePaginatedIssueTabPanel- Parameters:
request- a GetActionsRequest- Returns:
- the actions to display
-
getHeader
- Specified by:
getHeaderin interfacePaginatedIssueTabPanel
-
getPersistentMarkup
Description copied from interface:PaginatedIssueTabPanelAllows implementors to provide additional HTML code to the page. It will be added always, as long asPaginatedIssueTabPanel.showPanel(com.atlassian.jira.plugin.issuetabpanel.ShowPanelRequest)returns true.- Specified by:
getPersistentMarkupin interfacePaginatedIssueTabPanel- Returns:
- HTML to be added inside the activity tabs, or an empty string
-