@RequestMapping(value = "/manager/viewKeyVault", method = RequestMethod.GET)
public String viewKeyVault(HttpServletRequest requst, Model model) {
List<InternationalizedObject> applicationTypes = new ArrayList<InternationalizedObject>();
for (ApplicationType applicationType : ApplicationType.getAllKeyVaultCandidates()) {
try {
applicationTypes.add(new InternationalizedObject(applicationType, messageSource.getMessage(applicationType.getMessageKey(), null, requst.getLocale())));
} catch (NoSuchMessageException ex) {
log.error(String.format("No message for applicationType: %s", applicationType.name()), ex);
// Put the applicationType name so that the application doesn't error out.
applicationTypes.add(new InternationalizedObject(applicationType, applicationType.name()));
}
}
model.addAttribute("applicationTypes", applicationTypes);
if (!model.containsAttribute("keyVaultEntryForm")) {