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

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

@Internal
public class FieldConfigSchemeImpl
extends Object
implements FieldConfigScheme


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.jira.issue.fields.config.FieldConfigScheme
FieldConfigScheme.Builder
 
Constructor Summary
FieldConfigSchemeImpl(Long id, String fieldId, String name, String description, Map<String,FieldConfig> configs, FieldConfigContextPersister configContextPersister)
           
 
Method Summary
 int compareTo(Object obj)
           
 boolean equals(Object o)
           
 Collection<String> getAssociatedIssueTypeIds()
          Returns the associated Issue Types.
 Collection<IssueType> getAssociatedIssueTypeObjects()
          Returns the associated Issue Types.
 Set<org.ofbiz.core.entity.GenericValue> getAssociatedIssueTypes()
          Returns the associated Issue Types.
 List<org.ofbiz.core.entity.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<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)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldConfigSchemeImpl

public FieldConfigSchemeImpl(Long id,
                             String fieldId,
                             String name,
                             String description,
                             Map<String,FieldConfig> configs,
                             FieldConfigContextPersister configContextPersister)
Method Detail

getName

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

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

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

getId

public Long getId()
Specified by:
getId 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<org.ofbiz.core.entity.GenericValue> getAssociatedProjectCategories()
Specified by:
getAssociatedProjectCategories in interface FieldConfigScheme

getAssociatedProjectCategoryObjects

public List<ProjectCategory> getAssociatedProjectCategoryObjects()
Specified by:
getAssociatedProjectCategoryObjects in interface FieldConfigScheme

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.

getAssociatedProjectObjects

public List<Project> getAssociatedProjectObjects()
Description copied from interface: FieldConfigScheme
The associated projects, or an empty list if none associated.

Specified by:
getAssociatedProjectObjects in interface FieldConfigScheme
Returns:
a not null list.
See Also:
FieldConfigScheme.getAssociatedProjectIds()

getAssociatedProjectIds

@Nonnull
public List<Long> getAssociatedProjectIds()
Description copied from interface: FieldConfigScheme
The associated projectIds, or an empty list if none associated. Note that any null project IDs are removed for compatibility with existing behaviour in FieldConfigScheme.getAssociatedProjectObjects().

Specified by:
getAssociatedProjectIds in interface FieldConfigScheme
Returns:
a not null list.
See Also:
FieldConfigScheme.getAssociatedProjectObjects()

getAssociatedIssueTypes

public Set<org.ofbiz.core.entity.GenericValue> getAssociatedIssueTypes()
Description copied from interface: FieldConfigScheme
Returns the associated Issue Types.

Specified by:
getAssociatedIssueTypes in interface FieldConfigScheme
Returns:
the associated Issue Types.

getAssociatedIssueTypeObjects

public Collection<IssueType> getAssociatedIssueTypeObjects()
Description copied from interface: FieldConfigScheme
Returns the associated Issue Types.

Specified by:
getAssociatedIssueTypeObjects in interface FieldConfigScheme
Returns:
the associated Issue Types.

getAssociatedIssueTypeIds

@Nonnull
public Collection<String> getAssociatedIssueTypeIds()
Description copied from interface: FieldConfigScheme
Returns the associated Issue Types.

Specified by:
getAssociatedIssueTypeIds in interface FieldConfigScheme
Returns:
the associated Issue Types.

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-2014 Atlassian. All Rights Reserved.