Examples of LoginPlace


Examples of com.ponysdk.impl.webapplication.page.place.LoginPlace

    }

    @Override
    public void onOpen() {
        // PScript.get().execute("less.watch();");
        start(new LoginPlace());
    }
View Full Code Here

Examples of com.ponysdk.sample.trading.client.place.LoginPlace

        final ActivityManager activityManager = new ActivityManager(mapper);
        activityManager.setDisplay(panel);

        final PlaceHistoryHandler historyHandler = new PlaceHistoryHandler(uiContext.getHistory(), historyMapper, placeController, eventBus);
        historyHandler.setDefaultPlace(new LoginPlace());
        historyHandler.handleCurrentHistory();
    }
View Full Code Here

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

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

        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

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

        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

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

        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

Examples of org.appfuse.webapp.client.ui.login.LoginPlace

                            shell.onLoginEvent(new LoginEvent());
                        } else {
                            showShell();

                            /* Register home place and parse url for current place token */
                            final Place defaultPlace = new LoginPlace(History.getToken());
                            placeHistoryHandler.register(placeController, eventBus, defaultPlace);
                            placeController.goTo(defaultPlace);
                        }
                    }
                });
View Full Code Here

Examples of org.appfuse.webapp.client.ui.login.LoginPlace

        LogoutEvent.register(eventBus, this);

        AuthRequiredEvent.register(eventBus, new AuthRequiredEvent.Handler() {
            @Override
            public void onAuthRequiredEvent(final AuthRequiredEvent authRequiredEvent) {
                placeController.goTo(new LoginPlace(History.getToken()));
            }
        });

        RequestForbidenEvent.register(eventBus, new RequestForbidenEvent.Handler() {
View Full Code Here

Examples of org.appfuse.webapp.client.ui.login.LoginPlace

                            setLookupConstants(lookupConstants);
                            shell.onLoginEvent(loginEvent);

                            final Place currentPlace = placeController.getWhere();
                            if(currentPlace instanceof LoginPlace) {// explicit login
                                final LoginPlace loginPlace = (LoginPlace) currentPlace;
                                if(loginPlace.getHistoryToken() != null && !"".equals(loginPlace.getHistoryToken())) {
                                    History.newItem(loginPlace.getHistoryToken());
                                } else {
                                    placeController.goTo(new HomePlace());
                                }
                            }else {
                                //this was an intercepted login so we leave user on current page
View Full Code Here

Examples of org.appfuse.webapp.client.ui.login.LoginPlace

    @Override
    public void onLogoutEvent(final LogoutEvent logoutEvent) {
        setCurrentUser(null);
        shell.onLogoutEvent(logoutEvent);
        placeController.goTo(new LoginPlace());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.