public void setSelectedPreservationCaseName(String name) { selectedPreservationCase = null; for (PreservationCase preservationCase : preservationCases) { if (preservationCase.getName().equals(name)) { selectedPreservationCase = preservationCase; } } }
public String getSelectedPreservationCaseName() { if (selectedPreservationCase == null) { return null; } else { return selectedPreservationCase.getName(); } }