com.atlassian.bamboo.deployments.results.service
Class DeploymentResultDeletionServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.deployments.results.service.DeploymentResultDeletionServiceImpl
All Implemented Interfaces:
DeploymentResultDeletionService

public class DeploymentResultDeletionServiceImpl
extends java.lang.Object
implements DeploymentResultDeletionService


Constructor Summary
DeploymentResultDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate, DeploymentResultDao deploymentResultDao, DeploymentVariableSubstitutionDao deploymentVariableSubstitutionDao, EnvironmentDao environmentDao, VariableContextBaselineDao variableContextBaselineDao)
           
 
Method Summary
 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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentResultDeletionServiceImpl

public DeploymentResultDeletionServiceImpl(BambooTransactionHibernateTemplate bambooTransactionHibernateTemplate,
                                           DeploymentResultDao deploymentResultDao,
                                           DeploymentVariableSubstitutionDao deploymentVariableSubstitutionDao,
                                           EnvironmentDao environmentDao,
                                           VariableContextBaselineDao variableContextBaselineDao)
Method Detail

delete

public 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

Specified by:
delete in interface DeploymentResultDeletionService
Parameters:
deploymentResultId - id of Deployment Result to delete

deleteForEnvironment

public int deleteForEnvironment(long environmentId)
Description copied from interface: DeploymentResultDeletionService
Delete batch of Deployment Results and related records.

Specified by:
deleteForEnvironment in interface DeploymentResultDeletionService
Parameters:
environmentId - id of Environment which DeploymentResults are to be deleted

unlinkFromVersion

public int unlinkFromVersion(long deploymentVersionId)
Description copied from interface: DeploymentResultDeletionService
Unlink Deployment Results from Deployment Version.

Specified by:
unlinkFromVersion in interface DeploymentResultDeletionService
Parameters:
deploymentVersionId - id of DeploymentVersion which DeploymentRecords should be unlinked from

unlinkFromVersionForProject

public int unlinkFromVersionForProject(long deploymentProjectId)
Description copied from interface: DeploymentResultDeletionService
Unlink Deployment Results from Deployment Versions for all Versions in DeploymentProject.

Specified by:
unlinkFromVersionForProject in interface DeploymentResultDeletionService
Parameters:
deploymentProjectId - id of DeploymentProject


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.