Class ErrorCollectionTransformerImpl
java.lang.Object
com.atlassian.greenhopper.model.validation.ErrorCollectionTransformerImpl
- All Implemented Interfaces:
ErrorCollectionTransformer
-
Constructor Summary
ConstructorsConstructorDescriptionErrorCollectionTransformerImpl(I18nFactoryService i18nFactoryService, com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext) -
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.
-
Constructor Details
-
ErrorCollectionTransformerImpl
public ErrorCollectionTransformerImpl(I18nFactoryService i18nFactoryService, com.atlassian.jira.security.JiraAuthenticationContext jiraAuthenticationContext)
-
-
Method Details
-
toJiraErrorCollection
public com.atlassian.jira.util.ErrorCollection toJiraErrorCollection(ErrorCollection errorCollection, com.atlassian.jira.user.ApplicationUser user) Description copied from interface:ErrorCollectionTransformerTransforms 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.- Specified by:
toJiraErrorCollectionin interfaceErrorCollectionTransformer- 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
public com.atlassian.jira.util.ErrorCollection toJiraErrorCollection(ErrorCollection errorCollection) Description copied from interface:ErrorCollectionTransformerTransforms 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.- Specified by:
toJiraErrorCollectionin interfaceErrorCollectionTransformer- Parameters:
errorCollection- GreenHopper'sErrorCollectionwhich be transformed to JIRA'sErrorCollection- Returns:
- JIRA's
ErrorCollection
-