@InjectableComponent public class JqlSelectOptionsUtil extends Object
Constructor and Description |
---|
JqlSelectOptionsUtil(OptionsManager optionsManager,
FieldConfigSchemeManager fieldConfigSchemeManager,
FieldConfigSchemeClauseContextUtil fieldConfigSchemeClauseContextUtil) |
Modifier and Type | Method and Description |
---|---|
Option |
getOptionById(Long optionId) |
List<Option> |
getOptions(CustomField customField,
ApplicationUser user,
QueryLiteral literal,
boolean checkOptionIds)
Returns the options that are represented by the
QueryLiteral that are visible to
the User on the CustomField . |
List<Option> |
getOptions(CustomField customField,
QueryContext queryContext,
QueryLiteral literal,
boolean checkOptionIds)
Returns the options that are represented by the
QueryLiteral that are visible in
the QueryContext for a particular CustomField . |
List<Option> |
getOptions(CustomField customField,
QueryLiteral literal,
boolean checkOptionIds)
Returns all the options possible represented by the
QueryLiteral for a particular CustomField . |
List<Option> |
getOptionsForScheme(FieldConfigScheme fieldConfigScheme)
Retreives all the options for the
FieldConfigScheme . |
public JqlSelectOptionsUtil(OptionsManager optionsManager, FieldConfigSchemeManager fieldConfigSchemeManager, FieldConfigSchemeClauseContextUtil fieldConfigSchemeClauseContextUtil)
public List<Option> getOptions(CustomField customField, QueryContext queryContext, QueryLiteral literal, boolean checkOptionIds)
QueryLiteral
that are visible in
the QueryContext
for a particular CustomField
.customField
- the customField to retreive options fromqueryContext
- the context to check if the Option
s are visible inliteral
- the literal to search for Option
s forcheckOptionIds
- If true, the method tries to resolve long literals to option Ids before option values, and
vice versa for string literals. If false, literals are only resolved to option values.public List<Option> getOptions(CustomField customField, ApplicationUser user, QueryLiteral literal, boolean checkOptionIds)
QueryLiteral
that are visible to
the User
on the CustomField
.customField
- the customField to retreive options fromuser
- the User to check if the option is visible toliteral
- the literal to search for Option
s forcheckOptionIds
- If true, the method tries to resolve long literals to option Ids before option values, and
vice versa for string literals. If false, literals are only resolved to option values.public Option getOptionById(Long optionId)
optionId
- the id of the optionOption
found or null.public List<Option> getOptions(CustomField customField, QueryLiteral literal, boolean checkOptionIds)
QueryLiteral
for a particular CustomField
.customField
- the customField to retreive options fromliteral
- the literal to find options forcheckOptionIds
- If true, the method tries to resolve long literals to option Ids before option values, and
vice versa for string literals. If false, literals are only resolved to option values.public List<Option> getOptionsForScheme(FieldConfigScheme fieldConfigScheme)
FieldConfigScheme
.fieldConfigScheme
- the config scheme to retrieve the options from.FieldConfigScheme
in a mutable List
; never null.Copyright © 2002-2017 Atlassian. All Rights Reserved.