File tree Expand file tree Collapse file tree 1 file changed +14
-18
lines changed
server/src/main/java/com/objectcomputing/checkins/services/member_skill/skillsreport Expand file tree Collapse file tree 1 file changed +14
-18
lines changed Original file line number Diff line number Diff line change 33import com .objectcomputing .checkins .exceptions .BadArgException ;
44
55public enum SkillLevel {
6- INTERESTED (1 ),
7- NOVICE (2 ),
8- INTERMEDIATE (3 ),
9- ADVANCED (4 ),
10- EXPERT (5 );
11-
12- public static final String INTERESTED_LEVEL = "1" ;
13- public static final String NOVICE_LEVEL = "2" ;
14- public static final String INTERMEDIATE_LEVEL = "3" ;
15- public static final String ADVANCED_LEVEL = "4" ;
16- public static final String EXPERT_LEVEL = "5" ;
6+ NONE (0 ),
7+ NOVICE (1 ),
8+ PRACTITIONER (2 ),
9+ EXPERT (3 );
10+
11+ public static final String NONE_LEVEL = "0" ;
12+ public static final String NOVICE_LEVEL = "1" ;
13+ public static final String PRACTITIONER_LEVEL = "2" ;
14+ public static final String EXPERT_LEVEL = "3" ;
1715
1816 private final int value ;
1917
@@ -26,16 +24,14 @@ public int getValue() {
2624 }
2725
2826 public static SkillLevel convertFromString (String level ) {
29- final String levelLc = level != null ? level .toLowerCase () : "3" ;
27+ final String levelLc = level != null ? level .toLowerCase () : PRACTITIONER_LEVEL ;
3028 switch (levelLc ) {
31- case INTERESTED_LEVEL :
32- return SkillLevel .INTERESTED ;
29+ case NONE_LEVEL :
30+ return SkillLevel .NONE ;
3331 case NOVICE_LEVEL :
3432 return SkillLevel .NOVICE ;
35- case INTERMEDIATE_LEVEL :
36- return SkillLevel .INTERMEDIATE ;
37- case ADVANCED_LEVEL :
38- return SkillLevel .ADVANCED ;
33+ case PRACTITIONER_LEVEL :
34+ return SkillLevel .PRACTITIONER ;
3935 case EXPERT_LEVEL :
4036 return SkillLevel .EXPERT ;
4137 default :
You can’t perform that action at this time.
0 commit comments