forked from OpenIntegrationEngine/engine
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathLoginStatus.java
More file actions
44 lines (33 loc) · 1.09 KB
/
LoginStatus.java
File metadata and controls
44 lines (33 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// SPDX-License-Identifier: MPL-2.0
// SPDX-FileCopyrightText: Mirth Corporation
package com.mirth.connect.model;
import java.io.Serializable;
public class LoginStatus implements Serializable {
public enum Status {
SUCCESS, SUCCESS_GRACE_PERIOD, FAIL, FAIL_EXPIRED, FAIL_LOCKED_OUT, FAIL_VERSION_MISMATCH
}
private Status status;
private String message;
private String updatedUsername;
public LoginStatus(Status status, String message) {
this.status = status;
this.message = message;
}
public LoginStatus(Status status, String message, String updatedUsername) {
this.status = status;
this.message = message;
this.updatedUsername = updatedUsername;
}
public Status getStatus() {
return status;
}
public String getMessage() {
return message;
}
public String getUpdatedUsername() {
return updatedUsername;
}
public boolean isSuccess() {
return status == Status.SUCCESS || status == Status.SUCCESS_GRACE_PERIOD;
}
}