1 | |
package org.kuali.student.lum.common.client.widgets; |
2 | |
|
3 | |
import org.kuali.student.common.ui.client.mvc.history.Locations; |
4 | |
|
5 | |
|
6 | 0 | public class AppLocations implements Locations { |
7 | |
|
8 | 0 | public enum Locations { |
9 | 0 | HOME("/HOME"), |
10 | 0 | CURRICULUM_MANAGEMENT("/HOME/CURRICULUM_HOME"), |
11 | 0 | COURSE_PROPOSAL("/HOME/CURRICULUM_HOME/COURSE_PROPOSAL"), |
12 | 0 | VIEW_COURSE("/HOME/CURRICULUM_HOME/VIEW_COURSE"), |
13 | 0 | VIEW_PROGRAM("/HOME/CURRICULUM_HOME/PROGRAM_VIEW"), |
14 | 0 | VIEW_PROGRAM_VERSIONS("/HOME/CURRICULUM_HOME/PROGRAM_VERSIONS"), |
15 | 0 | VIEW_CORE_PROGRAM("/HOME/CURRICULUM_HOME/CORE_PROGRAM_VIEW"), |
16 | 0 | EDIT_CORE_PROGRAM("/HOME/CURRICULUM_HOME/CORE_PROGRAM_EDIT"), |
17 | 0 | VIEW_CORE_VERSIONS("/HOME/CURRICULUM_HOME/CORE_PROGRAM_VERSIONS"), |
18 | 0 | VIEW_BACC_PROGRAM("/HOME/CURRICULUM_HOME/BACC_PROGRAM_VIEW"), |
19 | 0 | EDIT_BACC_PROGRAM("/HOME/CURRICULUM_HOME/BACC_PROGRAM_EDIT"), |
20 | 0 | VIEW_BACC_VERSIONS("/HOME/CURRICULUM_HOME/BACC_PROGRAM_VERSIONS"), |
21 | 0 | EDIT_PROGRAM("/HOME/CURRICULUM_HOME/PROGRAM_EDIT"), |
22 | 0 | EDIT_PROGRAM_SPEC("/HOME/CURRICULUM_HOME/PROGRAM_SPEC_EDIT"), |
23 | 0 | EDIT_VARIATION("/HOME/CURRICULUM_HOME/VARIATION_EDIT"), |
24 | 0 | VIEW_VARIATION("/HOME/CURRICULUM_HOME/VARIATION_VIEW"), |
25 | 0 | PROGRAM_PROPOSAL("/HOME/CURRICULUM_HOME/PROGRAM_PROPOSAL"), |
26 | 0 | MANAGE_CLU_SETS("/HOME/CURRICULUM_HOME/CLU_SETS"), |
27 | 0 | MANAGE_LO_CATEGORIES("/HOME/CURRICULUM_HOME/LO_CATEGORIES"), |
28 | 0 | BROWSE_CATALOG("/HOME/CURRICULUM_HOME/COURSE_CATALOG"), |
29 | 0 | BROWSE_PROGRAM("/HOME/CURRICULUM_HOME/BROWSE_PROGRAM"), |
30 | 0 | VIEW_CLU_SET("/HOME/CURRICULUM_HOME/CLU_SETS/VIEW"), |
31 | 0 | DEPENDENCY_ANALYSIS("/HOME/CURRICULUM_HOME/DEPENDENCY_ANALYSIS"); |
32 | |
|
33 | |
private String location; |
34 | |
|
35 | 0 | private Locations(String location) { |
36 | 0 | this.location = location; |
37 | 0 | } |
38 | |
|
39 | |
public String getLocation() { |
40 | 0 | return location; |
41 | |
} |
42 | |
} |
43 | |
|
44 | |
@Override |
45 | |
public String getLocation(String enumName) { |
46 | 0 | Locations e = Locations.valueOf(enumName); |
47 | 0 | if (e != null) { |
48 | 0 | return e.getLocation(); |
49 | |
} else { |
50 | 0 | return null; |
51 | |
} |
52 | |
} |
53 | |
|
54 | |
} |