this.streamService = streamService;
this.outputService = outputService;
}
public Result index(String streamId) throws IOException, APIException {
final Stream stream = streamService.get(streamId);
if (stream == null) {
flash("error", "Stream <" + streamId + "> does not exit!");
return redirect(routes.StreamsController.index());
}
List<Output> outputs = streamService.getOutputs(streamId);
List<Output> otherOutputs = outputService.list();
otherOutputs.removeAll(outputs);
BreadcrumbList bc = new BreadcrumbList();
bc.addCrumb("Streams", routes.StreamsController.index());
bc.addCrumb("Outputs of " + stream.getTitle(), routes.StreamOutputsController.index(stream.getId()));
return ok(views.html.streams.outputs.index.render(currentUser(),
bc,
outputs,
otherOutputs,