com.atlassian.jira.issue.search.searchers.impl
Class ComponentsSearcher

java.lang.Object
  extended bycom.atlassian.jira.issue.search.searchers.impl.AbstractIssueSearcher
      extended bycom.atlassian.jira.issue.search.searchers.impl.GenericProjectConstantsSearcher
          extended bycom.atlassian.jira.issue.search.searchers.impl.ComponentsSearcher
All Implemented Interfaces:
Comparable, Field, IssueSearcher

public class ComponentsSearcher
extends GenericProjectConstantsSearcher


Nested Class Summary
 
Nested classes inherited from class com.atlassian.jira.issue.search.searchers.impl.GenericProjectConstantsSearcher
GenericProjectConstantsSearcher.ComponentLabelTransformer, GenericProjectConstantsSearcher.VersionLabelTransformer
 
Field Summary
 
Fields inherited from class com.atlassian.jira.issue.search.searchers.impl.GenericProjectConstantsSearcher
fieldVisibilityBean, projectManager, versionManager
 
Fields inherited from class com.atlassian.jira.issue.search.searchers.impl.AbstractIssueSearcher
authenticationContext, EDIT_TEMPLATE_SUFFIX, field, VIEW_TEMPLATE_SUFFIX
 
Fields inherited from interface com.atlassian.jira.issue.search.searchers.IssueSearcher
I18N_BUNDLE, log
 
Constructor Summary
ComponentsSearcher(JiraAuthenticationContext authenticationContext, FieldVisibilityBean fieldVisibilityBean, VersionManager versionManager, ProjectManager projectManager)
           
 
Method Summary
 String getId()
          The unique id of the field
 String getNameKey()
          The i18n key that is used to lookup the field's name when it is displayed
 List getRelatedIndexers()
          Returns a list of FieldIndexer objects.
protected  Collection getSelectedObjects(FieldValuesHolder fieldValuesHolder)
           
protected  Collection getSelectListOptions(SearchContext searchContext)
           
protected  Map getVelocityParams(SearchContext searchContext, FieldLayoutItem fieldLayoutItem, FieldValuesHolder fieldValuesHolder, Map displayParameters, webwork.action.Action action)
           
 void populateSearchRequest(SearchRequest searchRequest, FieldValuesHolder fieldValuesHolder)
          Populate the SearchRequest with SearchParameter objects from the FieldValuesHolder
 
Methods inherited from class com.atlassian.jira.issue.search.searchers.impl.GenericProjectConstantsSearcher
getEditHtml, getQuerySnippet, getSelectedObjects, getVersionOptions, getViewHtml, isRevelentForSeachRequest, isShown, populateFromParams, populateFromSearchRequest, validateParams
 
Methods inherited from class com.atlassian.jira.issue.search.searchers.impl.AbstractIssueSearcher
compareTo, equals, getI18n, getName, hashCode, hasPermission, init, register, renderEditTemplate, renderViewTemplate, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComponentsSearcher

public ComponentsSearcher(JiraAuthenticationContext authenticationContext,
                          FieldVisibilityBean fieldVisibilityBean,
                          VersionManager versionManager,
                          ProjectManager projectManager)
Method Detail

getId

public String getId()
Description copied from interface: Field
The unique id of the field


getNameKey

public String getNameKey()
Description copied from interface: Field
The i18n key that is used to lookup the field's name when it is displayed


getRelatedIndexers

public List getRelatedIndexers()
Description copied from interface: IssueSearcher
Returns a list of FieldIndexer objects. The objects should be initialised and ready for action

Returns:
List of FieldIndexer objects. Must not be null. Return Collections.EMPTY_LIST if not available

populateSearchRequest

public void populateSearchRequest(SearchRequest searchRequest,
                                  FieldValuesHolder fieldValuesHolder)
Description copied from interface: IssueSearcher
Populate the SearchRequest with SearchParameter objects from the FieldValuesHolder

Parameters:
searchRequest - relevent search request
fieldValuesHolder - contains values populated by the searchers

getVelocityParams

protected Map getVelocityParams(SearchContext searchContext,
                                FieldLayoutItem fieldLayoutItem,
                                FieldValuesHolder fieldValuesHolder,
                                Map displayParameters,
                                webwork.action.Action action)
Overrides:
getVelocityParams in class AbstractIssueSearcher

getSelectListOptions

protected Collection getSelectListOptions(SearchContext searchContext)
Specified by:
getSelectListOptions in class GenericProjectConstantsSearcher

getSelectedObjects

protected Collection getSelectedObjects(FieldValuesHolder fieldValuesHolder)
Specified by:
getSelectedObjects in class GenericProjectConstantsSearcher


Copyright © 2002-2006 Atlassian. All Rights Reserved.