public class

MockFieldConfigScheme

extends Object
implements FieldConfigScheme
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.config.MockFieldConfigScheme

Summary

Public Constructors
MockFieldConfigScheme()
Public Methods
MockFieldConfigScheme addAssociatedProjects(GenericValue gv)
boolean equals(Object o)
@Nonnull Collection<String> getAssociatedIssueTypeIds()
Returns the associated Issue Types.
Collection<IssueType> getAssociatedIssueTypeObjects()
Returns the associated Issue Types.
Set<GenericValue> getAssociatedIssueTypes()
Returns the associated Issue Types.
List<GenericValue> getAssociatedProjectCategories()
List<ProjectCategory> getAssociatedProjectCategoryObjects()
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.
List<GenericValue> getAssociatedProjects()
The associated projects, or an empty list if none associated.
Map<StringFieldConfig> getConfigs()
Returns a Map whose key is a String of issue types and the value is the FieldConfig for that issue type
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 relevent to
String getDescription()
ConfigurableField getField()
Long getId()
String getName()
FieldConfig getOneAndOnlyConfig()
Returns the one and only config for this scheme iff there's only one config associated
int hashCode()
boolean isAllIssueTypes()
boolean isAllProjects()
boolean isBasicMode()
boolean isEnabled()
boolean isGlobal()
boolean isInContext(IssueContext issueContext)
MockFieldConfigScheme setAssociatedProjects(List<GenericValue> values)
MockFieldConfigScheme setId(Long id)
MockFieldConfigScheme setName(String name)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.fields.config.FieldConfigScheme

Public Constructors

public MockFieldConfigScheme ()

Public Methods

public MockFieldConfigScheme addAssociatedProjects (GenericValue gv)

public boolean equals (Object o)

@Nonnull public Collection<String> getAssociatedIssueTypeIds ()

Returns the associated Issue Types.

Returns
  • the associated Issue Types.

public Collection<IssueType> getAssociatedIssueTypeObjects ()

Returns the associated Issue Types.

Returns
  • the associated Issue Types.

public Set<GenericValue> getAssociatedIssueTypes ()

Returns the associated Issue Types.

Returns
  • the associated Issue Types.

public List<GenericValue> getAssociatedProjectCategories ()

public List<ProjectCategory> getAssociatedProjectCategoryObjects ()

public List<Long> getAssociatedProjectIds ()

The associated projectIds, or an empty list if none associated. Note that any null project IDs are removed for compatibility with existing behaviour in getAssociatedProjectObjects().

Returns
  • a not null list.

public List<Project> getAssociatedProjectObjects ()

The associated projects, or an empty list if none associated.

Returns
  • a not null list.

public List<GenericValue> getAssociatedProjects ()

The associated projects, or an empty list if none associated.

Returns
  • a not null list.

public Map<StringFieldConfig> getConfigs ()

Returns a Map whose key is a String of issue types and the value is the FieldConfig for that issue type

Returns
  • Map of FieldConfig keyed by name. Null if nothing associated

public MultiMap getConfigsByConfig ()

Returns a Map whose key is a FieldConfig and values are associated a Collection Issue Type GenericValue

Returns
  • MultiMap of configs.

public List<JiraContextNode> getContexts ()

Returns a list of JiraContextNode objects this scheme is relevent to

Returns

public String getDescription ()

public ConfigurableField getField ()

public Long getId ()

public String getName ()

public FieldConfig getOneAndOnlyConfig ()

Returns the one and only config for this scheme iff there's only one config associated

Returns
  • The associated FieldConfig. Null if no configs, or more than one config

public int hashCode ()

public boolean isAllIssueTypes ()

public boolean isAllProjects ()

public boolean isBasicMode ()

public boolean isEnabled ()

public boolean isGlobal ()

public boolean isInContext (IssueContext issueContext)

public MockFieldConfigScheme setAssociatedProjects (List<GenericValue> values)

public MockFieldConfigScheme setId (Long id)

public MockFieldConfigScheme setName (String name)