com.atlassian.jira.issue.fields.config
Class MockFieldConfigScheme

java.lang.Object
  extended by com.atlassian.jira.issue.fields.config.MockFieldConfigScheme
All Implemented Interfaces:
FieldConfigScheme

public class MockFieldConfigScheme
extends Object
implements FieldConfigScheme

Since:
v4.4

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.issue.fields.config.FieldConfigScheme
FieldConfigScheme.Builder
 
Constructor Summary
MockFieldConfigScheme()
           
 
Method Summary
 MockFieldConfigScheme addAssociatedProjects(org.ofbiz.core.entity.GenericValue gv)
           
 boolean equals(Object o)
           
 Set<org.ofbiz.core.entity.GenericValue> getAssociatedIssueTypes()
           
 List<org.ofbiz.core.entity.GenericValue> getAssociatedProjectCategories()
           
 List<org.ofbiz.core.entity.GenericValue> getAssociatedProjects()
          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 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<org.ofbiz.core.entity.GenericValue> values)
           
 MockFieldConfigScheme setId(Long id)
           
 MockFieldConfigScheme setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockFieldConfigScheme

public MockFieldConfigScheme()
Method Detail

getName

public String getName()
Specified by:
getName in interface FieldConfigScheme

setName

public MockFieldConfigScheme setName(String name)

getDescription

public String getDescription()
Specified by:
getDescription in interface FieldConfigScheme

getConfigs

public Map<String,FieldConfig> getConfigs()
Description copied from interface: FieldConfigScheme
Returns a Map whose key is a String of issue types and the value is the FieldConfig for that issue type

Specified by:
getConfigs in interface FieldConfigScheme
Returns:
Map of FieldConfig keyed by name. Null if nothing associated

getId

public Long getId()
Specified by:
getId in interface FieldConfigScheme

setId

public MockFieldConfigScheme setId(Long id)

getContexts

public List<JiraContextNode> getContexts()
Description copied from interface: FieldConfigScheme
Returns a list of JiraContextNode objects this scheme is relevent to

Specified by:
getContexts in interface FieldConfigScheme
Returns:
list of JiraContextNode. an empty list if no contexts

isInContext

public boolean isInContext(IssueContext issueContext)
Specified by:
isInContext in interface FieldConfigScheme

getAssociatedProjectCategories

public List<org.ofbiz.core.entity.GenericValue> getAssociatedProjectCategories()
Specified by:
getAssociatedProjectCategories in interface FieldConfigScheme

setAssociatedProjects

public MockFieldConfigScheme setAssociatedProjects(List<org.ofbiz.core.entity.GenericValue> values)

addAssociatedProjects

public MockFieldConfigScheme addAssociatedProjects(org.ofbiz.core.entity.GenericValue gv)

getAssociatedProjects

public List<org.ofbiz.core.entity.GenericValue> getAssociatedProjects()
Description copied from interface: FieldConfigScheme
The associated projects, or an empty list if none associated.

Specified by:
getAssociatedProjects in interface FieldConfigScheme
Returns:
a not null list.

getAssociatedIssueTypes

public Set<org.ofbiz.core.entity.GenericValue> getAssociatedIssueTypes()
Specified by:
getAssociatedIssueTypes in interface FieldConfigScheme

isGlobal

public boolean isGlobal()
Specified by:
isGlobal in interface FieldConfigScheme

isAllProjects

public boolean isAllProjects()
Specified by:
isAllProjects in interface FieldConfigScheme

isAllIssueTypes

public boolean isAllIssueTypes()
Specified by:
isAllIssueTypes in interface FieldConfigScheme

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface FieldConfigScheme

isBasicMode

public boolean isBasicMode()
Specified by:
isBasicMode in interface FieldConfigScheme

getConfigsByConfig

public org.apache.commons.collections.MultiMap getConfigsByConfig()
Description copied from interface: FieldConfigScheme
Returns a Map whose key is a FieldConfig and values are associated a Collection Issue Type GenericValue

Specified by:
getConfigsByConfig in interface FieldConfigScheme
Returns:
MultiMap of configs.

getOneAndOnlyConfig

public FieldConfig getOneAndOnlyConfig()
Description copied from interface: FieldConfigScheme
Returns the one and only config for this scheme iff there's only one config associated

Specified by:
getOneAndOnlyConfig in interface FieldConfigScheme
Returns:
The associated FieldConfig. Null if no configs, or more than one config

getField

public ConfigurableField getField()
Specified by:
getField in interface FieldConfigScheme

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2011 Atlassian. All Rights Reserved.