com.atlassian.jira.imports.project.core
Class MappingResult

java.lang.Object
  extended by com.atlassian.jira.imports.project.core.MappingResult

public class MappingResult
extends java.lang.Object

A kitchen-sink-like object that passes back the project import data and any messages that validation may want to communicate.

Since:
v3.13

Nested Class Summary
static class MappingResult.ValidationMessage
           
 
Constructor Summary
MappingResult()
           
 
Method Summary
 boolean canImport()
          Returns true if all the validation has passed.
 MessageSet getCustomFieldMessageSet()
           
 java.util.List<MappingResult.ValidationMessage> getCustomFieldsMessageList()
           
 java.util.Map<java.lang.String,MessageSet> getCustomFieldValueMessageSets()
          Returns a Map keyed on the CustomField, with a MessageSet for each Custom Field containing any
 MessageSet getFileAttachmentMessageSet()
           
 MessageSet getGroupMessageSet()
           
 MessageSet getIssueLinkTypeMessageSet()
           
 MessageSet getIssueSecurityLevelMessageSet()
           
 MessageSet getIssueTypeMessageSet()
           
 MessageSet getPriorityMessageSet()
           
 MessageSet getProjectRoleActorMessageSet()
           
 MessageSet getProjectRoleMessageSet()
           
 MessageSet getResolutionMessageSet()
           
 MessageSet getStatusMessageSet()
           
 java.util.List<MappingResult.ValidationMessage> getSystemFieldsMessageList()
           
 MessageSet getUserMessageSet()
           
 boolean hasAnyCustomFieldValueErrors()
           
 void setCustomFieldMessageSet(MessageSet customFieldMessageSet)
           
 void setCustomFieldsMessageList(java.util.List<MappingResult.ValidationMessage> customFieldsMessageList)
           
 void setCustomFieldValueMessageSets(java.util.Map<java.lang.String,MessageSet> customFieldValueMessageSets)
           
 void setFileAttachmentMessageSet(MessageSet fileAttachmentMessageSet)
           
 void setGroupMessageSet(MessageSet groupMessageSet)
           
 void setIssueLinkTypeMessageSet(MessageSet issueLinkTypeMessageSet)
           
 void setIssueSecurityLevelMessageSet(MessageSet issueSecurityLevelMessageSet)
           
 void setIssueTypeMessageSet(MessageSet issueTypeMessageSet)
           
 void setPriorityMessageSet(MessageSet priorityMessageSet)
           
 void setProjectRoleActorMessageSet(MessageSet projectRoleActorMessageSet)
           
 void setProjectRoleMessageSet(MessageSet projectRoleMessageSet)
           
 void setResolutionMessageSet(MessageSet resolutionMessageSet)
           
 void setStatusMessageSet(MessageSet statusMessageSet)
           
 void setSystemFieldsMessageList(java.util.List<MappingResult.ValidationMessage> messageList)
           
 void setUserMessageSet(MessageSet userMessageSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingResult

public MappingResult()
Method Detail

canImport

public boolean canImport()
Returns true if all the validation has passed.

Returns:
true if all the validation has passed.

hasAnyCustomFieldValueErrors

public boolean hasAnyCustomFieldValueErrors()

getIssueTypeMessageSet

public MessageSet getIssueTypeMessageSet()

setIssueTypeMessageSet

public void setIssueTypeMessageSet(MessageSet issueTypeMessageSet)

getCustomFieldMessageSet

public MessageSet getCustomFieldMessageSet()

setCustomFieldMessageSet

public void setCustomFieldMessageSet(MessageSet customFieldMessageSet)

getPriorityMessageSet

public MessageSet getPriorityMessageSet()

setPriorityMessageSet

public void setPriorityMessageSet(MessageSet priorityMessageSet)

getResolutionMessageSet

public MessageSet getResolutionMessageSet()

setResolutionMessageSet

public void setResolutionMessageSet(MessageSet resolutionMessageSet)

getStatusMessageSet

public MessageSet getStatusMessageSet()

setStatusMessageSet

public void setStatusMessageSet(MessageSet statusMessageSet)

getProjectRoleMessageSet

public MessageSet getProjectRoleMessageSet()

getGroupMessageSet

public MessageSet getGroupMessageSet()

setGroupMessageSet

public void setGroupMessageSet(MessageSet groupMessageSet)

getIssueLinkTypeMessageSet

public MessageSet getIssueLinkTypeMessageSet()

setIssueLinkTypeMessageSet

public void setIssueLinkTypeMessageSet(MessageSet issueLinkTypeMessageSet)

setProjectRoleMessageSet

public void setProjectRoleMessageSet(MessageSet projectRoleMessageSet)

setProjectRoleActorMessageSet

public void setProjectRoleActorMessageSet(MessageSet projectRoleActorMessageSet)

getProjectRoleActorMessageSet

public MessageSet getProjectRoleActorMessageSet()

getFileAttachmentMessageSet

public MessageSet getFileAttachmentMessageSet()

setFileAttachmentMessageSet

public void setFileAttachmentMessageSet(MessageSet fileAttachmentMessageSet)

getUserMessageSet

public MessageSet getUserMessageSet()

setUserMessageSet

public void setUserMessageSet(MessageSet userMessageSet)

getIssueSecurityLevelMessageSet

public MessageSet getIssueSecurityLevelMessageSet()

setIssueSecurityLevelMessageSet

public void setIssueSecurityLevelMessageSet(MessageSet issueSecurityLevelMessageSet)

getCustomFieldValueMessageSets

public java.util.Map<java.lang.String,MessageSet> getCustomFieldValueMessageSets()
Returns a Map keyed on the CustomField, with a MessageSet for each Custom Field containing any

Returns:
a Map keyed on the CustomField, with a MessageSet for each Custom Field containing any

setCustomFieldValueMessageSets

public void setCustomFieldValueMessageSets(java.util.Map<java.lang.String,MessageSet> customFieldValueMessageSets)

getSystemFieldsMessageList

public java.util.List<MappingResult.ValidationMessage> getSystemFieldsMessageList()

setSystemFieldsMessageList

public void setSystemFieldsMessageList(java.util.List<MappingResult.ValidationMessage> messageList)

getCustomFieldsMessageList

public java.util.List<MappingResult.ValidationMessage> getCustomFieldsMessageList()

setCustomFieldsMessageList

public void setCustomFieldsMessageList(java.util.List<MappingResult.ValidationMessage> customFieldsMessageList)


Copyright © 2002-2010 Atlassian. All Rights Reserved.