public class DefaultIssueArchiveHelper extends Object implements IssueArchiveHelper
Modifier and Type | Field and Description |
---|---|
static String |
ARCHIVED_CHANGEITEM |
static String |
RESTORED_CHANGEITEM |
Constructor and Description |
---|
DefaultIssueArchiveHelper(IssueManager issueManager,
IssueUpdater issueUpdater,
IssueIndexingService issueIndexingService,
ArchivedStatistics archivedStatistics,
ArchivingLicenseCheck archivingLicenseCheck,
SubTaskManager subTaskManager,
IssueEventManager issueEventManager,
IssueEventBundleFactory issueEventBundleFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
IssueStateAuditHandler issueStateAuditHandler,
EntityVersioningManager entityVersioningManager,
ReplicatedIndexManager replicatedIndexManager) |
Modifier and Type | Method and Description |
---|---|
Issue |
archiveIssue(ApplicationUser user,
Issue issue,
EventDispatchOption eventDispatchOption,
boolean sendMail)
Archive issue in context of given user.
|
protected boolean |
isArchivingAllowed() |
Issue |
restoreIssue(ApplicationUser user,
Issue issue,
EventDispatchOption eventDispatchOption,
boolean sendMail)
Restore issue in context of given user.
|
public static final String ARCHIVED_CHANGEITEM
public static final String RESTORED_CHANGEITEM
public DefaultIssueArchiveHelper(IssueManager issueManager, IssueUpdater issueUpdater, IssueIndexingService issueIndexingService, ArchivedStatistics archivedStatistics, ArchivingLicenseCheck archivingLicenseCheck, SubTaskManager subTaskManager, IssueEventManager issueEventManager, IssueEventBundleFactory issueEventBundleFactory, com.atlassian.event.api.EventPublisher eventPublisher, IssueStateAuditHandler issueStateAuditHandler, EntityVersioningManager entityVersioningManager, ReplicatedIndexManager replicatedIndexManager)
public Issue archiveIssue(ApplicationUser user, Issue issue, EventDispatchOption eventDispatchOption, boolean sendMail) throws ArchiveException
IssueArchiveHelper
archiveIssue
in interface IssueArchiveHelper
user
- user performing the operationissue
- issue to archiveeventDispatchOption
- specifies if an event should be sent and if so which should be sent.sendMail
- whether or not to send the emailArchiveException
public Issue restoreIssue(ApplicationUser user, Issue issue, EventDispatchOption eventDispatchOption, boolean sendMail) throws ArchiveException
IssueArchiveHelper
restoreIssue
in interface IssueArchiveHelper
user
- user performing the operationissue
- issue to archiveeventDispatchOption
- specifies if an event should be sent and if so which should be sent.sendMail
- whether or not to send the emailArchiveException
protected boolean isArchivingAllowed()
Copyright © 2002-2022 Atlassian. All Rights Reserved.