public class KickassUserSearchInputTransformer extends UserSearchInputTransformer
emptySelectFlag, groupManager, searchConstants, userFitsNavigatorHelper, userHistoryManager, userManager| Constructor and Description |
|---|
KickassUserSearchInputTransformer(UserFieldSearchConstants searchConstants,
UserFitsNavigatorHelper userFitsNavigatorHelper,
GroupManager groupManager,
UserManager userManager,
UserHistoryManager userHistoryManager) |
KickassUserSearchInputTransformer(UserFieldSearchConstants searchConstants,
UserFitsNavigatorHelper userFitsNavigatorHelper,
GroupManager groupManager,
UserManager userManager,
UserHistoryManager userHistoryManager,
CustomField customField,
CustomFieldInputHelper customFieldInputHelper) |
KickassUserSearchInputTransformer(UserFieldSearchConstantsWithEmpty searchConstants,
UserFitsNavigatorHelper userFitsNavigatorHelper,
GroupManager groupManager,
UserManager userManager,
UserHistoryManager userHistoryManager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doRelevantClausesFitFilterForm(com.atlassian.crowd.embedded.api.User user,
Query query,
SearchContext searchContext)
Determines whether the given query can be represented in basic mode.
|
Clause |
getSearchClause(com.atlassian.crowd.embedded.api.User user,
FieldValuesHolder fieldValuesHolder)
Convert the user's input into a JQL clause.
|
void |
populateFromParams(com.atlassian.crowd.embedded.api.User user,
FieldValuesHolder fieldValuesHolder,
ActionParams actionParams)
Populates a
FieldValuesHolder with ActionParams. |
void |
populateFromQuery(com.atlassian.crowd.embedded.api.User user,
FieldValuesHolder fieldValuesHolder,
Query query,
SearchContext searchContext)
Populates a
FieldValuesHolder from a Query. |
void |
validateParams(com.atlassian.crowd.embedded.api.User user,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
I18nHelper i18nHelper,
ErrorCollection errors)
Adds error messages to the errors object if values in the fieldValuesHolder fails validation.
|
getClauseName, getMatchingClausespublic KickassUserSearchInputTransformer(UserFieldSearchConstantsWithEmpty searchConstants, UserFitsNavigatorHelper userFitsNavigatorHelper, GroupManager groupManager, UserManager userManager, UserHistoryManager userHistoryManager)
public KickassUserSearchInputTransformer(UserFieldSearchConstants searchConstants, UserFitsNavigatorHelper userFitsNavigatorHelper, GroupManager groupManager, UserManager userManager, UserHistoryManager userHistoryManager)
public KickassUserSearchInputTransformer(UserFieldSearchConstants searchConstants, UserFitsNavigatorHelper userFitsNavigatorHelper, GroupManager groupManager, UserManager userManager, UserHistoryManager userHistoryManager, CustomField customField, CustomFieldInputHelper customFieldInputHelper)
public void populateFromParams(com.atlassian.crowd.embedded.api.User user,
FieldValuesHolder fieldValuesHolder,
ActionParams actionParams)
FieldValuesHolder with ActionParams.
Values that start with "user:" refer to users, values that start with
"group:" refers to groups, and "empty" refers to empty values.populateFromParams in interface SearchInputTransformerpopulateFromParams in class UserSearchInputTransformeruser - performing this action.fieldValuesHolder - is the object that should have its values set by this method and that will contain
any other values that have been set by other SearchInputTransformers.actionParams - params from the webwork front end that contains a String[] of values as submitted via thepublic void validateParams(com.atlassian.crowd.embedded.api.User user,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
I18nHelper i18nHelper,
ErrorCollection errors)
SearchInputTransformervalidateParams in interface SearchInputTransformervalidateParams in class UserSearchInputTransformeruser - performing this action.searchContext - the context of the search (i.e. projects and issue types selected).fieldValuesHolder - contains values populated by the populate methods of this input transformer.i18nHelper - used to internationalize error messages that we want to display to the users.errors - the ErrorCollection that contains the messages we want to display to the users.public void populateFromQuery(com.atlassian.crowd.embedded.api.User user,
FieldValuesHolder fieldValuesHolder,
Query query,
SearchContext searchContext)
FieldValuesHolder from a Query.populateFromQuery in interface SearchInputTransformerpopulateFromQuery in class UserSearchInputTransformeruser - performing this action.fieldValuesHolder - is the object that should have its values set by this method and that will contain
any other values that have been set by other SearchInputTransformers.query - the search criteria used to populate the field values holder.searchContext - contains the projects and issue types that the search and filter form is restricted topublic Clause getSearchClause(com.atlassian.crowd.embedded.api.User user, FieldValuesHolder fieldValuesHolder)
getSearchClause in interface SearchInputTransformergetSearchClause in class UserSearchInputTransformeruser - performing this action.fieldValuesHolder - contains values populated by the searchersClause that represents the users search based on the fieldValuesHolder;
null if this searcher has no responsibility in the given input.public boolean doRelevantClausesFitFilterForm(com.atlassian.crowd.embedded.api.User user,
Query query,
SearchContext searchContext)
doRelevantClausesFitFilterForm in interface SearchInputTransformerdoRelevantClausesFitFilterForm in class UserSearchInputTransformeruser - performing this action.query - to check if it can fit in the simple (GUI form based) issue navigator.searchContext - contains the projects and issue types that the search and filter form is restricted toCopyright © 2002-2015 Atlassian. All Rights Reserved.