public class DefaultArchivedProjectService extends Object implements ArchivedProjectService
ArchivedProjectService.ArchivingResult, ArchivedProjectService.ValidationResult
Constructor and Description |
---|
DefaultArchivedProjectService(ArchivedProjectManager archivedProjectManager,
IssueIndexingService issueIndexingService,
I18nHelper.BeanFactory i18nFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
IssueManager issueManager,
JiraAuthenticationContext jiraAuthenticationContext,
GlobalPermissionManager globalPermissionManager,
ArchivedStatistics archivedStatistics,
ProjectService projectService,
ArchivingLicenseCheck archivingLicenseCheck) |
Modifier and Type | Method and Description |
---|---|
ArchivedProjectService.ArchivingResult |
archiveProject(ArchivedProjectService.ValidationResult validation)
Mark the project as archived and perform operation of archiving including all dependencies.
|
void |
onDataImport(DataImportFinishedEvent event) |
void |
onProjectDeleted(ProjectDeletedEvent event) |
ArchivedProjectService.ArchivingResult |
restoreProject(ArchivedProjectService.ValidationResult validation)
Mark the project as not archived.
|
ArchivedProjectService.ValidationResult |
validateArchiveProject(ApplicationUser user,
String projectKey)
Check if given project can be archived by given user.
|
ArchivedProjectService.ValidationResult |
validateRestoreProject(ApplicationUser user,
String projectKey)
Check if given project can be restored by given user.
|
public DefaultArchivedProjectService(ArchivedProjectManager archivedProjectManager, IssueIndexingService issueIndexingService, I18nHelper.BeanFactory i18nFactory, com.atlassian.event.api.EventPublisher eventPublisher, IssueManager issueManager, JiraAuthenticationContext jiraAuthenticationContext, GlobalPermissionManager globalPermissionManager, ArchivedStatistics archivedStatistics, ProjectService projectService, ArchivingLicenseCheck archivingLicenseCheck)
@EventListener public void onDataImport(DataImportFinishedEvent event)
@EventListener public void onProjectDeleted(ProjectDeletedEvent event)
public ArchivedProjectService.ArchivingResult archiveProject(ArchivedProjectService.ValidationResult validation)
ArchivedProjectService
ProjectArchivedEvent
.archiveProject
in interface ArchivedProjectService
validation
- a request previously validated by
ArchivedProjectService.validateArchiveProject(ApplicationUser, String)
.public ArchivedProjectService.ValidationResult validateArchiveProject(ApplicationUser user, String projectKey)
ArchivedProjectService
validateArchiveProject
in interface ArchivedProjectService
public ArchivedProjectService.ArchivingResult restoreProject(ArchivedProjectService.ValidationResult validation)
ArchivedProjectService
ProjectRestoredEvent
.restoreProject
in interface ArchivedProjectService
validation
- a request previously validated by
ArchivedProjectService.validateRestoreProject(ApplicationUser, String)
.public ArchivedProjectService.ValidationResult validateRestoreProject(ApplicationUser user, String projectKey)
ArchivedProjectService
validateRestoreProject
in interface ArchivedProjectService
Copyright © 2002-2022 Atlassian. All Rights Reserved.