com.atlassian.jira.issue.fields.config
Interface FieldConfigScheme

All Known Implementing Classes:
FieldConfigSchemeImpl

public interface FieldConfigScheme

A field config scheme is a set of FieldConfig objects that has been associated to a particular set of IssueTypes and then associated to a series of contexts (JiraContextNode). Methods return List will generally return nulls unless specified.


Method Summary
 Set getAssociatedIssueTypes()
           
 List getAssociatedProjectCategories()
           
 List getAssociatedProjects()
           
 Map getConfigs()
          Returns a Map whose key is a GenericValue 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 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
 boolean isAllIssueTypes()
           
 boolean isAllProjects()
           
 boolean isBasicMode()
           
 boolean isEnabled()
           
 boolean isGlobal()
           
 boolean isInContext(IssueContext issueContext)
           
 void setConfigs(Map configs)
          Sets a Map whose key is a GenericValue of issue types and the value is the FieldConfig for that issue type
 void setContexts(List applicableContexts)
          Sets the available cotext
 void setDescription(String description)
           
 void setFieldId(String fieldId)
           
 void setId(Long id)
           
 void setName(String name)
           
 

Method Detail

getName

public String getName()

setName

public void setName(String name)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getConfigs

public Map getConfigs()
Returns a Map whose key is a GenericValue of issue types and the value is the FieldConfig for that issue type

Returns:
Map of FieldConfig keyed by GenericValue. Null if nothing associated

setConfigs

public void setConfigs(Map configs)
Sets a Map whose key is a GenericValue of issue types and the value is the FieldConfig for that issue type

Parameters:
configs - Map of FieldConfig keyed by GenericValue

getId

public Long getId()

setId

public void setId(Long id)

getContexts

public List getContexts()
Returns a list of JiraContextNode objects this scheme is relevent to

Returns:
list of JiraContextNode. Collections.EMPTY_LIST if no contexts

setContexts

public void setContexts(List applicableContexts)
Sets the available cotext

Parameters:
applicableContexts - list of JiraContextNode

isInContext

public boolean isInContext(IssueContext issueContext)

getAssociatedProjectCategories

public List getAssociatedProjectCategories()

getAssociatedProjects

public List getAssociatedProjects()

getAssociatedIssueTypes

public Set getAssociatedIssueTypes()

isGlobal

public boolean isGlobal()

isAllProjects

public boolean isAllProjects()

isAllIssueTypes

public boolean isAllIssueTypes()

isEnabled

public boolean isEnabled()

isBasicMode

public boolean isBasicMode()

getConfigsByConfig

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

Returns:
MultiMap of configs.

getOneAndOnlyConfig

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

setFieldId

public void setFieldId(String fieldId)

getField

public ConfigurableField getField()


Copyright © 2002-2007 Atlassian. All Rights Reserved.