Known Direct Subclasses
|
Known Indirect Subclasses
|
Class Overview
An abstract renderer for the project constants (versions and components).
Summary
Nested Classes |
class |
AbstractProjectConstantsRenderer.GenericProjectConstantsLabel |
A label with an optional url to the browse page |
Public Methods |
String
|
getEditHtml(User user, SearchContext searchContext, FieldValuesHolder fieldValuesHolder, Map<?, ?> displayParameters, Action action)
Used to produce an HTML input that is rendered on the JIRA issue navigator.
|
String
|
getViewHtml(User user, SearchContext searchContext, FieldValuesHolder fieldValuesHolder, Map<?, ?> displayParameters, Action action)
Used to produce the HTML that displays a searchers summary information (e.g.
|
boolean
|
isRelevantForQuery(User user, Query query)
|
boolean
|
isShown(User user, SearchContext searchContext)
Checks if the searcher should be shown in this context on the Issue Navigator.
|
[Expand]
Inherited Methods |
From class
com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
I18nHelper
|
getI18n(User searcher)
|
Map<String, Object>
|
getVelocityParams(User searcher, SearchContext searchContext, FieldLayoutItem fieldLayoutItem, FieldValuesHolder fieldValuesHolder, Map<?, ?> displayParameters, Action action)
|
boolean
|
isRelevantForQuery(ClauseNames clauseNames, Query query)
|
String
|
renderEditTemplate(String template, Map<String, Object> velocityParams)
|
String
|
renderViewTemplate(String template, Map<String, Object> velocityParams)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.jira.issue.search.searchers.renderer.SearchRenderer
String
|
getEditHtml(User user, SearchContext searchContext, FieldValuesHolder fieldValuesHolder, Map<?, ?> displayParameters, Action action)
Used to produce an HTML input that is rendered on the JIRA issue navigator.
|
String
|
getViewHtml(User user, SearchContext searchContext, FieldValuesHolder fieldValuesHolder, Map<?, ?> displayParameters, Action action)
Used to produce the HTML that displays a searchers summary information (e.g.
|
boolean
|
isRelevantForQuery(User user, Query query)
|
boolean
|
isShown(User user, SearchContext searchContext)
Checks if the searcher should be shown in this context on the Issue Navigator.
|
|
Fields
Public Methods
Used to produce an HTML input that is rendered on the JIRA issue navigator. This HTML provides the UI
for searching a fields content. There will be a corresponding SearchInputTransformer
that will know how to transform these input parameters into JIRA search objects.
Parameters
user
| performing this action. |
searchContext
| the search context of the current search request that may be participating in rendering the
issue navigator. |
fieldValuesHolder
| contains any request parameters that the HTML input may need to use to pre-populate
the input (e.g. if this is the priority renderer and the search request being rendered has two priorities already
selected these params will contain these request parameters). These parameters will have been populated via a
call to populateFromQuery(User, com.atlassian.jira.issue.transport.FieldValuesHolder, com.atlassian.query.Query, com.atlassian.jira.issue.search.SearchContext)
if there is a SearchRequest involved in the rendering this IssueNavigator call. |
displayParameters
| are a map of "hints" that can be passed from the caller to this code which can use these
hints to alter the way it renders the HTML. |
action
| is the WebWork 1 action object that is rendering the Issue Navigator view. This can be used to
invoke methods on the view. |
Returns
- a String that contains HTML that can be rendered on the left-hand side of the JIRA issue navigator.
Used to produce the HTML that displays a searchers summary information (e.g. if this is the priority searcher
and a user has selected two priorities then this method will render HTML that shows something like 'priority: Major, Minor').
Parameters
user
| performing this action. |
searchContext
| the search context of the current search request that may be participating in rendering the
issue navigator. |
fieldValuesHolder
| contains any request parameters that the HTML input may need to use to pre-populate
the input (e.g. if this is the priority renderer and the search request being rendered has two priorities already
selected these params will contain these request parameters). These parameters will have been populated via a
call to populateFromQuery(User, com.atlassian.jira.issue.transport.FieldValuesHolder, com.atlassian.query.Query, com.atlassian.jira.issue.search.SearchContext)
if there is a SearchRequest involved in the rendering this IssueNavigator call. |
displayParameters
| are a map of "hints" that can be passed from the caller to this code which can use these
hints to alter the way it renders the HTML. |
action
| is the WebWork 1 action object that is rendering the Issue Navigator view. This can be used to
invoke methods on the view. |
Returns
- a String that contains HTML that can be rendered on the left-hand side of the issue navigator to show
a SearchRequest summary.
public
boolean
isRelevantForQuery
(User user, Query query)
Parameters
user
| performing this action. |
query
| contains the search criteria used to determine if this query is relevevant to the searcher. |
Returns
- true if the query has relevant clauses to the searchers, false otherwise.
public
boolean
isShown
(User user, SearchContext searchContext)
Checks if the searcher should be shown in this context on the Issue Navigator.
Parameters
user
| performing this action. |
searchContext
| the context of the search (i.e. projects and issue types selected). |
Returns
- true if the searcher will appear in the issue navigator, false otherwise.
Protected Methods