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,
IssueEventManager issueEventManager,
IssueEventBundleFactory issueEventBundleFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
IssueStateAuditHandler issueStateAuditHandler,
EntityVersioningManager entityVersioningManager,
ReplicatedIndexManager replicatedIndexManager,
ArchivingDao archivingDao) |
Modifier and Type | Method and Description |
---|---|
Issue |
archiveIssue(ApplicationUser user,
Issue issue,
EventDispatchOption eventDispatchOption,
boolean sendMail)
Archive issue in context of given user.
|
void |
archiveIssuesInProject(Project project)
Marks all issues in the specified project as archived and de-indexes them.
|
protected boolean |
isArchivingAllowed() |
boolean |
isIssueArchived(Project project,
boolean issueArchivedProperty)
Returns if the issue is archived.
|
Issue |
restoreIssue(ApplicationUser user,
Issue issue,
EventDispatchOption eventDispatchOption,
boolean sendMail)
Restores issue in context of given user.
|
void |
restoreIssuesInProject(Project project)
Restores all issues in the specified project, except the ones that had been individually marked
as archived with
IssueArchiveHelper.archiveIssue(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue, com.atlassian.jira.event.type.EventDispatchOption, boolean) prior to archiving the project with IssueArchiveHelper.archiveIssuesInProject(com.atlassian.jira.project.Project) . |
public static final String ARCHIVED_CHANGEITEM
public static final String RESTORED_CHANGEITEM
public DefaultIssueArchiveHelper(IssueManager issueManager, IssueUpdater issueUpdater, IssueIndexingService issueIndexingService, ArchivedStatistics archivedStatistics, ArchivingLicenseCheck archivingLicenseCheck, IssueEventManager issueEventManager, IssueEventBundleFactory issueEventBundleFactory, com.atlassian.event.api.EventPublisher eventPublisher, IssueStateAuditHandler issueStateAuditHandler, EntityVersioningManager entityVersioningManager, ReplicatedIndexManager replicatedIndexManager, ArchivingDao archivingDao)
public boolean isIssueArchived(Project project, boolean issueArchivedProperty)
IssueArchiveHelper
isIssueArchived
in interface IssueArchiveHelper
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 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 to send the emailArchiveException
public void archiveIssuesInProject(Project project)
IssueArchiveHelper
archiveIssuesInProject
in interface IssueArchiveHelper
project
- project whose issues should be archivedpublic void restoreIssuesInProject(Project project)
IssueArchiveHelper
IssueArchiveHelper.archiveIssue(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.issue.Issue, com.atlassian.jira.event.type.EventDispatchOption, boolean)
prior to archiving the project with IssueArchiveHelper.archiveIssuesInProject(com.atlassian.jira.project.Project)
.
This method does not reindex the restored issues, it just marks them as not archived in the database.restoreIssuesInProject
in interface IssueArchiveHelper
project
- project whose issues should be restoredprotected boolean isArchivingAllowed()
Copyright © 2002-2024 Atlassian. All Rights Reserved.