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

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

public class FieldConfigSchemeImpl
extends Object
implements FieldConfigScheme


Constructor Summary
FieldConfigSchemeImpl()
           
FieldConfigSchemeImpl(String name, String description)
           
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object o)
           
 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
 int hashCode()
           
 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 setDescription(String description)
           
 void setFieldConfigContextPersister(FieldConfigContextPersister configContextPersister)
          the Persister to get the associated contexts
 void setFieldId(String fieldId)
           
 void setId(Long id)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldConfigSchemeImpl

public FieldConfigSchemeImpl()

FieldConfigSchemeImpl

public FieldConfigSchemeImpl(String name,
                             String description)
Method Detail

getName

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

setName

public void setName(String name)
Specified by:
setName in interface FieldConfigScheme

getDescription

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

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface FieldConfigScheme

getConfigs

public Map getConfigs()
Description copied from interface: FieldConfigScheme
Returns a Map whose key is a GenericValue 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 GenericValue. Null if nothing associated

setConfigs

public void setConfigs(Map configs)
Description copied from interface: FieldConfigScheme
Sets a Map whose key is a GenericValue of issue types and the value is the FieldConfig for that issue type

Specified by:
setConfigs in interface FieldConfigScheme
Parameters:
configs - Map of FieldConfig keyed by GenericValue

getId

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

setId

public void setId(Long id)
Specified by:
setId in interface FieldConfigScheme

getContexts

public List 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. Collections.EMPTY_LIST if no contexts

setFieldConfigContextPersister

public void setFieldConfigContextPersister(FieldConfigContextPersister configContextPersister)
Description copied from interface: FieldConfigScheme
the Persister to get the associated contexts

Specified by:
setFieldConfigContextPersister in interface FieldConfigScheme

setFieldId

public void setFieldId(String fieldId)
Specified by:
setFieldId in interface FieldConfigScheme

getField

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

isInContext

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

getAssociatedProjectCategories

public List getAssociatedProjectCategories()
Specified by:
getAssociatedProjectCategories in interface FieldConfigScheme

getAssociatedProjects

public List getAssociatedProjects()
Specified by:
getAssociatedProjects in interface FieldConfigScheme

getAssociatedIssueTypes

public Set 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

equals

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

compareTo

public int compareTo(Object obj)

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2002-2007 Atlassian. All Rights Reserved.