aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web/shared/model/ApplicationSettings.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/web/shared/model/ApplicationSettings.java')
-rw-r--r--src/org/traccar/web/shared/model/ApplicationSettings.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/org/traccar/web/shared/model/ApplicationSettings.java b/src/org/traccar/web/shared/model/ApplicationSettings.java
new file mode 100644
index 00000000..ecbd1832
--- /dev/null
+++ b/src/org/traccar/web/shared/model/ApplicationSettings.java
@@ -0,0 +1,28 @@
+package org.traccar.web.shared.model;
+
+import java.io.Serializable;
+
+import javax.persistence.Entity;
+import javax.persistence.Table;
+
+@Entity
+@Table(name="application_settings")
+public class ApplicationSettings implements Serializable {
+
+ private static final long serialVersionUID = 1;
+
+ public ApplicationSettings() {
+ registrationEnabled = true;
+ }
+
+ private boolean registrationEnabled;
+
+ public void setRegistrationEnabled(boolean registrationEnabled) {
+ this.registrationEnabled = registrationEnabled;
+ }
+
+ public boolean getRegistrationEnabled() {
+ return registrationEnabled;
+ }
+
+}