Package com.googlecode.memwords.web.util

Examples of com.googlecode.memwords.web.util.ScopedLocalizableMessage


        TimeZone timeZone = TimeZone.getTimeZone(this.timeZoneId);
        Preferences newPreferences = preferences.withTimeZone(timeZone);
        accountService.changePreferences(userInformation.getUserId(), newPreferences);
        getContext().setUserInformation(
            userInformation.withPreferences(newPreferences));
        getContext().getMessages().add(new ScopedLocalizableMessage(ChangePreferredTimeZoneActionBean.class,
                                                                    "preferredTimeZoneChanged"));
    }
View Full Code Here


        Preferences preferences = userInformation.getPreferences();
        Preferences newPreferences = preferences.withLocale(this.locale);
        accountService.changePreferences(userInformation.getUserId(), newPreferences);
        getContext().setUserInformation(
            userInformation.withPreferences(newPreferences));
        getContext().getMessages().add(new ScopedLocalizableMessage(ChangePreferredLocaleActionBean.class,
                                                                    "preferredLocaleChanged"));
        return new RedirectResolution(PreferencesActionBean.class);
    }
View Full Code Here

            timeFormat.setTimeZone(timeZone);
            RedirectResolution loginHistoryResolution = new RedirectResolution(LoginHistoryActionBean.class);
            String loginHistoryUrl =
                StringEscapeUtils.escapeHtml(
                     loginHistoryResolution.getUrl(getContext().getLocale()));
            getContext().getMessages().add(new ScopedLocalizableMessage(LoginActionBean.class,
                                                                        "loginSucceededWithLastLogin",
                                                                        dateFormat.format(historicLogin.getDate()),
                                                                        timeFormat.format(historicLogin.getDate()),
                                                                        historicLogin.getIp(),
                                                                        loginHistoryUrl));
View Full Code Here

     */
    public Resolution change() {
        accountService.changePassword(getContext().getUserInformation().getUserId(),
                                      newPassword,
                                      getContext().getUserInformation().getEncryptionKey());
        getContext().getMessages().add(new ScopedLocalizableMessage(
            ChangeMasterPasswordActionBean.class,
            "masterPasswordChanged"));
        return new RedirectResolution(AccountActionBean.class);
    }
View Full Code Here

        cardService.createCard(
                getContext().getUserInformation().getUserId(),
                cardDetails,
                getContext().getUserInformation().getEncryptionKey());
        getContext().getMessages().add(
            new ScopedLocalizableMessage(CreateCardActionBean.class,
                                         "cardCreated",
                                         cardDetails.getName()));
    }
View Full Code Here

     * Destroys the current account
     * @return a redirect resolution to the welcome page, with a success message
     */
    public Resolution destroy() {
        accountService.destroyAccount(getContext().getUserInformation().getUserId());
        getContext().getMessages().add(new ScopedLocalizableMessage(DestroyAccountActionBean.class,
                                                                    "accountDestroyed"));
        getContext().logout();
        return new RedirectResolution(IndexActionBean.class);
    }
View Full Code Here

    /**
     * Performs the card deletion
     */
    protected void doDeleteCard() {
        cardService.deleteCard(cardId);
        getContext().getMessages().add(new ScopedLocalizableMessage(DeleteCardActionBean.class,
                                                                    "cardDeleted"));
    }
View Full Code Here

        CardDetails cardDetails = new CardDetails(cardId, name, login, password, url, iconUrl, note);
        cardService.modifyCard(
                cardDetails,
                getContext().getUserInformation().getEncryptionKey(),
                changePassword);
        getContext().getMessages().add(new ScopedLocalizableMessage(ModifyCardActionBean.class,
                                                                    "cardModified",
                                                                    cardDetails.getName()));
    }
View Full Code Here

        accountService.changePreferences(userInformation.getUserId(),
                                         newPreferences);
        getContext().setUserInformation(
            userInformation.withPreferences(newPreferences));
        getContext().getMessages().add(
            new ScopedLocalizableMessage(ChangePasswordGenerationPreferencesActionBean.class,
                                         "passwordGenerationPreferencesChanged"));
    }
View Full Code Here

        accountService.changePreferences(userInformation.getUserId(),
                                         newPreferences);
        getContext().setUserInformation(
            userInformation.withPreferences(newPreferences));
        getContext().getMessages().add(
            new ScopedLocalizableMessage(ChangePasswordPreferencesActionBean.class,
                                         "passwordPreferencesChanged"));
    }
View Full Code Here

TOP

Related Classes of com.googlecode.memwords.web.util.ScopedLocalizableMessage

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.