public class MockFieldConfigurationScheme extends Object implements FieldConfigurationScheme
FieldConfigurationScheme
that compares equality
based on id and nameConstructor and Description |
---|
MockFieldConfigurationScheme() |
MockFieldConfigurationScheme(Long id,
String name,
String description) |
Modifier and Type | Method and Description |
---|---|
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<String,Long> issueTypeToFieldLayoutIdMapping) |
MockFieldConfigurationScheme |
setName(String name) |
public MockFieldConfigurationScheme setId(Long id)
public MockFieldConfigurationScheme setName(String name)
public MockFieldConfigurationScheme setDescription(String description)
public Long getId()
getId
in interface FieldConfigurationScheme
public String getName()
getName
in interface FieldConfigurationScheme
public String getDescription()
getDescription
in interface FieldConfigurationScheme
public Long getFieldLayoutId(String issueTypeId)
FieldConfigurationScheme
getFieldLayoutId
in interface FieldConfigurationScheme
issueTypeId
- the Issue Type ID.FieldLayout
("Field Configuration") to use for this given issue type id.public Set<Long> getAllFieldLayoutIds(Collection<String> allIssueTypeIds)
FieldConfigurationScheme
getAllFieldLayoutIds
in interface FieldConfigurationScheme
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.FieldLayout
("Field Configuration") to use for the project this is associcated with.public MockFieldConfigurationScheme setIssueTypeToFieldLayoutIdMapping(Map<String,Long> issueTypeToFieldLayoutIdMapping)
Copyright © 2002-2018 Atlassian. All Rights Reserved.