public class

MockFieldConfigurationScheme

extends Object
implements FieldConfigurationScheme
java.lang.Object
   ↳ com.atlassian.jira.mock.issue.fields.layout.field.MockFieldConfigurationScheme

Class Overview

Mock for FieldConfigurationScheme that compares equality based on id and name

Summary

Public Constructors
MockFieldConfigurationScheme()
MockFieldConfigurationScheme(Long id, String name, String description)
Public Methods
boolean equals(Object o)
Set<Long> getAllFieldLayoutIds(Collection<String> allIssueTypeIds)
Returns the id's of the field layout's represented by FieldConfigurationScheme (i.e.
String getDescription()
Long getFieldLayoutId(String issueTypeId)
Returns the id of the field layout to use for this given issue type id.
Long getId()
String getName()
int hashCode()
MockFieldConfigurationScheme setDescription(String description)
MockFieldConfigurationScheme setId(Long id)
MockFieldConfigurationScheme setIssueTypeToFieldLayoutIdMapping(Map<StringLong> issueTypeToFieldLayoutIdMapping)
MockFieldConfigurationScheme setName(String name)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.fields.layout.field.FieldConfigurationScheme

Public Constructors

public MockFieldConfigurationScheme ()

public MockFieldConfigurationScheme (Long id, String name, String description)

Public Methods

public boolean equals (Object o)

public Set<Long> getAllFieldLayoutIds (Collection<String> allIssueTypeIds)

Returns the id's of the field layout's represented by FieldConfigurationScheme (i.e. the layouts associated with this project).

Parameters
allIssueTypeIds all the issue type id's that are in the system. This is used to determine if we need to return the layout for the default, if we have all the issue types mapped in the system then we do not care about the default since it is never used.
Returns
  • the id's of the FieldLayout ("Field Configuration") to use for the project this is associcated with.

public String getDescription ()

public Long getFieldLayoutId (String issueTypeId)

Returns the id of the field layout to use for this given issue type id. This will do all the necessary work to lookup the default entry if no specific mapping for the given isuse type id exists. So after calling this method simply use the returned field layout id.

Parameters
issueTypeId the Issue Type ID.
Returns
  • the id of the FieldLayout ("Field Configuration") to use for this given issue type id.

public Long getId ()

public String getName ()

public int hashCode ()

public MockFieldConfigurationScheme setDescription (String description)

public MockFieldConfigurationScheme setIssueTypeToFieldLayoutIdMapping (Map<StringLong> issueTypeToFieldLayoutIdMapping)

public MockFieldConfigurationScheme setName (String name)