public String convertStreamDefinitionToAuditData(StreamDefinition streamDefinition) { return this.argumentSanitizer.sanitizeStream(streamDefinition); }
public String convertStreamDefinitionToAuditData(StreamDefinition streamDefinition) { return this.argumentSanitizer.sanitizeStream(streamDefinition); }
public Map<String, Object> convertStreamDefinitionToAuditData( StreamDefinition streamDefinition, Map<String, String> deploymentProperties) { final Map<String, Object> auditedData = new HashMap<>(2); auditedData.put(STREAM_DEFINITION_DSL_TEXT, this.argumentSanitizer.sanitizeStream(streamDefinition)); auditedData.put(DEPLOYMENT_PROPERTIES, this.argumentSanitizer.sanitizeProperties(deploymentProperties)); return auditedData; }
public Map<String, Object> convertStreamDefinitionToAuditData( StreamDefinition streamDefinition, Map<String, String> deploymentProperties) { final Map<String, Object> auditedData = new HashMap<>(2); auditedData.put(STREAM_DEFINITION_DSL_TEXT, this.argumentSanitizer.sanitizeStream(streamDefinition)); auditedData.put(DEPLOYMENT_PROPERTIES, this.argumentSanitizer.sanitizeProperties(deploymentProperties)); return auditedData; }
@Override public StreamDefinitionResource instantiateResource(StreamDefinition stream) { final StreamDefinitionResource resource = new StreamDefinitionResource(stream.getName(), new ArgumentSanitizer().sanitizeStream(stream)); DeploymentState deploymentState = streamDeploymentStates.get(stream); if (deploymentState != null) { final DeploymentStateResource deploymentStateResource = ControllerUtils .mapState(deploymentState); resource.setStatus(deploymentStateResource.getKey()); resource.setStatusDescription(deploymentStateResource.getDescription()); } return resource; }
@Override public StreamDeploymentResource instantiateResource(StreamDeployment streamDeployment) { String deploymentProperties = ""; if (StringUtils.hasText(streamDeployment.getDeploymentProperties()) && canDisplayDeploymentProperties()) { deploymentProperties = streamDeployment.getDeploymentProperties(); } return new StreamDeploymentResource(streamDeployment.getStreamName(), new ArgumentSanitizer().sanitizeStream( new StreamDefinition(streamDeployment.getStreamName(), this.dslText)), deploymentProperties, this.status); }