001 package org.kuali.student.lum.common.client.widgets; 002 003 import org.kuali.student.common.ui.client.mvc.history.Locations; 004 005 006 public class AppLocations implements Locations { 007 008 public enum Locations { 009 HOME("/HOME"), 010 CURRICULUM_MANAGEMENT("/HOME/CURRICULUM_HOME"), 011 COURSE_PROPOSAL("/HOME/CURRICULUM_HOME/COURSE_PROPOSAL"), 012 COURSE_ADMIN("/HOME/CURRICULUM_HOME/COURSE_ADMIN"), 013 COURSE_RETIRE("/HOME/CURRICULUM_HOME/COURSE_ADMIN_RETIRE"), 014 COURSE_RETIRE_BY_PROPOSAL("/HOME/CURRICULUM_HOME/COURSE_RETIRE_BY_PROPOSAL"), 015 COURSE_ADMIN_NO_VERSION("/HOME/CURRICULUM_HOME/COURSE_ADMIN_NO_VERSION"), 016 VIEW_COURSE("/HOME/CURRICULUM_HOME/VIEW_COURSE"), 017 VIEW_PROGRAM("/HOME/CURRICULUM_HOME/PROGRAM_VIEW"), 018 VIEW_PROGRAM_VERSIONS("/HOME/CURRICULUM_HOME/PROGRAM_VERSIONS"), 019 VIEW_CORE_PROGRAM("/HOME/CURRICULUM_HOME/CORE_PROGRAM_VIEW"), 020 EDIT_CORE_PROGRAM("/HOME/CURRICULUM_HOME/CORE_PROGRAM_EDIT"), 021 VIEW_CORE_VERSIONS("/HOME/CURRICULUM_HOME/CORE_PROGRAM_VERSIONS"), 022 VIEW_BACC_PROGRAM("/HOME/CURRICULUM_HOME/BACC_PROGRAM_VIEW"), 023 EDIT_BACC_PROGRAM("/HOME/CURRICULUM_HOME/BACC_PROGRAM_EDIT"), 024 VIEW_BACC_VERSIONS("/HOME/CURRICULUM_HOME/BACC_PROGRAM_VERSIONS"), 025 EDIT_PROGRAM("/HOME/CURRICULUM_HOME/PROGRAM_EDIT"), 026 EDIT_PROGRAM_SPEC("/HOME/CURRICULUM_HOME/PROGRAM_SPEC_EDIT"), 027 EDIT_VARIATION("/HOME/CURRICULUM_HOME/VARIATION_EDIT"), 028 VIEW_VARIATION("/HOME/CURRICULUM_HOME/VARIATION_VIEW"), 029 PROGRAM_PROPOSAL("/HOME/CURRICULUM_HOME/PROGRAM_PROPOSAL"), 030 MANAGE_CLU_SETS("/HOME/CURRICULUM_HOME/CLU_SETS"), 031 MANAGE_LO_CATEGORIES("/HOME/CURRICULUM_HOME/LO_CATEGORIES"), 032 BROWSE_CATALOG("/HOME/CURRICULUM_HOME/COURSE_CATALOG"), 033 BROWSE_PROGRAM("/HOME/CURRICULUM_HOME/BROWSE_PROGRAM"), 034 VIEW_CLU_SET("/HOME/CURRICULUM_HOME/CLU_SETS/VIEW"), 035 DEPENDENCY_ANALYSIS("/HOME/CURRICULUM_HOME/DEPENDENCY_ANALYSIS"); 036 037 private String location; 038 039 private Locations(String location) { 040 this.location = location; 041 } 042 043 public String getLocation() { 044 return location; 045 } 046 } 047 048 @Override 049 public String getLocation(String enumName) { 050 Locations e = Locations.valueOf(enumName); 051 if (e != null) { 052 return e.getLocation(); 053 } else { 054 return null; 055 } 056 } 057 058 }