public class MockFieldConfigScheme extends Object implements FieldConfigScheme
FieldConfigScheme.Builder
Constructor and Description |
---|
MockFieldConfigScheme() |
Modifier and Type | Method and Description |
---|---|
MockFieldConfigScheme |
addAssociatedProjects(Project project) |
boolean |
equals(Object o) |
Collection<String> |
getAssociatedIssueTypeIds()
Returns the associated Issue Types.
|
Collection<IssueType> |
getAssociatedIssueTypeObjects()
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) |
MockFieldConfigScheme |
setId(Long id) |
MockFieldConfigScheme |
setName(String name) |
public String getName()
getName
in interface FieldConfigScheme
public MockFieldConfigScheme setName(String name)
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 Long getId()
getId
in interface FieldConfigScheme
public MockFieldConfigScheme setId(Long id)
public List<JiraContextNode> getContexts()
FieldConfigScheme
JiraContextNode
objects this scheme is relevant togetContexts
in interface FieldConfigScheme
JiraContextNode
. an empty list if no contextspublic boolean isInContext(IssueContext issueContext)
isInContext
in interface FieldConfigScheme
public MockFieldConfigScheme addAssociatedProjects(Project project)
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
public Collection<IssueType> getAssociatedIssueTypeObjects()
FieldConfigScheme
getAssociatedIssueTypeObjects
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
public FieldConfig getOneAndOnlyConfig()
FieldConfigScheme
getOneAndOnlyConfig
in interface FieldConfigScheme
FieldConfig
. Null if no configs, or more than one configpublic ConfigurableField getField()
getField
in interface FieldConfigScheme
Copyright © 2002-2018 Atlassian. All Rights Reserved.