public final class VoiceOverSectionController {
static public final String DATA_KEY = "data";
@RequestMapping(value = "voiceover/index", method = RequestMethod.GET)
public String showIndex(Model model) {
VoiceOverSectionFactory strategy = new VoiceOverSectionFactory(new J2eeConfig());
List<VoiceOverSection> sections = strategy.getAll();
for (VoiceOverSection section: sections) {
Collections.sort(section.getVoiceovers(), new VoiceOverOrderComparator());
}
try {
model.addAttribute("list", sections);
return "/WEB-INF/website/voiceover/index.jsp";
} finally {
strategy.close();
}
}