com.atlassian.jira.plugin.projectpanel.fragment.impl
Class IssueFiltersFragment

java.lang.Object
  extended by com.atlassian.jira.plugin.projectpanel.fragment.impl.AbstractFragment
      extended by com.atlassian.jira.plugin.projectpanel.fragment.impl.IssueFiltersFragment
All Implemented Interfaces:
ComponentTabPanelFragment, ProjectTabPanelFragment, VersionTabPanelFragment

public class IssueFiltersFragment
extends AbstractFragment
implements ComponentTabPanelFragment, VersionTabPanelFragment

Shows shortcuts to a list of pre-defined issue searches.

Since:
v5.1

Field Summary
 
Fields inherited from class com.atlassian.jira.plugin.projectpanel.fragment.impl.AbstractFragment
authenticationContext, log, velocityManager
 
Constructor Summary
IssueFiltersFragment(VelocityTemplatingEngine templatingEngine, JiraAuthenticationContext authenticationContext, SimpleLinkManager simpleLinkManager)
           
 
Method Summary
protected  Map<String,Object> createVelocityParams(BrowseContext ctx)
          Creates new map of velocity parameters.
 String getId()
          Returns fragmet's ID.
protected  String getTemplateDirectoryPath()
          Returns the path to the template directory
 boolean showFragment(BrowseContext ctx)
          Whether or not to include a fragment.
 
Methods inherited from class com.atlassian.jira.plugin.projectpanel.fragment.impl.AbstractFragment
getHtml, getIssueCountInSearch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.plugin.projectpanel.fragment.ProjectTabPanelFragment
getHtml
 

Constructor Detail

IssueFiltersFragment

public IssueFiltersFragment(VelocityTemplatingEngine templatingEngine,
                            JiraAuthenticationContext authenticationContext,
                            SimpleLinkManager simpleLinkManager)
Method Detail

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

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

createVelocityParams

protected Map<String,Object> createVelocityParams(BrowseContext ctx)
Description copied from class: AbstractFragment
Creates new map of velocity parameters.

This map contains:

Overrides:
createVelocityParams in class AbstractFragment
Parameters:
ctx - browse context
Returns:
new velocity parameters map

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


Copyright © 2002-2014 Atlassian. All Rights Reserved.