public class DeletionServiceImpl extends Object implements DeletionService
DeletionService.FireEvent
Constructor and Description |
---|
DeletionServiceImpl(ErrorHandler errorHandler,
BuildResultsIndexer buildResultsIndexer,
PlanScheduler planScheduler,
PlanDependencyManager planDependencyManager,
PlanParticleManager planParticleManager,
com.atlassian.event.api.EventPublisher eventPublisher,
ResultsSummaryManager resultsSummaryManager,
BuildSuspensionCheckBean buildSuspensionCheckBean,
AdminErrorHandler adminErrorHandler,
org.acegisecurity.acls.MutableAclService aclService,
ProjectManager projectManager,
PlanManager planManager,
ChainStageDao chainStageDao,
com.atlassian.bandana.BandanaPersister bandanaPersister,
com.atlassian.plugin.PluginAccessor pluginAccessor,
ArtifactDefinitionManager artifactDefinitionManager,
ArtifactSubscriptionManager artifactSubscriptionManager,
ArtifactManager artifactManager,
AuditLogService auditLogService,
VariableDefinitionManager variableDefinitionManager,
RepositoryDefinitionManager repositoryDefinitionManager,
PlanVcsRevisionHistoryService planVcsRevisionHistoryService,
ChainBranchManager chainBranchManager,
VcsBranchManager vcsBranchManager,
StopBuildManager stopBuildManager,
ImmutablePlanCacheService immutablePlanCacheService,
ArtifactDao artifactDao,
DeploymentProjectService deploymentProjectService,
DeploymentVersionService deploymentVersionService,
AgentAssignmentService agentAssignmentService) |
Modifier and Type | Method and Description |
---|---|
void |
deletePlan(Plan plan) |
Set<PlanKey> |
deletePlans(Iterable<String> planKeys) |
void |
deletePlansIgnoringBranches(Iterable<? extends Plan> plansToDelete)
Delete all the plans on the list.
|
void |
deleteProject(Project project) |
com.atlassian.bamboo.deletion.DeletionServiceImpl.DelayedEventInfo |
deleteProjectNoEvents(Project project) |
Set<PlanKey> |
deleteProjects(Iterable<String> projectKeys) |
void |
deleteStage(ChainStage chainStage) |
void |
deleteStagesIgnoringBranchesAndJobs(Iterable<ChainStage> stagesToDelete)
Delete all the stages on the list.
|
void |
executeDelayedDeletion()
Cleanup data scheduled for deletion during
DeletionService.deletePlan(Plan) |
void |
removeOrphanedBuildResults()
Clean up any orphaned build results lying around.
|
void |
resumeDeletions()
Resumes delayed deletion.
|
void |
suspendDeletions()
Blocks until all currently deleted objects are deleted and then suspends deletions.
|
boolean |
suspendDeletions(long secondsToWait) |
public DeletionServiceImpl(ErrorHandler errorHandler, BuildResultsIndexer buildResultsIndexer, PlanScheduler planScheduler, PlanDependencyManager planDependencyManager, PlanParticleManager planParticleManager, com.atlassian.event.api.EventPublisher eventPublisher, ResultsSummaryManager resultsSummaryManager, BuildSuspensionCheckBean buildSuspensionCheckBean, AdminErrorHandler adminErrorHandler, org.acegisecurity.acls.MutableAclService aclService, ProjectManager projectManager, PlanManager planManager, ChainStageDao chainStageDao, com.atlassian.bandana.BandanaPersister bandanaPersister, com.atlassian.plugin.PluginAccessor pluginAccessor, ArtifactDefinitionManager artifactDefinitionManager, ArtifactSubscriptionManager artifactSubscriptionManager, ArtifactManager artifactManager, AuditLogService auditLogService, VariableDefinitionManager variableDefinitionManager, RepositoryDefinitionManager repositoryDefinitionManager, PlanVcsRevisionHistoryService planVcsRevisionHistoryService, ChainBranchManager chainBranchManager, VcsBranchManager vcsBranchManager, StopBuildManager stopBuildManager, ImmutablePlanCacheService immutablePlanCacheService, ArtifactDao artifactDao, DeploymentProjectService deploymentProjectService, DeploymentVersionService deploymentVersionService, AgentAssignmentService agentAssignmentService)
public Set<PlanKey> deleteProjects(Iterable<String> projectKeys)
deleteProjects
in interface DeletionService
public void deleteProject(@NotNull Project project)
deleteProject
in interface DeletionService
public com.atlassian.bamboo.deletion.DeletionServiceImpl.DelayedEventInfo deleteProjectNoEvents(@NotNull Project project)
public void deletePlan(@NotNull Plan plan)
deletePlan
in interface DeletionService
public void deletePlansIgnoringBranches(Iterable<? extends Plan> plansToDelete)
DeletionService
deletePlansIgnoringBranches
in interface DeletionService
public Set<PlanKey> deletePlans(Iterable<String> planKeys)
deletePlans
in interface DeletionService
public void deleteStagesIgnoringBranchesAndJobs(Iterable<ChainStage> stagesToDelete)
DeletionService
deleteStagesIgnoringBranchesAndJobs
in interface DeletionService
public void deleteStage(@NotNull ChainStage chainStage)
deleteStage
in interface DeletionService
public void removeOrphanedBuildResults()
DeletionService
removeOrphanedBuildResults
in interface DeletionService
public void executeDelayedDeletion()
DeletionService
DeletionService.deletePlan(Plan)
executeDelayedDeletion
in interface DeletionService
public void suspendDeletions()
DeletionService
suspendDeletions
in interface DeletionService
public boolean suspendDeletions(long secondsToWait)
suspendDeletions
in interface DeletionService
public void resumeDeletions()
DeletionService
resumeDeletions
in interface DeletionService
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.