|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatusMapperValidator
Validates the automatic mappings that have been created to see if the mappings are relevant in the current JIRA instances setup. This validator makes sure that the statuses that are required:
Method Summary | |
---|---|
boolean |
isStatusValid(java.lang.String oldStatusId,
Status existingStatus,
StatusMapper statusMapper,
IssueTypeMapper issueTypeMapper,
java.lang.String projectKey)
Determines if a Status is valid within the context of the provided project and the provided issue types. |
MessageSet |
validateMappings(I18nHelper i18nHelper,
BackupProject backupProject,
IssueTypeMapper issueTypeMapper,
StatusMapper statusMapper)
Makes sure that the statuses that are required: exist in the current instance are valid for the issue type registered based on the workflow associated with the project being restored |
Method Detail |
---|
MessageSet validateMappings(I18nHelper i18nHelper, BackupProject backupProject, IssueTypeMapper issueTypeMapper, StatusMapper statusMapper)
i18nHelper
- helper bean that allows us to get i18n translationsbackupProject
- is the backup project the data is mapped fromissueTypeMapper
- is the populated issueTypeMapperstatusMapper
- is the populated statusMapper
boolean isStatusValid(java.lang.String oldStatusId, Status existingStatus, StatusMapper statusMapper, IssueTypeMapper issueTypeMapper, java.lang.String projectKey)
oldStatusId
- the status id from the backup fileexistingStatus
- the status object from the new system that may map to the old status, this can be nullstatusMapper
- the status mapper that will provide a list of the associated issue type for the statusissueTypeMapper
- the fully mapped and populated issueTypeMapper that will allow us to map the backup issue
types to existing issue types.projectKey
- the project key that will allow us to find the correct workflow scheme for the project we are
importing into
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |