public class LabelsClauseValuesGenerator extends Object implements ClauseValuesGenerator
ClauseValuesGenerator.Result, ClauseValuesGenerator.Results
Constructor and Description |
---|
LabelsClauseValuesGenerator(LabelManager labelManager) |
Modifier and Type | Method and Description |
---|---|
ClauseValuesGenerator.Results |
getPossibleValues(ApplicationUser user,
String jqlClauseName,
String valuePrefix,
int maxNumResults)
Will return a string representation of only the possible values that match the value prefix for this clause.
|
public LabelsClauseValuesGenerator(LabelManager labelManager)
public ClauseValuesGenerator.Results getPossibleValues(ApplicationUser user, String jqlClauseName, String valuePrefix, int maxNumResults)
ClauseValuesGenerator
The contract of this method is that if the valuePrefix exactly (minus case) matches the suggestion then we suggest it. This will allow users to verify in their own minds that even though they have typed the full value, it is still valid.
getPossibleValues
in interface ClauseValuesGenerator
user
- the user preforming the search.jqlClauseName
- the jql clause name that was entered by the user, represents the identifier that was used
to find this values generator. Note: for custom fields this can be used to identify the custom field we are
dealing with.valuePrefix
- the portion of the value that has already been provided by the user.maxNumResults
- the maximun number of results to return.Copyright © 2002-2017 Atlassian. All Rights Reserved.