use of com.sequenceiq.cloudbreak.api.model.GeneratedBlueprintResponse in project cloudbreak by hortonworks.
the class StackV2Controller method postStackForBlueprint.
@Override
public GeneratedBlueprintResponse postStackForBlueprint(StackV2Request stackRequest) throws Exception {
IdentityUser user = authenticatedUserService.getCbUser();
stackRequest.setAccount(user.getAccount());
stackRequest.setOwner(user.getUserId());
BlueprintPreparationObject blueprintPreparationObject = conversionService.convert(stackRequest, BlueprintPreparationObject.class);
String blueprintText = centralBlueprintUpdater.getBlueprintText(blueprintPreparationObject);
return new GeneratedBlueprintResponse(blueprintText);
}
Aggregations