com.atlassian.jira.plugin.componentpanel.fragment.impl
Class ComponentDescriptionFragment
java.lang.Object
com.atlassian.jira.plugin.projectpanel.fragment.impl.AbstractFragment
com.atlassian.jira.plugin.componentpanel.fragment.impl.ComponentDescriptionFragment
- All Implemented Interfaces:
- ComponentTabPanelFragment, ProjectTabPanelFragment
public class ComponentDescriptionFragment
- extends AbstractFragment
- implements ComponentTabPanelFragment
The fragment which displays the description of a project.
- Since:
- v4.0
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentDescriptionFragment
public ComponentDescriptionFragment(com.atlassian.velocity.VelocityManager velocityManager,
ApplicationProperties applicationProperites,
JiraAuthenticationContext jiraAuthenticationContext,
UserFormatManager userFormatManager)
getId
public String getId()
- Description copied from interface:
ProjectTabPanelFragment
- Returns fragmet's ID.
- Specified by:
getId
in interface ProjectTabPanelFragment
- Returns:
- id of the fragment, never null
showFragment
public boolean showFragment(BrowseContext ctx)
- Description copied from interface:
ProjectTabPanelFragment
- Whether or not to include a fragment. E.g. check permissios or if there is no contnent to render
- Specified by:
showFragment
in interface ProjectTabPanelFragment
- Parameters:
ctx
- The context that this fragment is being rendered in.
- Returns:
- true if the fragment should be shown, false otherwise
getTemplateDirectoryPath
protected String getTemplateDirectoryPath()
- Description copied from class:
AbstractFragment
- Returns the path to the template directory
- Specified by:
getTemplateDirectoryPath
in class AbstractFragment
- Returns:
- the path to the template directory
createVelocityParams
protected Map<String,Object> createVelocityParams(BrowseContext ctx)
- Description copied from class:
AbstractFragment
- Creates 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:
createVelocityParams
in class AbstractFragment
- Parameters:
ctx
- browse context
- Returns:
- new velocity parameters map
Copyright © 2002-2012 Atlassian. All Rights Reserved.