@Internal public class FieldConfigSchemeImpl extends Object implements FieldConfigScheme
FieldConfigScheme.Builder
Constructor and Description |
---|
FieldConfigSchemeImpl(Long id,
String fieldId,
String name,
String description,
Map<String,FieldConfig> configs,
FieldConfigContextPersister configContextPersister) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj) |
boolean |
equals(Object o) |
Collection<String> |
getAssociatedIssueTypeIds()
Returns the associated Issue Types.
|
Collection<IssueType> |
getAssociatedIssueTypes()
Returns the associated Issue Types.
|
List<Long> |
getAssociatedProjectIds()
The associated projectIds, or an empty list if none associated.
|
List<Project> |
getAssociatedProjectObjects()
The associated projects, or an empty list if none associated.
|
Map<String,FieldConfig> |
getConfigs()
Returns a Map whose key is a
String of issue types and the value is the FieldConfig
for that issue type |
org.apache.commons.collections.MultiMap |
getConfigsByConfig()
Returns a Map whose key is a
FieldConfig and values are associated a Collection Issue Type GenericValue |
List<JiraContextNode> |
getContexts()
Returns a list of
JiraContextNode objects this scheme is relevant to |
String |
getDescription() |
ConfigurableField<?> |
getField() |
Long |
getId() |
String |
getName() |
FieldConfig |
getOneAndOnlyConfig()
Returns the one and only config for this scheme if there's only one config associated.
|
int |
hashCode() |
boolean |
isAllIssueTypes() |
boolean |
isAllProjects() |
boolean |
isBasicMode() |
boolean |
isEnabled() |
boolean |
isGlobal() |
boolean |
isInContext(IssueContext issueContext) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getAssociatedIssueTypeObjects
public FieldConfigSchemeImpl(Long id, String fieldId, String name, String description, Map<String,FieldConfig> configs, FieldConfigContextPersister configContextPersister)
public String getName()
getName
in interface FieldConfigScheme
public String getDescription()
getDescription
in interface FieldConfigScheme
public Map<String,FieldConfig> getConfigs()
FieldConfigScheme
String
of issue types and the value is the FieldConfig
for that issue typegetConfigs
in interface FieldConfigScheme
FieldConfig
keyed by name. Null if nothing associatedpublic List<JiraContextNode> getContexts()
FieldConfigScheme
JiraContextNode
objects this scheme is relevant togetContexts
in interface FieldConfigScheme
JiraContextNode
. an empty list if no contextspublic Long getId()
getId
in interface FieldConfigScheme
public ConfigurableField<?> getField()
getField
in interface FieldConfigScheme
public boolean isInContext(IssueContext issueContext)
isInContext
in interface FieldConfigScheme
public List<Project> getAssociatedProjectObjects()
FieldConfigScheme
getAssociatedProjectObjects
in interface FieldConfigScheme
FieldConfigScheme.getAssociatedProjectIds()
@Nonnull public List<Long> getAssociatedProjectIds()
FieldConfigScheme
FieldConfigScheme.getAssociatedProjectObjects()
.getAssociatedProjectIds
in interface FieldConfigScheme
FieldConfigScheme.getAssociatedProjectObjects()
public Collection<IssueType> getAssociatedIssueTypes()
FieldConfigScheme
getAssociatedIssueTypes
in interface FieldConfigScheme
@Nonnull public Collection<String> getAssociatedIssueTypeIds()
FieldConfigScheme
getAssociatedIssueTypeIds
in interface FieldConfigScheme
public boolean isGlobal()
isGlobal
in interface FieldConfigScheme
public boolean isAllProjects()
isAllProjects
in interface FieldConfigScheme
public boolean isAllIssueTypes()
isAllIssueTypes
in interface FieldConfigScheme
public boolean isEnabled()
isEnabled
in interface FieldConfigScheme
public boolean isBasicMode()
isBasicMode
in interface FieldConfigScheme
public org.apache.commons.collections.MultiMap getConfigsByConfig()
FieldConfigScheme
FieldConfig
and values are associated a Collection
Issue Type GenericValue
getConfigsByConfig
in interface FieldConfigScheme
@Nullable public FieldConfig getOneAndOnlyConfig()
FieldConfigScheme
getOneAndOnlyConfig
in interface FieldConfigScheme
FieldConfig
. Null if no configs, or more than one configpublic int compareTo(Object obj)
Copyright © 2002-2018 Atlassian. All Rights Reserved.