blob: c4c63e52517de15b0fd8ad29117e3de60f648211 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package org.traccar.reports;
import java.util.ArrayList;
import java.util.Collection;
import org.traccar.Context;
public final class ReportUtils {
private ReportUtils() {
}
public static Collection<Long> getReportedDevices(Collection<Long> deviceIds, Collection<Long> groupIds) {
Collection<Long> result = new ArrayList<>();
result.addAll(deviceIds);
for (long groupId : groupIds) {
result.addAll(Context.getPermissionsManager().getGroupDevices(groupId));
}
return result;
}
}
|