protected Set < String > resumePreviousByDeploymentName ( CommandContext commandContext , DeploymentEntity deployment ) { List < Deployment > previousDeployments = new DeploymentQueryImpl ( ) . deploymentName ( deployment . getName ( ) ) . list ( ) ; Set < String > deploymentIds = new HashSet < String > ( previousDeployments . size ( ) ) ; for ( Deployment d : previousDeployments ) { deploymentIds . add ( d . getId ( ) ) ; } return deploymentIds ; }
Searches for previous deployments with the same name .