public class DeploymentResultDeletionServiceImpl extends Object implements DeploymentResultDeletionService
Constructor and Description |
---|
DeploymentResultDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate,
DeploymentResultDao deploymentResultDao,
EnvironmentDao environmentDao,
VariableContextBaselineDao variableContextBaselineDao,
com.atlassian.event.api.EventPublisher eventPublisher) |
Modifier and Type | Method and Description |
---|---|
void |
delete(long deploymentResultId)
Affected tables:
- DEPLOYMENT_RESULT (manual, Hibernate)
- DEPLOYMENT_RESULT_CUSTOMDATA (cascade)
- DEPLOYMENT_VARIABLE_SUBS (manual, JDBC query)
Affected filesystem:
- $BAMBOO_HOME/xml-data/builds/{environment.key}/download-data/build_logs/{deploymentResult.key}.log
|
int |
deleteForEnvironment(long environmentId)
Delete batch of Deployment Results and related records.
|
void |
removeLogs(long deploymentResultId,
long maxAllowedLogSize)
Affected filesystem:
- $BAMBOO_HOME/xml-data/builds/{environment.key}/download-data/build_logs/{deploymentResult.key}.log
|
int |
unlinkFromVersion(long deploymentVersionId)
Unlink Deployment Results from Deployment Version.
|
int |
unlinkFromVersionForProject(long deploymentProjectId)
Unlink Deployment Results from Deployment Versions for all Versions in DeploymentProject.
|
public DeploymentResultDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate, DeploymentResultDao deploymentResultDao, EnvironmentDao environmentDao, VariableContextBaselineDao variableContextBaselineDao, com.atlassian.event.api.EventPublisher eventPublisher)
public void delete(long deploymentResultId)
delete
in interface DeploymentResultDeletionService
deploymentResultId
- id of Deployment Result to deletepublic int deleteForEnvironment(long environmentId)
DeploymentResultDeletionService
deleteForEnvironment
in interface DeploymentResultDeletionService
environmentId
- id of Environment which DeploymentResults are to be deletedpublic int unlinkFromVersion(long deploymentVersionId)
DeploymentResultDeletionService
unlinkFromVersion
in interface DeploymentResultDeletionService
deploymentVersionId
- id of DeploymentVersion which DeploymentRecords should be unlinked frompublic int unlinkFromVersionForProject(long deploymentProjectId)
DeploymentResultDeletionService
unlinkFromVersionForProject
in interface DeploymentResultDeletionService
deploymentProjectId
- id of DeploymentProjectpublic void removeLogs(long deploymentResultId, long maxAllowedLogSize)
removeLogs
in interface DeploymentResultDeletionService
deploymentResultId
- id of Deployment ResultmaxAllowedLogSize
- delete only files longer than allowed size, when -1 then delete all filesCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.