|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.imports.project.mapper.AbstractMapper com.atlassian.jira.imports.project.mapper.CustomFieldMapper
public class CustomFieldMapper
Mapper for Custom Fields. This Mapper collects information about which custom fields are "in-use" in the backup projects data. The mapper also records what the issue type is for the issue's which contain the custom field data.
Constructor Summary | |
---|---|
CustomFieldMapper()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
void |
flagIssueTypeInUse(String oldIssueId,
String oldIssueTypeId)
This method is called when we parse the |
void |
flagValueAsRequired(String oldCustomFieldId,
String oldIssueId)
This method is called when we parse the |
String |
getIssueTypeForIssue(String issueId)
Get the issue type in use for the provided issue id. |
Collection |
getIssueTypeIdsForRequiredCustomField(String customFieldId)
Will return a collection of issue type ids that are in use on issues that have values for the specified custom field id. |
int |
hashCode()
|
void |
ignoreCustomField(String customFieldId)
|
boolean |
isIgnoredCustomField(String customFieldId)
|
void |
registerIssueTypesInUse()
Associates issue types to custom fields. |
void |
registerOldValue(String oldId,
String oldKey)
This is an internal method for use by Mappers extending AbstractMapper and should not be called from other classes. |
String |
toString()
|
Methods inherited from class com.atlassian.jira.imports.project.mapper.AbstractMapper |
---|
clearMappedValues, flagValueAsRequired, getAllMappedIds, getDisplayName, getKey, getMappedId, getRegisteredOldIds, getRequiredOldIds, getValuesFromImport, mapValue |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.imports.project.mapper.ProjectImportIdMapper |
---|
clearMappedValues, getAllMappedIds, getDisplayName, getKey, getMappedId, getRegisteredOldIds, getRequiredOldIds, getValuesFromImport, mapValue |
Constructor Detail |
---|
public CustomFieldMapper()
Method Detail |
---|
public Collection getIssueTypeIdsForRequiredCustomField(String customFieldId)
customFieldId
- the custom field id
public void flagValueAsRequired(String oldCustomFieldId, String oldIssueId)
registerIssueTypesInUse()
method should be called to associate issuetypes
to custom fields.
oldCustomFieldId
- The old CustomFieldId from the backup XML.oldIssueId
- The old issue ID from the backup XML.flagIssueTypeInUse(String, String)
public void flagIssueTypeInUse(String oldIssueId, String oldIssueTypeId)
registerIssueTypesInUse()
method.
oldIssueId
- The old issue ID from the backup XML.oldIssueTypeId
- The old issue type ID from the backup XML.flagValueAsRequired(String, String)
public void registerIssueTypesInUse()
public void registerOldValue(String oldId, String oldKey)
AbstractMapper
registerOldValue
in class AbstractMapper
oldId
- The ID of the required object from the import file.oldKey
- The unique key of the required object from the import file.public String getIssueTypeForIssue(String issueId)
issueId
- the issue id whose issue type you want to find
flagIssueTypeInUse(String, String)
public boolean isIgnoredCustomField(String customFieldId)
public void ignoreCustomField(String customFieldId)
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |