| 1 |
|
package org.kuali.student.lum.program.client; |
| 2 |
|
|
| 3 |
|
import java.util.ArrayList; |
| 4 |
|
import java.util.HashMap; |
| 5 |
|
|
| 6 |
|
import org.kuali.student.lum.program.client.requirements.ProgramRequirementsViewController; |
| 7 |
|
|
| 8 |
|
|
| 9 |
|
|
| 10 |
|
|
| 11 |
|
@author |
| 12 |
|
|
|
|
|
| 0% |
Uncovered Elements: 16 (16) |
Complexity: 4 |
Complexity Density: 0.33 |
|
| 13 |
|
public enum ProgramSections { |
| 14 |
|
PROGRAM_DETAILS_VIEW, |
| 15 |
|
PROGRAM_DETAILS_EDIT, |
| 16 |
|
SPECIALIZATIONS_VIEW, |
| 17 |
|
SPECIALIZATIONS_EDIT, |
| 18 |
|
PROGRAM_REQUIREMENTS_VIEW, |
| 19 |
|
PROGRAM_REQUIREMENTS_EDIT, |
| 20 |
|
MANAGE_BODIES_VIEW, |
| 21 |
|
MANAGE_BODIES_EDIT, |
| 22 |
|
CATALOG_INFO_VIEW, |
| 23 |
|
CATALOG_INFO_EDIT, |
| 24 |
|
LEARNING_OBJECTIVES_VIEW, |
| 25 |
|
LEARNING_OBJECTIVES_EDIT, |
| 26 |
|
SUPPORTING_DOCUMENTS_VIEW, |
| 27 |
|
SUPPORTING_DOCUMENTS_EDIT, |
| 28 |
|
VIEW_ALL, |
| 29 |
|
SUMMARY, |
| 30 |
|
COMMENTS, |
| 31 |
|
EMPTY; |
| 32 |
|
|
| 33 |
|
private static HashMap<Enum<?>, Enum<?>> sectionMap = new HashMap<Enum<?>, Enum<?>>(); |
| 34 |
|
|
| 35 |
|
private static ArrayList<String> viewForUpdate = new ArrayList<String>(); |
| 36 |
|
|
|
|
|
| 0% |
Uncovered Elements: 3 (3) |
Complexity: 1 |
Complexity Density: 0.33 |
|
| 37 |
0
|
static{... |
| 38 |
0
|
viewForUpdate.add(SPECIALIZATIONS_EDIT.name()); |
| 39 |
0
|
viewForUpdate.add(MANAGE_BODIES_EDIT.name()); |
| 40 |
0
|
viewForUpdate.add(LEARNING_OBJECTIVES_EDIT.name()); |
| 41 |
|
} |
| 42 |
|
|
|
|
|
| 0% |
Uncovered Elements: 7 (7) |
Complexity: 1 |
Complexity Density: 0.14 |
|
| 43 |
0
|
static {... |
| 44 |
0
|
sectionMap.put(PROGRAM_DETAILS_VIEW, PROGRAM_DETAILS_EDIT); |
| 45 |
0
|
sectionMap.put(SPECIALIZATIONS_VIEW, SPECIALIZATIONS_EDIT); |
| 46 |
0
|
sectionMap.put(ProgramRequirementsViewController.ProgramRequirementsViews.PREVIEW, PROGRAM_REQUIREMENTS_EDIT); |
| 47 |
0
|
sectionMap.put(MANAGE_BODIES_VIEW, MANAGE_BODIES_EDIT); |
| 48 |
0
|
sectionMap.put(CATALOG_INFO_VIEW, CATALOG_INFO_EDIT); |
| 49 |
0
|
sectionMap.put(LEARNING_OBJECTIVES_VIEW, LEARNING_OBJECTIVES_EDIT); |
| 50 |
0
|
sectionMap.put(SUPPORTING_DOCUMENTS_VIEW, SUPPORTING_DOCUMENTS_EDIT); |
| 51 |
|
} |
| 52 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 53 |
0
|
public static Enum<?> getEditSection(Enum<?> viewSection) {... |
| 54 |
0
|
return sectionMap.get(viewSection); |
| 55 |
|
} |
| 56 |
|
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
| 57 |
0
|
public static ArrayList<String> getViewForUpdate() {... |
| 58 |
0
|
return viewForUpdate; |
| 59 |
|
} |
| 60 |
|
} |