public class DefaultArchivedIssueService extends Object implements ArchivedIssueService
ArchivedIssueService.ArchivingResult, ArchivedIssueService.ValidationResult
Constructor and Description |
---|
DefaultArchivedIssueService(GlobalPermissionManager globalPermissionManager,
PermissionManager permissionManager,
JiraAuthenticationContext jiraAuthenticationContext,
IssueService issueService,
ArchivingLicenseCheck archivingLicenseCheck,
I18nHelper.BeanFactory i18nFactory,
IssueManager issueManager) |
Modifier and Type | Method and Description |
---|---|
ArchivedIssueService.ArchivingResult |
archiveIssue(ArchivedIssueService.ValidationResult validation)
Mark the issue as archived and perform operation of archiving including all dependencies.
|
boolean |
isArchivingAllowed() |
ArchivedIssueService.ArchivingResult |
restoreIssue(ArchivedIssueService.ValidationResult validation)
Mark the issue as not archived and perform operation of restoring including all dependencies.
|
ArchivedIssueService.ValidationResult |
validateArchiveIssue(ApplicationUser user,
String issueKey,
boolean notifyUsers)
Check if given issue can be archived by given user.
|
ArchivedIssueService.ValidationResult |
validateRestoreIssue(ApplicationUser user,
String issueKey,
boolean notifyUsers)
Check if given issue can be restored by given user.
|
public DefaultArchivedIssueService(GlobalPermissionManager globalPermissionManager, PermissionManager permissionManager, JiraAuthenticationContext jiraAuthenticationContext, IssueService issueService, ArchivingLicenseCheck archivingLicenseCheck, I18nHelper.BeanFactory i18nFactory, IssueManager issueManager)
public ArchivedIssueService.ArchivingResult archiveIssue(ArchivedIssueService.ValidationResult validation)
ArchivedIssueService
IssuesArchivedEvent
.archiveIssue
in interface ArchivedIssueService
validation
- a request previously validated by
ArchivedIssueService.validateArchiveIssue(ApplicationUser, String, boolean)
.public ArchivedIssueService.ValidationResult validateArchiveIssue(ApplicationUser user, String issueKey, boolean notifyUsers)
ArchivedIssueService
validateArchiveIssue
in interface ArchivedIssueService
public ArchivedIssueService.ArchivingResult restoreIssue(ArchivedIssueService.ValidationResult validation)
ArchivedIssueService
IssuesRestoredEvent
.restoreIssue
in interface ArchivedIssueService
validation
- a request previously validated by
ArchivedIssueService.validateRestoreIssue(ApplicationUser, String, boolean)
.public ArchivedIssueService.ValidationResult validateRestoreIssue(ApplicationUser user, String issueKey, boolean notifyUsers)
ArchivedIssueService
validateRestoreIssue
in interface ArchivedIssueService
public boolean isArchivingAllowed()
Copyright © 2002-2022 Atlassian. All Rights Reserved.