aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/model
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-10 07:06:43 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-10 07:06:43 -0700
commitc03b4a2ace925e6a0d7c43ce59e14ddb9cbf18a9 (patch)
tree148e1946041f4dad429cb4575b8ebfba7a3a4d85 /src/main/java/org/traccar/model
parent336d6c4353fd77ad268aaf5cfe9c0296edfb0201 (diff)
downloadtrackermap-server-c03b4a2ace925e6a0d7c43ce59e14ddb9cbf18a9.tar.gz
trackermap-server-c03b4a2ace925e6a0d7c43ce59e14ddb9cbf18a9.tar.bz2
trackermap-server-c03b4a2ace925e6a0d7c43ce59e14ddb9cbf18a9.zip
Inject mail manager
Diffstat (limited to 'src/main/java/org/traccar/model')
-rw-r--r--src/main/java/org/traccar/model/Server.java10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/model/Server.java b/src/main/java/org/traccar/model/Server.java
index 7cffd7eac..c5640fb97 100644
--- a/src/main/java/org/traccar/model/Server.java
+++ b/src/main/java/org/traccar/model/Server.java
@@ -16,7 +16,6 @@
package org.traccar.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
-import org.traccar.Context;
import org.traccar.storage.QueryIgnore;
import org.traccar.storage.StorageName;
@@ -193,9 +192,16 @@ public class Server extends ExtendedModel implements UserRestrictions {
return getClass().getPackage().getImplementationVersion();
}
+ private boolean emailEnabled;
+
+ @QueryIgnore
+ public void setEmailEnabled(boolean emailEnabled) {
+ this.emailEnabled = emailEnabled;
+ }
+
@QueryIgnore
public Boolean getEmailEnabled() {
- return Context.getMailManager().getEmailEnabled();
+ return emailEnabled;
}
}