com.atlassian.jira.web.dwr
Class AjaxIssuePicker

java.lang.Object
  extended by com.atlassian.jira.web.dwr.AjaxIssuePicker

public class AjaxIssuePicker
extends Object

This is the DWR entry point for the AJAX issue picker. It uses a IssuePickerSearchService to find results.


Field Summary
static String AJAX_RESULT_SECTION
           
 
Constructor Summary
AjaxIssuePicker(JiraAuthenticationContext authContext, IssuePickerSearchService service, IssueManager issueManager, ApplicationProperties applicationProperties, ProjectManager projectManager)
          The bean AjaxIssuePicker is instatiated by the DWR pico create in response to a DWR request
 
Method Summary
protected  JiraServiceContext getContext()
           
 AutoCompleteResults getIssues(String fieldName, String query, String currentIssueKey, String currentProjectId, boolean showSubTasks, boolean showSubTaskParent)
          This is the AJAX entry point to find issues given a query string.
protected  String getText(String key)
          Translates a given key using i18n bean
protected  String getText(String key, Object param)
          Translates a given key using i18n bean, passing in param
protected  String getText(String key, Object param1, Object param2)
          Translates a given key using i18n bean, passing in param
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AJAX_RESULT_SECTION

public static final String AJAX_RESULT_SECTION
See Also:
Constant Field Values
Constructor Detail

AjaxIssuePicker

public AjaxIssuePicker(JiraAuthenticationContext authContext,
                       IssuePickerSearchService service,
                       IssueManager issueManager,
                       ApplicationProperties applicationProperties,
                       ProjectManager projectManager)
The bean AjaxIssuePicker is instatiated by the DWR pico create in response to a DWR request

Parameters:
authContext - the Jira autnetication context
service - the business component that does issue searching
issueManager - the good old IssueManager
applicationProperties - JIRA app properties
projectManager - Project Manager
Method Detail

getIssues

public AutoCompleteResults getIssues(String fieldName,
                                     String query,
                                     String currentIssueKey,
                                     String currentProjectId,
                                     boolean showSubTasks,
                                     boolean showSubTaskParent)
This is the AJAX entry point to find issues given a query string. The particluar instance of this call can "grey out" issues by providing extra filterer parameters.

Parameters:
query - what the user type in to search on
currentIssueKey - the current issue or null
currentProjectId - the current project id or null
showSubTasks - set to false if sub tasks should be greyed out
showSubTaskParent - set to false to have parent issue greyed out
fieldName - The field that we are giving results for
Returns:
an AutoCompleteResults as requireded by the YUI client side code

getContext

protected JiraServiceContext getContext()

getText

protected String getText(String key)
Translates a given key using i18n bean

Parameters:
key - key to translate
Returns:
i18n string for given key

getText

protected String getText(String key,
                         Object param)
Translates a given key using i18n bean, passing in param

Parameters:
key - key to transkate
param - param to insert into property
Returns:
i18n string for given key, with param inserted

getText

protected String getText(String key,
                         Object param1,
                         Object param2)
Translates a given key using i18n bean, passing in param

Parameters:
key - key to transkate
param1 - param to insert into property
param2 - param to insert into property
Returns:
i18n string for given key, with param inserted


Copyright © 2002-2009 Atlassian. All Rights Reserved.