Interface ErrorCollectionTransformer
- All Known Implementing Classes:
ErrorCollectionTransformerImpl
@ExperimentalApi
public interface ErrorCollectionTransformer
Transforms GreenHopper's
ErrorCollection to JIRA's ErrorCollection.- Since:
- v6.7
-
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.jira.util.ErrorCollectiontoJiraErrorCollection(ErrorCollection errorCollection) Transforms GreenHopper'sErrorCollectionto JIRA'sErrorCollection.com.atlassian.jira.util.ErrorCollectiontoJiraErrorCollection(ErrorCollection errorCollection, com.atlassian.jira.user.ApplicationUser user) Transforms GreenHopper'sErrorCollectionto JIRA'sErrorCollection.
-
Method Details
-
toJiraErrorCollection
com.atlassian.jira.util.ErrorCollection toJiraErrorCollection(ErrorCollection errorCollection, @Nullable com.atlassian.jira.user.ApplicationUser user) Transforms GreenHopper'sErrorCollectionto JIRA'sErrorCollection. GreenHopper'sErrorCollectioncontains keys of errors opposite to theErrorCollectionwhich contains already translated errors. During transformation errors keys are translated to error messages.- Parameters:
errorCollection- GreenHopper'sErrorCollectionwhich be transformed to JIRA'sErrorCollectionuser- user which performed operation. Errors will be translated to his language. If it is null then errors will be translated in JIRA's default language.- Returns:
- JIRA's
ErrorCollection
-
toJiraErrorCollection
Transforms GreenHopper'sErrorCollectionto JIRA'sErrorCollection. GreenHopper'sErrorCollectioncontains keys of errors opposite to theErrorCollectionwhich contains already translated errors. During transformation errors keys are translated to error messages. Errors will be translated to currently logged user's language.- Parameters:
errorCollection- GreenHopper'sErrorCollectionwhich be transformed to JIRA'sErrorCollection- Returns:
- JIRA's
ErrorCollection
-