Class UserPickerGroupCustomFieldRenderer
java.lang.Object
com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
com.atlassian.jira.issue.search.searchers.renderer.AbstractUserSearchRenderer
com.atlassian.jira.issue.customfields.searchers.renderer.UserPickerGroupCustomFieldRenderer
- All Implemented Interfaces:
SearchRenderer
public class UserPickerGroupCustomFieldRenderer
extends AbstractUserSearchRenderer
implements SearchRenderer
- Since:
- v4.0
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.search.searchers.renderer.AbstractUserSearchRenderer
permissionManager, SELECT_LIST_GROUP, SELECT_LIST_NONE, SELECT_LIST_USER, userSearcherHelperFields inherited from class com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
EDIT_TEMPLATE_SUFFIX, VIEW_TEMPLATE_SUFFIX -
Constructor Summary
ConstructorsConstructorDescriptionUserPickerGroupCustomFieldRenderer(CustomField field, UserFieldSearchConstants searchConstants, String nameKey, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, VelocityTemplatingEngine templatingEngine, UserSearchService searchService, FieldVisibilityManager fieldVisibilityManager, UserManager userManager, PermissionManager permissionManager, UserFilterManager userFilterManager) -
Method Summary
Modifier and TypeMethodDescriptionaddUserGroupSuggestionParams(FieldValuesHolder fieldValuesHolder, ApplicationUser user, SearchContext searchContext, List<String> selectedUsers) add user and group suggestions into parameters.protected StringgetSelectedListOptions(ApplicationUser searcher) Returns a list of select box optionsgetVelocityParams(ApplicationUser searcher, SearchContext searchContext, FieldLayoutItem fieldLayoutItem, FieldValuesHolder fieldValuesHolder, Map displayParameters, webwork.action.Action action) booleanisShown(ApplicationUser user, SearchContext searchContext) Checks if the searcher should be shown in this context on the Issue Navigator.Methods inherited from class com.atlassian.jira.issue.search.searchers.renderer.AbstractUserSearchRenderer
getEditHtml, getTextForuser, getViewHtml, isRelevantForQueryMethods inherited from class com.atlassian.jira.issue.search.searchers.renderer.AbstractSearchRenderer
getI18n, isRelevantForQuery, renderEditTemplate, renderViewTemplateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.issue.search.searchers.renderer.SearchRenderer
getEditHtml, getViewHtml, isRelevantForQuery
-
Constructor Details
-
UserPickerGroupCustomFieldRenderer
public UserPickerGroupCustomFieldRenderer(CustomField field, UserFieldSearchConstants searchConstants, String nameKey, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, VelocityTemplatingEngine templatingEngine, UserSearchService searchService, FieldVisibilityManager fieldVisibilityManager, UserManager userManager, PermissionManager permissionManager, UserFilterManager userFilterManager)
-
-
Method Details
-
isShown
Description copied from interface:SearchRendererChecks if the searcher should be shown in this context on the Issue Navigator.- Specified by:
isShownin interfaceSearchRenderer- 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.
-
getSelectedListOptions
Returns a list of select box options- Specified by:
getSelectedListOptionsin classAbstractUserSearchRenderer- Parameters:
searcher- performing this action.- Returns:
- a list of select box options
-
getVelocityParams
protected Map<String,Object> getVelocityParams(ApplicationUser searcher, SearchContext searchContext, FieldLayoutItem fieldLayoutItem, FieldValuesHolder fieldValuesHolder, Map displayParameters, webwork.action.Action action) - Overrides:
getVelocityParamsin classAbstractUserSearchRenderer
-
addUserGroupSuggestionParams
protected Map<String,Object> addUserGroupSuggestionParams(FieldValuesHolder fieldValuesHolder, ApplicationUser user, SearchContext searchContext, List<String> selectedUsers) Description copied from class:AbstractUserSearchRendereradd user and group suggestions into parameters. subclasses could override it to provide customized suggestions.default implementation returns recently selected users and the first few users from the system, if not enough recently selected users, and returns the groups the user is in, or first few groups in the system, if the user is not specified.
- Overrides:
addUserGroupSuggestionParamsin classAbstractUserSearchRendererselectedUsers- recently selected users- Returns:
-
getEmptyValueKey
- Specified by:
getEmptyValueKeyin classAbstractUserSearchRenderer- Returns:
- the i18n key for the text that describes an empty value for this searcher.
-