Class MockFieldConfigurationScheme
java.lang.Object
com.atlassian.jira.mock.issue.fields.layout.field.MockFieldConfigurationScheme
- All Implemented Interfaces:
FieldConfigurationScheme
Mock for
FieldConfigurationScheme that compares equality
based on id and name- Since:
- v4.4
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAllFieldLayoutIds(Collection<String> allIssueTypeIds) Returns the id's of the field layout's represented by FieldConfigurationScheme (i.e.getFieldLayoutId(String issueTypeId) Returns the id of the field layout to use for this given issue type id.getId()getName()inthashCode()setDescription(String description) setIssueTypeToFieldLayoutIdMapping(Map<String, Long> issueTypeToFieldLayoutIdMapping)
-
Constructor Details
-
MockFieldConfigurationScheme
public MockFieldConfigurationScheme() -
MockFieldConfigurationScheme
-
-
Method Details
-
setId
-
setName
-
setDescription
-
getId
- Specified by:
getIdin interfaceFieldConfigurationScheme
-
getName
- Specified by:
getNamein interfaceFieldConfigurationScheme
-
getDescription
- Specified by:
getDescriptionin interfaceFieldConfigurationScheme
-
getFieldLayoutId
Description copied from interface:FieldConfigurationSchemeReturns 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.- Specified by:
getFieldLayoutIdin interfaceFieldConfigurationScheme- Parameters:
issueTypeId- the Issue Type ID.- Returns:
- the id of the
FieldLayout("Field Configuration") to use for this given issue type id.
-
getAllFieldLayoutIds
Description copied from interface:FieldConfigurationSchemeReturns the id's of the field layout's represented by FieldConfigurationScheme (i.e. the layouts associated with this project).- Specified by:
getAllFieldLayoutIdsin interfaceFieldConfigurationScheme- 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.
-
setIssueTypeToFieldLayoutIdMapping
public MockFieldConfigurationScheme setIssueTypeToFieldLayoutIdMapping(Map<String, Long> issueTypeToFieldLayoutIdMapping) -
equals
-
hashCode
public int hashCode()
-