-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRole.java
More file actions
31 lines (24 loc) · 701 Bytes
/
Copy pathRole.java
File metadata and controls
31 lines (24 loc) · 701 Bytes
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
package com.usermanagement;
public class Role {
public static final String ADMIN = "Admin";
public static final String STUDENT = "Student";
public static final String INSTRUCTOR = "Instructor";
private String roleName;
// Constructors
public Role() {}
public Role(String roleName) {
this.roleName = roleName;
}
// Getter and setter
public String getRoleName() {
return roleName;
}
public void setRoleName(String roleName) {
this.roleName = roleName;
}
// Override toString() for better readability
@Override
public String toString() {
return "Role{" + "roleName='" + roleName + '\'' + '}';
}
}