Package io.conducive.client.ui.events

Examples of io.conducive.client.ui.events.UserAuthorizedEvent


        user.setSalt(event.getSalt());
        api.login(user, new HttpCallback<Boolean>(eventBus, Boolean.class) {
            @Override
            public void onSuccess(Boolean result) {
                if (result) {
                    eventBus.post(new UserAuthorizedEvent(user, false));
                } else {
                    eventBus.post(new FailureEvent("Credentials were not recognized. Maybe you want to register?"));
                }
            }
        });
View Full Code Here


        user.setSalt(event.getSalt());
        api.register(user, new HttpCallback<Boolean>(eventBus, Boolean.class) {
            @Override
            public void onSuccess(Boolean result) {
                if (result) {
                    eventBus.post(new UserAuthorizedEvent(user, true));
                } else {
                    eventBus.post(new FailureEvent("Registration wasn't accepted. Try another username."));
                }
            }
        });
View Full Code Here

TOP

Related Classes of io.conducive.client.ui.events.UserAuthorizedEvent

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.