@GET @Path("/enabled") @Timed
@ApiOperation(value = "Get a list of all enabled streams")
@Produces(MediaType.APPLICATION_JSON)
public StreamListResponse getEnabled() throws NotFoundException {
StreamListResponse response = new StreamListResponse();
response.streams = new ArrayList<>();
for (Stream stream : streamService.loadAllEnabled())
if (isPermitted(RestPermissions.STREAMS_READ, stream.getId()))
response.streams.add(stream);
response.total = response.streams.size();