public class DefaultAutoCompleteJsonGenerator extends Object implements AutoCompleteJsonGenerator
Constructor and Description |
---|
DefaultAutoCompleteJsonGenerator(SearchHandlerManager searchHandlerManager,
JqlStringSupport jqlStringSupport,
FieldManager fieldManager,
JqlFunctionHandlerRegistry jqlFunctionHandlerRegistry) |
Modifier and Type | Method and Description |
---|---|
String |
getJqlReservedWordsJson() |
String |
getVisibleFieldNamesJson(com.atlassian.crowd.embedded.api.User user,
Locale locale)
Will return an array of JSON objects containing the field names that the user can see, listed in alphabetical order.
|
String |
getVisibleFunctionNamesJson(com.atlassian.crowd.embedded.api.User user,
Locale locale)
Will return an array of JSON objects containing the functions names that are available in the system, listed in alphabetical order.
|
public DefaultAutoCompleteJsonGenerator(SearchHandlerManager searchHandlerManager, JqlStringSupport jqlStringSupport, FieldManager fieldManager, JqlFunctionHandlerRegistry jqlFunctionHandlerRegistry)
public String getVisibleFieldNamesJson(com.atlassian.crowd.embedded.api.User user, Locale locale) throws JSONException
AutoCompleteJsonGenerator
getVisibleFieldNamesJson
in interface AutoCompleteJsonGenerator
user
- that the page is being rendered for.locale
- the locale of the user.JSONException
- if there is a problem generating the JSON objectpublic String getVisibleFunctionNamesJson(com.atlassian.crowd.embedded.api.User user, Locale locale) throws JSONException
AutoCompleteJsonGenerator
getVisibleFunctionNamesJson
in interface AutoCompleteJsonGenerator
user
- that the page is being rendered for.locale
- the locale of the user.JSONException
- if there is a problem generating the JSON objectpublic String getJqlReservedWordsJson() throws JSONException
getJqlReservedWordsJson
in interface AutoCompleteJsonGenerator
JSONException
- if there is a problem generating the JSON objectCopyright © 2002-2015 Atlassian. All Rights Reserved.