aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/storage
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-01 19:07:59 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-01 19:07:59 -0700
commit5032f99c6462ca97f3629abe1faf2f50cc4977fe (patch)
tree8571f7fdbbc94018843f6f66f14d85272912e8ab /src/main/java/org/traccar/storage
parent45b889838238e232295d332b4a6ae81fb112a806 (diff)
downloadtrackermap-server-5032f99c6462ca97f3629abe1faf2f50cc4977fe.tar.gz
trackermap-server-5032f99c6462ca97f3629abe1faf2f50cc4977fe.tar.bz2
trackermap-server-5032f99c6462ca97f3629abe1faf2f50cc4977fe.zip
New caching system
Diffstat (limited to 'src/main/java/org/traccar/storage')
-rw-r--r--src/main/java/org/traccar/storage/query/Condition.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/storage/query/Condition.java b/src/main/java/org/traccar/storage/query/Condition.java
index 4cfdc907f..91ede236c 100644
--- a/src/main/java/org/traccar/storage/query/Condition.java
+++ b/src/main/java/org/traccar/storage/query/Condition.java
@@ -165,6 +165,10 @@ public interface Condition {
this(ownerClass, ownerId, propertyClass, 0, false);
}
+ public Permission(Class<?> ownerClass, Class<?> propertyClass, long propertyId) {
+ this(ownerClass, 0, propertyClass, propertyId, false);
+ }
+
public Permission excludeGroups() {
return new Permission(this.ownerClass, this.ownerId, this.propertyClass, this.propertyId, true);
}