Package com.sparc.knappsack.models

Examples of com.sparc.knappsack.models.InternationalizedObject


    @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")) {
View Full Code Here


            model.addAttribute("domainStatistics", getDomainStatisticsModel(existingOrg));

            List<InternationalizedObject> userRoles = new ArrayList<InternationalizedObject>();
            for (UserRole userRole : UserRole.getAllSelectableForDomainType(DomainType.ORGANIZATION)) {
                try {
                    userRoles.add(new InternationalizedObject(userRole, messageSource.getMessage(userRole.getMessageKey(), null, request.getLocale())));
                } catch (NoSuchMessageException ex) {
                    log.error(String.format("No message for userRole: %s", userRole.name()), ex);

                    // Put the userRole name so that the application doesn't error out.
                    userRoles.add(new InternationalizedObject(userRole, userRole.name()));
                }
            }
            model.addAttribute("userRoles", userRoles);

//            List<InternationalizedObject> applicationTypes = new ArrayList<InternationalizedObject>();
View Full Code Here

        model.addAttribute("keyVaultEntries", keyVaultEntryModels);

        List<InternationalizedObject> appStates = new ArrayList<InternationalizedObject>();
        for (AppState appState : AppState.values()) {
            try {
                appStates.add(new InternationalizedObject(appState, messageSource.getMessage(appState.getMessageKey(), null, request.getLocale())));
            } catch (NoSuchMessageException ex) {
                log.error(String.format("No message for appState: %s", appState.name()), ex);

                // Put the applicationType name so that the application doesn't error out.
                appStates.add(new InternationalizedObject(appState, appState.name()));
            }
        }
        model.addAttribute("appStates", appStates);

        return "manager/manageApplicationVersionTH";
View Full Code Here

            model.addAttribute("keyVaultEntries", keyVaultEntryModels);

            List<InternationalizedObject> appStates = new ArrayList<InternationalizedObject>();
            for (AppState appState : AppState.values()) {
                try {
                    appStates.add(new InternationalizedObject(appState, messageSource.getMessage(appState.getMessageKey(), null, request.getLocale())));
                } catch (NoSuchMessageException ex) {
                    log.error(String.format("No message for appState: %s", appState.name()), ex);

                    // Put the applicationType name so that the application doesn't error out.
                    appStates.add(new InternationalizedObject(appState, appState.name()));
                }
            }
            model.addAttribute("appStates", appStates);

            return "manager/manageApplicationVersionTH";
View Full Code Here

TOP

Related Classes of com.sparc.knappsack.models.InternationalizedObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.