Interface ArchivedProjectService
- All Known Implementing Classes:
DefaultArchivedProjectService
@ExperimentalApi
public interface ArchivedProjectService
This service can be used for archiving projects and restoring projects.
- Since:
- 7.9
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A simple object that holds the information about an project archive/restore operation.static class
A simple object that holds the information about validating an archive/restore project operation. -
Method Summary
Modifier and TypeMethodDescriptionMark the project as archived and perform operation of archiving including all dependencies.Mark the project as not archived.validateArchiveProject
(ApplicationUser user, String projectKey) Check if given project can be archived by given user.validateRestoreProject
(ApplicationUser user, String projectKey) Check if given project can be restored by given user.
-
Method Details
-
archiveProject
ArchivedProjectService.ArchivingResult archiveProject(ArchivedProjectService.ValidationResult validation) Mark the project as archived and perform operation of archiving including all dependencies. This method will also triggerProjectArchivedEvent
.- Parameters:
validation
- a request previously validated byvalidateArchiveProject(ApplicationUser, String)
.- Returns:
- the result of the operation.
-
validateArchiveProject
ArchivedProjectService.ValidationResult validateArchiveProject(ApplicationUser user, String projectKey) Check if given project can be archived by given user.- Parameters:
user
-projectKey
-- Returns:
- the validation result.
-
restoreProject
ArchivedProjectService.ArchivingResult restoreProject(ArchivedProjectService.ValidationResult validation) Mark the project as not archived. This method will also triggerProjectRestoredEvent
.- Parameters:
validation
- a request previously validated byvalidateRestoreProject(ApplicationUser, String)
.- Returns:
- the result of the operation.
-
validateRestoreProject
ArchivedProjectService.ValidationResult validateRestoreProject(ApplicationUser user, String projectKey) Check if given project can be restored by given user.- Parameters:
user
-projectKey
-- Returns:
- the validation result.
-