Interface FieldConfigScheme
- All Known Implementing Classes:
FieldConfigSchemeImpl,MockFieldConfigScheme
@PublicApi
public interface FieldConfigScheme
A field config scheme is a set of
FieldConfig objects that has been associated to a particular set of IssueTypes
and then associated to a series of contexts (JiraContextNode). Methods return List will generally return nulls
unless specified.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionReturns the ids for the associated Issue Types.default Collection<IssueType>Deprecated.Since v7.0Returns the associated Issue Types.The associated projectIds, or an empty list if none associated.The associated projects, or an empty list if none associated.Returns a Map whose key is aStringof issue types and the value is theFieldConfigfor that issue typeorg.apache.commons.collections.MultiMapReturns a Map whose key is aFieldConfigand values are associated aCollectionIssue TypeGenericValueReturns a list ofJiraContextNodeobjects this scheme is relevant togetField()getId()getName()Returns the one and only config for this scheme if there's only one config associated.booleanbooleanbooleanbooleanbooleanisGlobal()booleanisInContext(IssueContext issueContext)
-
Method Details
-
getName
String getName() -
getDescription
String getDescription() -
getConfigs
Map<String,FieldConfig> getConfigs()Returns a Map whose key is aStringof issue types and the value is theFieldConfigfor that issue type- Returns:
- Map of
FieldConfigkeyed by name. Null if nothing associated
-
getId
Long getId() -
getContexts
List<JiraContextNode> getContexts()Returns a list ofJiraContextNodeobjects this scheme is relevant to- Returns:
- list of
JiraContextNode. an empty list if no contexts
-
isInContext
-
getAssociatedProjectObjects
The associated projects, or an empty list if none associated.- Returns:
- a not null list.
- See Also:
-
getAssociatedProjectIds
The associated projectIds, or an empty list if none associated. Note that any null project IDs are removed for compatibility with existing behaviour ingetAssociatedProjectObjects().- Returns:
- a not null list.
- See Also:
-
getAssociatedIssueTypes
Collection<IssueType> getAssociatedIssueTypes()Returns the associated Issue Types.- Returns:
- the associated Issue Types.
-
getAssociatedIssueTypeObjects
Deprecated.Since v7.0Returns the associated Issue Types.- Returns:
- the associated Issue Types.
-
getAssociatedIssueTypeIds
Returns the ids for the associated Issue Types.- Returns:
- ids for the associated Issue Types.
-
isGlobal
boolean isGlobal() -
isAllProjects
boolean isAllProjects() -
isAllIssueTypes
boolean isAllIssueTypes() -
isEnabled
boolean isEnabled() -
isBasicMode
boolean isBasicMode() -
getConfigsByConfig
org.apache.commons.collections.MultiMap getConfigsByConfig()Returns a Map whose key is aFieldConfigand values are associated aCollectionIssue TypeGenericValue- Returns:
- MultiMap of configs.
-
getOneAndOnlyConfig
Returns the one and only config for this scheme if there's only one config associated.- Returns:
- The associated
FieldConfig. Null if no configs, or more than one config
-
getField
ConfigurableField<?> getField()
-