use of com.khartec.waltz.model.logical_flow.AddLogicalFlowCommand in project waltz by khartec.
the class LogicalFlowEndpoint method addFlowRoute.
private LogicalFlow addFlowRoute(Request request, Response response) throws IOException {
ensureUserHasEditRights(request);
String username = getUsername(request);
AddLogicalFlowCommand addCmd = readBody(request, AddLogicalFlowCommand.class);
LOG.info("User: {}, adding new logical flow: {}", username, addCmd);
LogicalFlow savedFlow = logicalFlowService.addFlow(addCmd, username);
return savedFlow;
}
Aggregations