aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/model/User.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-22 17:33:40 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-22 17:33:40 -0700
commit4a10f75f016af996bd15e90101f0d20e4d61e083 (patch)
treee4c97cccd9b3371cea11679ec0966c8c62977625 /src/main/java/org/traccar/model/User.java
parent708f04be5d9a25bd9d217127680a61f307cb8ef2 (diff)
downloadtrackermap-server-4a10f75f016af996bd15e90101f0d20e4d61e083.tar.gz
trackermap-server-4a10f75f016af996bd15e90101f0d20e4d61e083.tar.bz2
trackermap-server-4a10f75f016af996bd15e90101f0d20e4d61e083.zip
Add device expiration (fix #3056, fix #3529)
Diffstat (limited to 'src/main/java/org/traccar/model/User.java')
-rw-r--r--src/main/java/org/traccar/model/User.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/model/User.java b/src/main/java/org/traccar/model/User.java
index 0aa67168f..3db20c753 100644
--- a/src/main/java/org/traccar/model/User.java
+++ b/src/main/java/org/traccar/model/User.java
@@ -24,7 +24,7 @@ import org.traccar.storage.StorageName;
import java.util.Date;
@StorageName("tc_users")
-public class User extends ExtendedModel implements UserRestrictions {
+public class User extends ExtendedModel implements UserRestrictions, Disableable {
private String name;
@@ -155,20 +155,24 @@ public class User extends ExtendedModel implements UserRestrictions {
private boolean disabled;
+ @Override
public boolean getDisabled() {
return disabled;
}
+ @Override
public void setDisabled(boolean disabled) {
this.disabled = disabled;
}
private Date expirationTime;
+ @Override
public Date getExpirationTime() {
return expirationTime;
}
+ @Override
public void setExpirationTime(Date expirationTime) {
this.expirationTime = expirationTime;
}