Class ProjectDescriptionFragment
java.lang.Object
com.atlassian.jira.projects.legacy.projectpanel.fragment.impl.AbstractFragment
com.atlassian.jira.projects.legacy.projectpanel.fragment.impl.ProjectDescriptionFragment
- All Implemented Interfaces:
ProjectTabPanelFragment
The fragment which displays the description of a project.
- Since:
- v4.0
-
Field Summary
Fields inherited from class com.atlassian.jira.projects.legacy.projectpanel.fragment.impl.AbstractFragment
authenticationContext, log, velocityManager -
Constructor Summary
ConstructorsConstructorDescriptionProjectDescriptionFragment(ProjectPermissions projectPermissions, VelocityTemplatingEngine templatingEngine, JiraAuthenticationContext jiraAuthenticationContext, UserFormatManager userFormatManager, ProjectDescriptionRenderer projectDescriptionRenderer) -
Method Summary
Methods inherited from class com.atlassian.jira.projects.legacy.projectpanel.fragment.impl.AbstractFragment
getHtml, getIssueCountInSearch
-
Constructor Details
-
ProjectDescriptionFragment
@Inject public ProjectDescriptionFragment(ProjectPermissions projectPermissions, VelocityTemplatingEngine templatingEngine, JiraAuthenticationContext jiraAuthenticationContext, UserFormatManager userFormatManager, ProjectDescriptionRenderer projectDescriptionRenderer)
-
-
Method Details
-
getId
Description copied from interface:ProjectTabPanelFragmentReturns the fragment's unique HTML ID.- Returns:
- the id of the fragment, never null
-
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 context in which this fragment is being rendered- Returns:
- true if the fragment should be shown, false otherwise
-