Class AbstractIssuesFragment
java.lang.Object
com.atlassian.jira.projects.legacy.projectpanel.fragment.impl.AbstractFragment
com.atlassian.jira.projects.legacy.projectpanel.fragment.impl.AbstractMultiFragment
com.atlassian.jira.projects.legacy.projectpanel.fragment.impl.AbstractIssuesFragment
- All Implemented Interfaces:
ProjectTabPanelFragment,VersionTabPanelFragment
- Direct Known Subclasses:
DueIssuesFragment,RecentIssuesFragment
A common base class for fragments which display issues on project tab panels.
- Since:
- v4.0
-
Field Summary
FieldsFields inherited from class com.atlassian.jira.projects.legacy.projectpanel.fragment.impl.AbstractFragment
authenticationContext, velocityManager -
Constructor Summary
ConstructorsConstructorDescriptionAbstractIssuesFragment(JiraAuthenticationContext jiraAuthenticationContext, VelocityTemplatingEngine templatingEngine, SearchService searchService, ApplicationProperties applicationProperties, DateTimeFormatterFactory dateTimeFormatterFactory) -
Method Summary
Modifier and TypeMethodDescriptionCreates new map of velocity parameters.protected StringReturns the path to the template directorybooleanWhether or not to include a fragment.Methods inherited from class com.atlassian.jira.projects.legacy.projectpanel.fragment.impl.AbstractFragment
getHtml, getIssueCountInSearchMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.projects.legacy.projectpanel.fragment.ProjectTabPanelFragment
getHtml, getId
-
Field Details
-
TEMPLATE_DIRECTORY_PATH
- See Also:
-
-
Constructor Details
-
AbstractIssuesFragment
public AbstractIssuesFragment(JiraAuthenticationContext jiraAuthenticationContext, VelocityTemplatingEngine templatingEngine, SearchService searchService, ApplicationProperties applicationProperties, DateTimeFormatterFactory dateTimeFormatterFactory)
-
-
Method Details
-
getTemplateDirectoryPath
Description copied from class:AbstractFragmentReturns the path to the template directory- Specified by:
getTemplateDirectoryPathin classAbstractFragment- Returns:
- the path to the template directory
-
createVelocityParams
Description copied from class:AbstractFragmentCreates new map of velocity parameters. This map contains:- fragid - value returned by
ProjectTabPanelFragment.getId() - project - project got from the context passed in
- i18n - i18n bean from the authentication context
- Overrides:
createVelocityParamsin classAbstractFragment- Parameters:
ctx- browse context- Returns:
- new velocity parameters map
- fragid - value returned by
-
showFragment
Description copied from interface:ProjectTabPanelFragmentWhether or not to include a fragment. E.g. check permissions or if there is no content to render- Parameters:
ctx- the browse context- Returns:
- True if the display issue count is greater than zero, and there are issues returned by the search request.
-