|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.jira.issue.customfields.searchers.renderer.CustomFieldRenderer
@PublicSpi public class CustomFieldRenderer
An abstract implementation of a renderer for custom fields. It delegates to the searcher module descriptor for actual rendering. The value is retrieved from the field values holder using the provided Custom Field Value Provider.
Constructor Summary | |
---|---|
CustomFieldRenderer(ClauseNames clauseNames,
CustomFieldSearcherModuleDescriptor customFieldSearcherModuleDescriptor,
CustomField field,
CustomFieldValueProvider customFieldValueProvider,
FieldVisibilityManager fieldVisibilityManager)
|
Method Summary | |
---|---|
String |
getEditHtml(SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
Map<?,?> displayParameters,
webwork.action.Action action,
Map<String,Object> velocityParams)
|
String |
getEditHtml(com.atlassian.crowd.embedded.api.User searcher,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
Map<?,?> displayParameters,
webwork.action.Action action)
Used to produce an HTML input that is rendered on the JIRA issue navigator. |
CustomField |
getField()
|
String |
getViewHtml(SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
Map<?,?> displayParameters,
webwork.action.Action action,
Map<String,Object> velocityParams)
|
String |
getViewHtml(com.atlassian.crowd.embedded.api.User searcher,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
Map<?,?> displayParameters,
webwork.action.Action action)
Used to produce the HTML that displays a searchers summary information (e.g. |
boolean |
isRelevantForQuery(com.atlassian.crowd.embedded.api.User searcher,
Query query)
Checks if the searchRequest object has a search representation that was created by the searcher and is used to determine if the SearchRenderer.getViewHtml(User, com.atlassian.jira.issue.search.SearchContext, com.atlassian.jira.issue.transport.FieldValuesHolder, java.util.Map, webwork.action.Action)
method should be called when rendering the search summary. |
boolean |
isShown(com.atlassian.crowd.embedded.api.User searcher,
SearchContext searchContext)
Checks if the searcher should be shown in this context on the Issue Navigator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomFieldRenderer(ClauseNames clauseNames, CustomFieldSearcherModuleDescriptor customFieldSearcherModuleDescriptor, CustomField field, CustomFieldValueProvider customFieldValueProvider, FieldVisibilityManager fieldVisibilityManager)
Method Detail |
---|
public boolean isRelevantForQuery(com.atlassian.crowd.embedded.api.User searcher, Query query)
SearchRenderer
SearchRenderer.getViewHtml(User, com.atlassian.jira.issue.search.SearchContext, com.atlassian.jira.issue.transport.FieldValuesHolder, java.util.Map, webwork.action.Action)
method should be called when rendering the search summary.
isRelevantForQuery
in interface SearchRenderer
searcher
- performing this action.query
- contains the search criteria used to determine if this query is relevevant to the searcher.
public String getEditHtml(com.atlassian.crowd.embedded.api.User searcher, SearchContext searchContext, FieldValuesHolder fieldValuesHolder, Map<?,?> displayParameters, webwork.action.Action action)
SearchRenderer
SearchInputTransformer
that will know how to transform these input parameters into JIRA search objects.
getEditHtml
in interface SearchRenderer
searcher
- 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 SearchInputTransformer.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.
public String getViewHtml(com.atlassian.crowd.embedded.api.User searcher, SearchContext searchContext, FieldValuesHolder fieldValuesHolder, Map<?,?> displayParameters, webwork.action.Action action)
SearchRenderer
getViewHtml
in interface SearchRenderer
searcher
- 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 SearchInputTransformer.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.
public CustomField getField()
public boolean isShown(com.atlassian.crowd.embedded.api.User searcher, SearchContext searchContext)
SearchRenderer
isShown
in interface SearchRenderer
searcher
- performing this action.searchContext
- the context of the search (i.e. projects and issue types selected).
public String getEditHtml(SearchContext searchContext, FieldValuesHolder fieldValuesHolder, Map<?,?> displayParameters, webwork.action.Action action, Map<String,Object> velocityParams)
public String getViewHtml(SearchContext searchContext, FieldValuesHolder fieldValuesHolder, Map<?,?> displayParameters, webwork.action.Action action, Map<String,Object> velocityParams)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |