|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.issue.search.searchers.transformer.UserSearchInputTransformer
com.atlassian.jira.issue.search.searchers.transformer.KickassUserSearchInputTransformer
public class KickassUserSearchInputTransformer
A search input transformer for user/group fields with Kickass modifications.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.jira.issue.search.searchers.transformer.UserSearchInputTransformer |
|---|
emptySelectFlag, groupManager, searchConstants, userFitsNavigatorHelper, userHistoryManager, userManager |
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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 meessages to the errors object if values in the fieldValuesHolder fails validation. |
| Methods inherited from class com.atlassian.jira.issue.search.searchers.transformer.UserSearchInputTransformer |
|---|
getClauseName, getMatchingClauses |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public 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)
| Method Detail |
|---|
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 the
public void validateParams(com.atlassian.crowd.embedded.api.User user,
SearchContext searchContext,
FieldValuesHolder fieldValuesHolder,
I18nHelper i18nHelper,
ErrorCollection errors)
SearchInputTransformer
validateParams 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 to
public 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 searchers
Clause 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 to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||