Package it.unipd.netmus.client.place

Examples of it.unipd.netmus.client.place.LoginPlace


                Cookies.removeCookie("sid");

                // hide and disable the applet
                AppletBar.get(user).appletBarOFF();
                client_factory.getProfileView().stopLoading();
                goTo(new LoginPlace(""));
            }
        });
    }
View Full Code Here


        login_service_svc.getLoggedInUser(new AsyncCallback<String>() {

            @Override
            public void onFailure(Throwable caught) {
                if (caught instanceof LoginException) {
                    goTo(new LoginPlace(""));
                } else {
                    client_factory.getProfileView().showError(
                            my_constants.getSongDTOError());
                    client_factory.getProfileView().stopLoading();
                }
View Full Code Here

        login_service_svc.startLogin(login, new AsyncCallback<String>() {

            @Override
            public void onFailure(Throwable caught) {
                if (caught instanceof LoginException) {
                    goTo(new LoginPlace(username, pass, my_constants
                            .infoLoginIncorrect(), LoginType.NETMUSLOGIN));
                } else {
                    goTo(new LoginPlace(username, pass, my_constants
                            .databaseErrorGeneric(), LoginType.NETMUSLOGIN));
                }
            }

            @Override
View Full Code Here

        final String username = user;
        final String pass = password;
        LoginDTO login = new LoginDTO(user, password);

        if (!FieldVerifier.isValidPassword(password))
            goTo(new LoginPlace(username, pass, my_constants.errorPassword(),
                    LoginType.NETMUSREGISTRATION));
        else if (!FieldVerifier.isValidEmail(username))
            goTo(new LoginPlace(username, pass, my_constants.errorEmail(),
                    LoginType.NETMUSREGISTRATION));
        else if (!password.equals(confirmPassword))
            goTo(new LoginPlace(username, pass, my_constants.errorCPassword(),
                    LoginType.NETMUSREGISTRATION));
        else {

            // Make the call to send login info.
            login_service_svc.insertRegistration(login,
                    new AsyncCallback<LoginDTO>() {

                        @Override
                        public void onFailure(Throwable caught) {
                            goTo(new LoginPlace(username, pass, my_constants
                                    .infoUserUsato(),
                                    LoginType.NETMUSREGISTRATION));
                        }

                        @Override
View Full Code Here

TOP

Related Classes of it.unipd.netmus.client.place.LoginPlace

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.