Class FieldConfigSchemeImpl
java.lang.Object
com.atlassian.jira.issue.fields.config.FieldConfigSchemeImpl
- All Implemented Interfaces:
FieldConfigScheme
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.issue.fields.config.FieldConfigScheme
FieldConfigScheme.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionFieldConfigSchemeImpl
(Long id, String fieldId, String name, String description, Map<String, FieldConfig> configs, FieldConfigContextPersister configContextPersister) -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Returns the ids for the associated Issue Types.Returns 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 aString
of issue types and the value is theFieldConfig
for that issue typeorg.apache.commons.collections.MultiMap
Returns a Map whose key is aFieldConfig
and values are associated aCollection
Issue TypeGenericValue
Returns a list ofJiraContextNode
objects this scheme is relevant togetField()
getId()
getName()
Returns the one and only config for this scheme if there's only one config associated.int
hashCode()
boolean
boolean
boolean
boolean
boolean
isGlobal()
boolean
isInContext
(IssueContext issueContext) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.jira.issue.fields.config.FieldConfigScheme
getAssociatedIssueTypeObjects
-
Constructor Details
-
FieldConfigSchemeImpl
public FieldConfigSchemeImpl(Long id, String fieldId, String name, String description, Map<String, FieldConfig> configs, FieldConfigContextPersister configContextPersister)
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceFieldConfigScheme
-
getDescription
- Specified by:
getDescription
in interfaceFieldConfigScheme
-
getConfigs
Description copied from interface:FieldConfigScheme
Returns a Map whose key is aString
of issue types and the value is theFieldConfig
for that issue type- Specified by:
getConfigs
in interfaceFieldConfigScheme
- Returns:
- Map of
FieldConfig
keyed by name. Null if nothing associated
-
getContexts
Description copied from interface:FieldConfigScheme
Returns a list ofJiraContextNode
objects this scheme is relevant to- Specified by:
getContexts
in interfaceFieldConfigScheme
- Returns:
- list of
JiraContextNode
. an empty list if no contexts
-
getId
- Specified by:
getId
in interfaceFieldConfigScheme
-
getField
- Specified by:
getField
in interfaceFieldConfigScheme
-
isInContext
- Specified by:
isInContext
in interfaceFieldConfigScheme
-
getAssociatedProjectObjects
Description copied from interface:FieldConfigScheme
The associated projects, or an empty list if none associated.- Specified by:
getAssociatedProjectObjects
in interfaceFieldConfigScheme
- Returns:
- a not null list.
- See Also:
-
getAssociatedProjectIds
Description copied from interface:FieldConfigScheme
The associated projectIds, or an empty list if none associated. Note that any null project IDs are removed for compatibility with existing behaviour inFieldConfigScheme.getAssociatedProjectObjects()
.- Specified by:
getAssociatedProjectIds
in interfaceFieldConfigScheme
- Returns:
- a not null list.
- See Also:
-
getAssociatedIssueTypes
Description copied from interface:FieldConfigScheme
Returns the associated Issue Types.- Specified by:
getAssociatedIssueTypes
in interfaceFieldConfigScheme
- Returns:
- the associated Issue Types.
-
getAssociatedIssueTypeIds
Description copied from interface:FieldConfigScheme
Returns the ids for the associated Issue Types.- Specified by:
getAssociatedIssueTypeIds
in interfaceFieldConfigScheme
- Returns:
- ids for the associated Issue Types.
-
isGlobal
public boolean isGlobal()- Specified by:
isGlobal
in interfaceFieldConfigScheme
-
isAllProjects
public boolean isAllProjects()- Specified by:
isAllProjects
in interfaceFieldConfigScheme
-
isAllIssueTypes
public boolean isAllIssueTypes()- Specified by:
isAllIssueTypes
in interfaceFieldConfigScheme
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabled
in interfaceFieldConfigScheme
-
isBasicMode
public boolean isBasicMode()- Specified by:
isBasicMode
in interfaceFieldConfigScheme
-
getConfigsByConfig
public org.apache.commons.collections.MultiMap getConfigsByConfig()Description copied from interface:FieldConfigScheme
Returns a Map whose key is aFieldConfig
and values are associated aCollection
Issue TypeGenericValue
- Specified by:
getConfigsByConfig
in interfaceFieldConfigScheme
- Returns:
- MultiMap of configs.
-
getOneAndOnlyConfig
Description copied from interface:FieldConfigScheme
Returns the one and only config for this scheme if there's only one config associated.- Specified by:
getOneAndOnlyConfig
in interfaceFieldConfigScheme
- Returns:
- The associated
FieldConfig
. Null if no configs, or more than one config
-
equals
-
compareTo
-
hashCode
public int hashCode()
-