Package com.atlassian.jira.bc.issue
Class CloneIssueCommand.CloneIssueResult
java.lang.Object
com.atlassian.jira.bc.issue.CloneIssueCommand.CloneIssueResult
- All Implemented Interfaces:
Serializable
- Enclosing class:
CloneIssueCommand
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCloneIssueResult(String issueKey, ErrorCollection errorCollection, Collection<io.atlassian.fugue.Either<AttachmentError, Attachment>> attachmentCloneResults) CloneIssueResult(String issueKey, Collection<io.atlassian.fugue.Either<AttachmentError, Attachment>> attachmentCloneResults) -
Method Summary
Modifier and TypeMethodDescriptionlonglongboolean
-
Constructor Details
-
CloneIssueResult
public CloneIssueResult(@Nullable String issueKey, @Nonnull ErrorCollection errorCollection, @Nonnull Collection<io.atlassian.fugue.Either<AttachmentError, Attachment>> attachmentCloneResults) - Parameters:
issueKey- the issue keyerrorCollection- an error collection representing any errors that occurred during the cloneattachmentCloneResults- a collection of attachment clone results
-
CloneIssueResult
public CloneIssueResult(@Nullable String issueKey, @Nonnull Collection<io.atlassian.fugue.Either<AttachmentError, Attachment>> attachmentCloneResults) - Parameters:
issueKey- the issue keyattachmentCloneResults- a collection of attachment clone results
-
-
Method Details
-
getIssueKey
-
getErrorCollection
-
isSuccessful
public boolean isSuccessful() -
getAttachmentCloneErrorCount
public long getAttachmentCloneErrorCount()- Returns:
- the number of attachments that could not be cloned due to errors
-
getAttachmentCloneCount
public long getAttachmentCloneCount()- Returns:
- the total number of attachments that were attempted to be cloned
-