Class DeploymentResultDeletionServiceImpl
- java.lang.Object
-
- com.atlassian.bamboo.deployments.results.service.DeploymentResultDeletionServiceImpl
-
- All Implemented Interfaces:
DeploymentResultDeletionService
public class DeploymentResultDeletionServiceImpl extends Object implements DeploymentResultDeletionService
-
-
Constructor Summary
Constructors Constructor Description DeploymentResultDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate, DeploymentResultDao deploymentResultDao, EnvironmentDao environmentDao, VariableContextBaselineDao variableContextBaselineDao, com.atlassian.event.api.EventPublisher eventPublisher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(long deploymentResultId)Affected tables: - DEPLOYMENT_RESULT (manual, Hibernate) - DEPLOYMENT_RESULT_CUSTOMDATA (cascade) - DEPLOYMENT_VARIABLE_SUBS (manual, JDBC query) - WEBHOOK_RESPONSE (manual, Hibernate)intdeleteForEnvironment(long environmentId)Delete batch of Deployment Results and related records.voidremoveLogs(long deploymentResultId, long maxAllowedLogSize)Affected filesystem: - $BAMBOO_HOME/xml-data/builds/{environment.key}/download-data/build_logs/{deploymentResult.key}.logintunlinkFromVersion(long deploymentVersionId)Unlink Deployment Results from Deployment Version.intunlinkFromVersionForProject(long deploymentProjectId)Unlink Deployment Results from Deployment Versions for all Versions in DeploymentProject.
-
-
-
Constructor Detail
-
DeploymentResultDeletionServiceImpl
public DeploymentResultDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate, DeploymentResultDao deploymentResultDao, EnvironmentDao environmentDao, VariableContextBaselineDao variableContextBaselineDao, com.atlassian.event.api.EventPublisher eventPublisher)
-
-
Method Detail
-
delete
public void delete(long deploymentResultId)
Affected tables: - DEPLOYMENT_RESULT (manual, Hibernate) - DEPLOYMENT_RESULT_CUSTOMDATA (cascade) - DEPLOYMENT_VARIABLE_SUBS (manual, JDBC query) - WEBHOOK_RESPONSE (manual, Hibernate)Affected filesystem: - $BAMBOO_HOME/xml-data/builds/{environment.key}/download-data/build_logs/{deploymentResult.key}.log
- Specified by:
deletein interfaceDeploymentResultDeletionService- Parameters:
deploymentResultId- id of Deployment Result to delete
-
deleteForEnvironment
public int deleteForEnvironment(long environmentId)
Description copied from interface:DeploymentResultDeletionServiceDelete batch of Deployment Results and related records.- Specified by:
deleteForEnvironmentin interfaceDeploymentResultDeletionService- Parameters:
environmentId- id of Environment which DeploymentResults are to be deleted
-
unlinkFromVersion
public int unlinkFromVersion(long deploymentVersionId)
Description copied from interface:DeploymentResultDeletionServiceUnlink Deployment Results from Deployment Version.- Specified by:
unlinkFromVersionin interfaceDeploymentResultDeletionService- Parameters:
deploymentVersionId- id of DeploymentVersion which DeploymentRecords should be unlinked from
-
unlinkFromVersionForProject
public int unlinkFromVersionForProject(long deploymentProjectId)
Description copied from interface:DeploymentResultDeletionServiceUnlink Deployment Results from Deployment Versions for all Versions in DeploymentProject.- Specified by:
unlinkFromVersionForProjectin interfaceDeploymentResultDeletionService- Parameters:
deploymentProjectId- id of DeploymentProject
-
removeLogs
public void removeLogs(long deploymentResultId, long maxAllowedLogSize)Affected filesystem: - $BAMBOO_HOME/xml-data/builds/{environment.key}/download-data/build_logs/{deploymentResult.key}.log- Specified by:
removeLogsin interfaceDeploymentResultDeletionService- Parameters:
deploymentResultId- id of Deployment ResultmaxAllowedLogSize- delete only files longer than allowed size, when -1 then delete all files
-
-