public class UserPickerGroupCustomFieldRenderer extends AbstractUserSearchRenderer implements SearchRenderer
permissionManager, SELECT_LIST_GROUP, SELECT_LIST_NONE, SELECT_LIST_USER, userSearcherHelper
EDIT_TEMPLATE_SUFFIX, VIEW_TEMPLATE_SUFFIX
Constructor and Description |
---|
UserPickerGroupCustomFieldRenderer(CustomField field,
UserFieldSearchConstants searchConstants,
String nameKey,
VelocityRequestContextFactory velocityRequestContextFactory,
ApplicationProperties applicationProperties,
VelocityTemplatingEngine templatingEngine,
UserSearchService searchService,
FieldVisibilityManager fieldVisibilityManager,
UserManager userManager,
PermissionManager permissionManager,
UserFilterManager userFilterManager) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
addUserGroupSuggestionParams(FieldValuesHolder fieldValuesHolder,
ApplicationUser user,
SearchContext searchContext,
List<String> selectedUsers)
add user and group suggestions into parameters.
|
protected String |
getEmptyValueKey() |
protected List<Map<String,String>> |
getSelectedListOptions(ApplicationUser searcher)
Returns a list of select box options
|
protected Map<String,Object> |
getVelocityParams(ApplicationUser searcher,
SearchContext searchContext,
FieldLayoutItem fieldLayoutItem,
FieldValuesHolder fieldValuesHolder,
Map displayParameters,
webwork.action.Action action) |
boolean |
isShown(ApplicationUser user,
SearchContext searchContext)
Checks if the searcher should be shown in this context on the Issue Navigator.
|
getEditHtml, getTextForuser, getViewHtml, isRelevantForQuery
getI18n, isRelevantForQuery, renderEditTemplate, renderViewTemplate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEditHtml, getViewHtml, isRelevantForQuery
public UserPickerGroupCustomFieldRenderer(CustomField field, UserFieldSearchConstants searchConstants, String nameKey, VelocityRequestContextFactory velocityRequestContextFactory, ApplicationProperties applicationProperties, VelocityTemplatingEngine templatingEngine, UserSearchService searchService, FieldVisibilityManager fieldVisibilityManager, UserManager userManager, PermissionManager permissionManager, UserFilterManager userFilterManager)
public boolean isShown(ApplicationUser user, SearchContext searchContext)
SearchRenderer
isShown
in interface SearchRenderer
user
- performing this action.searchContext
- the context of the search (i.e. projects and issue types selected).protected List<Map<String,String>> getSelectedListOptions(ApplicationUser searcher)
getSelectedListOptions
in class AbstractUserSearchRenderer
searcher
- performing this action.protected Map<String,Object> getVelocityParams(ApplicationUser searcher, SearchContext searchContext, FieldLayoutItem fieldLayoutItem, FieldValuesHolder fieldValuesHolder, Map displayParameters, webwork.action.Action action)
getVelocityParams
in class AbstractUserSearchRenderer
protected Map<String,Object> addUserGroupSuggestionParams(FieldValuesHolder fieldValuesHolder, ApplicationUser user, SearchContext searchContext, List<String> selectedUsers)
AbstractUserSearchRenderer
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.
addUserGroupSuggestionParams
in class AbstractUserSearchRenderer
selectedUsers
- recently selected usersprotected String getEmptyValueKey()
getEmptyValueKey
in class AbstractUserSearchRenderer
Copyright © 2002-2015 Atlassian. All Rights Reserved.