Class DeploymentVersionDeletionServiceImpl

    • Method Detail

      • delete

        public void delete​(long deploymentVersionId)
        Affected tables: - DEPLOYMENT_VERSION (manual, Hibernate) - DEPLOYMENT_VERSION_ARTIFACT, DEPLOYMENT_PLANRESULTKEYS (cascade) - DEPLOYMENT_VERSION_CHANGESET (manual, JDBC) - DEPLOYMENT_VERSION_COMMIT (manual, JDBC) - DEPLOYMENT_RESULT (manual unlink, JDBC) - DEPLOYMENT_VERSION_STATUS (manual, JDBC) - DEPLOYMENT_VERSION_JIRA_ISSUE (manual, JDBC) - VARIABLE_DEFINITION (manual, JDBC) - ARTIFACT (through ArtifactManager)
        Specified by:
        delete in interface DeploymentVersionDeletionService
      • removeArtifacts

        public boolean removeArtifacts​(long deploymentVersionId)
        Description copied from interface: DeploymentVersionDeletionService
        Remove artifacts of Deployment Version and mark this version as unreleasable
        Specified by:
        removeArtifacts in interface DeploymentVersionDeletionService
        Parameters:
        deploymentVersionId - id of Deployment Version which artifacts should be deleted
        Returns:
        true if something was removed
      • deleteForDeploymentProject

        public int deleteForDeploymentProject​(long deploymentProjectId)
        Affected tables: - DEPLOYMENT_VERSION (manual, JDBC) - DEPLOYMENT_VERSION_ARTIFACT (manual, JDBC) - DEPLOYMENT_PLANRESULTKEYS (manual, JDBC) - DEPLOYMENT_VERSION_STATUS (manual, JDBC) - DEPLOYMENT_VERSION_JIRA_ISSUE (manual, JDBC) - DEPLOYMENT_VERSION_CHANGESET (manual, JDBC) - DEPLOYMENT_VERSION_COMMIT (manual, JDBC) - DEPLOYMENT_RESULT (manual unlink, JDBC) - VARIABLE_DEFINITION (manual, JDBC) - ARTIFACT (through ArtifactManager)
        Specified by:
        deleteForDeploymentProject in interface DeploymentVersionDeletionService
        Parameters:
        deploymentProjectId - id of Deployment Project which versions have to be removed
        Returns:
        number of deleted DeploymentVersion records