/** * Validates the EMR cluster create request. This method also trims request parameters. * * @param key the ERM cluster alternate key * * @throws IllegalArgumentException if any validation errors were found */ private void validateEmrClusterKey(EmrClusterAlternateKeyDto key) throws IllegalArgumentException { Assert.notNull(key, "An EMR cluster key must be specified."); key.setNamespace(alternateKeyHelper.validateStringParameter("namespace", key.getNamespace())); key.setEmrClusterDefinitionName(alternateKeyHelper.validateStringParameter("An", "EMR cluster definition name", key.getEmrClusterDefinitionName())); key.setEmrClusterName(alternateKeyHelper.validateStringParameter("An", "EMR cluster name", key.getEmrClusterName())); }
/** * Validates the EMR cluster create request. This method also trims request parameters. * * @param key the ERM cluster alternate key * * @throws IllegalArgumentException if any validation errors were found */ private void validateEmrClusterKey(EmrClusterAlternateKeyDto key) throws IllegalArgumentException { Assert.notNull(key, "An EMR cluster key must be specified."); key.setNamespace(alternateKeyHelper.validateStringParameter("namespace", key.getNamespace())); key.setEmrClusterDefinitionName(alternateKeyHelper.validateStringParameter("An", "EMR cluster definition name", key.getEmrClusterDefinitionName())); key.setEmrClusterName(alternateKeyHelper.validateStringParameter("An", "EMR cluster name", key.getEmrClusterName())); }
/** * Builds the cluster alternate key and returns. * * @param execution the DelegateExecution * * @return the cluster alternate key. */ protected EmrClusterAlternateKeyDto getClusterAlternateKey(DelegateExecution execution) { // Create the alternate key. EmrClusterAlternateKeyDto emrClusterAlternateKeyDto = new EmrClusterAlternateKeyDto(); emrClusterAlternateKeyDto.setNamespace(activitiHelper.getExpressionVariableAsString(namespace, execution)); emrClusterAlternateKeyDto.setEmrClusterDefinitionName(activitiHelper.getExpressionVariableAsString(emrClusterDefinitionName, execution)); emrClusterAlternateKeyDto.setEmrClusterName(activitiHelper.getExpressionVariableAsString(emrClusterName, execution)); return emrClusterAlternateKeyDto; }
/** * Builds the cluster alternate key and returns. * * @param execution the DelegateExecution * * @return the cluster alternate key. */ protected EmrClusterAlternateKeyDto getClusterAlternateKey(DelegateExecution execution) { // Create the alternate key. EmrClusterAlternateKeyDto emrClusterAlternateKeyDto = new EmrClusterAlternateKeyDto(); emrClusterAlternateKeyDto.setNamespace(activitiHelper.getExpressionVariableAsString(namespace, execution)); emrClusterAlternateKeyDto.setEmrClusterDefinitionName(activitiHelper.getExpressionVariableAsString(emrClusterDefinitionName, execution)); emrClusterAlternateKeyDto.setEmrClusterName(activitiHelper.getExpressionVariableAsString(emrClusterName, execution)); return emrClusterAlternateKeyDto; }
emrClusterAlternateKeyDto.setNamespace(namespace); emrClusterAlternateKeyDto.setEmrClusterDefinitionName(emrClusterDefinitionName); emrClusterAlternateKeyDto.setEmrClusterName(emrClusterName);
sourceNamespace = this.getNamespace(); String copyNamespace = ((String) strategy.copy(LocatorUtils.property(locator, "namespace", sourceNamespace), sourceNamespace, (this.namespace!= null))); copy.setNamespace(copyNamespace); } else { if (namespaceShouldBeCopiedAndSet == Boolean.FALSE) {