@ExperimentalApi
public interface ArchivedProjectService
Modifier and Type | Interface and Description |
---|---|
static class |
ArchivedProjectService.ArchivingResult
A simple object that holds the information about an project archive/restore operation.
|
static class |
ArchivedProjectService.ValidationResult
A simple object that holds the information about validating an archive/restore project operation.
|
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.
|
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.
|
ArchivedProjectService.ArchivingResult archiveProject(ArchivedProjectService.ValidationResult validation)
ProjectArchivedEvent
.validation
- a request previously validated by
validateArchiveProject(ApplicationUser, String)
.ArchivedProjectService.ValidationResult validateArchiveProject(ApplicationUser user, String projectKey)
user
- projectKey
- ArchivedProjectService.ArchivingResult restoreProject(ArchivedProjectService.ValidationResult validation)
ProjectRestoredEvent
.validation
- a request previously validated by
validateRestoreProject(ApplicationUser, String)
.ArchivedProjectService.ValidationResult validateRestoreProject(ApplicationUser user, String projectKey)
user
- projectKey
- Copyright © 2002-2024 Atlassian. All Rights Reserved.