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