Package org.appfuse.webapp.client.ui.users.updatePassword.UpdatePasswordView

Examples of org.appfuse.webapp.client.ui.users.updatePassword.UpdatePasswordView.UserCredentials



    @Override
    public void onUpdatePasswordClick() {
        final EditorDriver<UserCredentials> editorDriver = view.getEditorDriver();
        final UserCredentials userCredentials = editorDriver.flush();
        final Set<ConstraintViolation<UserCredentials>> violations = getValidator().validate(userCredentials);
        if(!violations.isEmpty()) {
            editorDriver.setConstraintViolations((Set) violations);
            return;
        }

        final boolean isUsingToken = userCredentials.getToken() != null && !"".equals(userCredentials.getToken().trim());

        requests.userRequest().updatePassword(
                userCredentials.getUsername(),
                userCredentials.getToken(),
                userCredentials.getCurrentPassword(),
                userCredentials.getPassword())
                .fire(new Receiver<UserProxy>() {

                    @Override
                    public void onSuccess(final UserProxy response) {
                        if (response == null) {
View Full Code Here

TOP

Related Classes of org.appfuse.webapp.client.ui.users.updatePassword.UpdatePasswordView.UserCredentials

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.