unicon.matthews.admin.endpoint.input.UserDTO   A
last analyzed

Complexity

Total Complexity 13

Size/Duplication

Total Lines 79
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 79
rs 10
eloc 47
wmc 13

13 Methods

Rating   Name   Duplication   Size   Complexity  
A getOrgId() 0 3 1
A toString() 0 10 1
A setId(String) 0 2 1
A getTenantId() 0 3 1
A setPassword(String) 0 2 1
A getEmailAddress() 0 3 1
A setUsername(String) 0 2 1
A getId() 0 3 1
A setOrgId(String) 0 2 1
A setEmailAddress(String) 0 2 1
A setTenantId(String) 0 2 1
A getUsername() 0 3 1
A getPassword() 0 3 1
1
package unicon.matthews.admin.endpoint.input;
2
3
import io.swagger.annotations.ApiModel;
4
import io.swagger.annotations.ApiModelProperty;
5
import org.apache.commons.lang3.builder.ToStringBuilder;
6
7
@ApiModel
8
public class UserDTO {
9
10
    private String id;
11
12
    private String tenantId;
13
14
    private String orgId;
15
16
    private String username;
17
18
    private String password = "";
0 ignored issues
show
Security introduced by
Hard-coding user names and passwords is a very insecure and inefficient practice. Consider reading the credentials from an outside file or other source, which you may not want to put in your source code repository.
Loading history...
19
20
    private String emailAddress;
21
22
    @ApiModelProperty(position = 1, value = "User Id")
23
    public String getId() {
24
        return id;
25
    }
26
27
    public void setId(String id) {
28
        this.id = id;
29
    }
30
31
    @ApiModelProperty(position = 2, value = "Tenant Id")
32
    public String getTenantId() {
33
        return tenantId;
34
    }
35
36
    public void setTenantId(String tenantId) {
37
        this.tenantId = tenantId;
38
    }
39
40
    @ApiModelProperty(position = 3, value = "Organization Id")
41
    public String getOrgId() {
42
        return orgId;
43
    }
44
45
    public void setOrgId(String orgId) {
46
        this.orgId = orgId;
47
    }
48
49
    @ApiModelProperty(position = 4, value = "User Name")
50
    public String getUsername() {
51
        return username;
52
    }
53
54
    public void setUsername(String username) {
55
        this.username = username;
56
    }
57
58
    @ApiModelProperty(position = 5, value = "Password")
59
    public String getPassword() {
60
        return password;
61
    }
62
63
    public void setPassword(String password) {
64
        this.password = password;
65
    }
66
67
    @ApiModelProperty(position = 6, value = "Email Address")
68
    public String getEmailAddress() {
69
        return emailAddress;
70
    }
71
72
    public void setEmailAddress(String emailAddress) {
73
        this.emailAddress = emailAddress;
74
    }
75
76
    @Override
77
    public String toString() {
78
        return new ToStringBuilder(this)
79
                .append("id", id)
80
                .append("tenantId", tenantId)
81
                .append("orgId", orgId)
82
                .append("username", username)
83
                .append("password", password)
84
                .append("emailAddress", emailAddress)
85
                .toString();
86
    }
87
}
88