Undo my report changes
This commit is contained in:
parent
15f3b19f8a
commit
b291090ace
@ -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));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user