Repository navigation
Expand file tree
/
Copy pathUser.java
More file actions
96 lines (79 loc) · 2.18 KB
/
Copy pathUser.java
File metadata and controls
96 lines (79 loc) · 2.18 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// user model class
public class User {
private int userID;
private String userName;
private String password;
private String fullName;
private String contact;
private String email;
private String role;
private String status;
// create user objects from files
public User(int userID,String userName,String password,String fullName,String contact,String email,String role,String status){
this.userID = userID;
this.userName = userName;
this.password = password;
this.fullName = fullName;
this.contact = contact;
this.email = email;
this.role = role;
this.status = status;
}
public User(String userName,String password,String fullName,String contact,String email,String role,String status){
this.userName = userName;
this.password = password;
this.fullName = fullName;
this.contact = contact;
this.email = email;
this.role = role;
this.status = status;
}
public int getUserID(){
return userID;
}
public String getUserName(){
return userName;
}
public String getPassword(){
return password;
}
public String getFullName(){
return fullName;
}
public String getContact(){
return contact;
}
public String getEmail(){
return email;
}
public String getRole(){
return role;
}
public String getStatus(){
return status;
}
public void setUserID(int userID){
this.userID = userID;
}
public void setUserName(String userName){
this.userName = userName;
}
public void setPassword(String password){
this.password = password;
}
public void setFullName(String fullName){
this.fullName = fullName;
}
public void setContact(String contact){
this.contact = contact;
}
public void setEmail(String email){
this.email = email;
}
public void setRole(String role){
this.role = role;
}
public void setStatus(String status){
this.status = status;
}
}