diff options
author | Dan <djr2468@gmail.com> | 2023-04-03 12:12:38 +0100 |
---|---|---|
committer | Dan <djr2468@gmail.com> | 2023-04-03 12:12:38 +0100 |
commit | faf5567add4cf343cc38b3c7dcb297c7cbed88bc (patch) | |
tree | 22e6f9e9559883f31ab9812e437f43a10e143822 /src/main/java/org/traccar/model | |
parent | 2cc1cb3c7530fdabb750a9e0b5cc26e3e2286185 (diff) | |
download | trackermap-server-faf5567add4cf343cc38b3c7dcb297c7cbed88bc.tar.gz trackermap-server-faf5567add4cf343cc38b3c7dcb297c7cbed88bc.tar.bz2 trackermap-server-faf5567add4cf343cc38b3c7dcb297c7cbed88bc.zip |
First pass
Diffstat (limited to 'src/main/java/org/traccar/model')
-rw-r--r-- | src/main/java/org/traccar/model/Server.java | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/src/main/java/org/traccar/model/Server.java b/src/main/java/org/traccar/model/Server.java index 4c6e10b5e..b790ca472 100644 --- a/src/main/java/org/traccar/model/Server.java +++ b/src/main/java/org/traccar/model/Server.java @@ -17,15 +17,13 @@ package org.traccar.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import org.traccar.Main; -import org.traccar.api.security.OpenIDProvider; import org.traccar.storage.QueryIgnore; import org.traccar.storage.StorageName; @StorageName("tc_servers") @JsonIgnoreProperties(ignoreUnknown = true) public class Server extends ExtendedModel implements UserRestrictions { - + private boolean registration; public boolean getRegistration() { @@ -264,15 +262,27 @@ public class Server extends ExtendedModel implements UserRestrictions { this.newServer = newServer; } + private boolean openIdEnabled; + + @QueryIgnore + public boolean getOpenIdEnabled() { + return openIdEnabled; + } + + @QueryIgnore + public void setOpenIdEnabled(boolean openIdEnabled) { + this.openIdEnabled = openIdEnabled; + } + + private boolean openIdForce; + @QueryIgnore - public boolean getOidcEnabled() { - OpenIDProvider oidc = Main.getInjector().getInstance(OpenIDProvider.class); - return oidc != null; + public boolean getOpenIdForce() { + return openIdForce; } @QueryIgnore - public boolean getOidcForce() { - OpenIDProvider oidc = Main.getInjector().getInstance(OpenIDProvider.class); - return oidc != null && oidc.force; + public void setOpenIdForce(boolean openIdForce) { + this.openIdForce = openIdForce; } } |