Undo my report changes

This commit is contained in:
Shaun Bennett 2016-11-24 00:14:56 -05:00
parent 15f3b19f8a
commit b291090ace
1 changed files with 0 additions and 43 deletions

View File

@ -7,7 +7,6 @@ import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.UUID;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.CompletableFuture;
import java.util.logging.Level;
import java.util.stream.Collectors;
@ -869,46 +868,4 @@ public class ReportManager
return NAME + " #" + reportId;
}
public CompletableFuture<List<Long>> a(int reporterId)
{
return _reportRepository.getOpenReports(reporterId);
}
public CompletableFuture<List<CompletableFuture<Optional<Report>>>> b(int reporterId)
{
return _reportRepository.getOpenReports(reporterId)
.thenApply(reportIds ->
reportIds.stream().map(_reportRepository::getReport).collect(Collectors.toList()));
}
public CompletableFuture<List<Optional<Report>>> c(int reporterId)
{
return _reportRepository.getOpenReports(reporterId)
.thenApply(reportIds ->
reportIds.stream().map(_reportRepository::getReport).collect(Collectors.toList()))
.thenCompose(UtilFuture::sequence);
}
public CompletableFuture<List<Report>> d(int reporterId)
{
return _reportRepository.getOpenReports(reporterId)
.thenApply(reportIds ->
reportIds.stream().map(_reportRepository::getReport).collect(Collectors.toList()))
.thenCompose(UtilFuture::sequence)
.thenApply(UtilCollections::unboxPresent);
}
public CompletableFuture<List<Report>> e(int reporterId)
{
return _reportRepository.getOpenReports(reporterId)
.thenApply(reportIds ->
reportIds.stream().map(_reportRepository::getReport).collect(Collectors.toList()))
.thenCompose(UtilFuture::sequence)
.thenApply(UtilCollections::unboxPresent)
.thenCompose(reports -> UtilFuture.filter(reports, this::isActiveReport));
}
public CompletableFuture<List<String>> f(List<String> z) {
return UtilFuture.filter(z, a -> CompletableFuture.completedFuture(true));
}
}