Examples of LogoutEvent


Examples of br.com.caelum.vraptor.vaas.event.LogoutEvent

     
  }
 
  public void tryToLogout(){
    logger.debug("Firing the LogoutEvent event");
    logoutEvent.fire(new LogoutEvent());
  }
View Full Code Here

Examples of com.casamind.adware.client.event.LogoutEvent

        GWT.log(caught.toString(), caught);
        try {
          throw caught;
        } catch (InvocationException invocationException) {
          if (caught.getMessage().equals(SharedConstants.LOGGED_OUT)) {
            Adware.get().getEventBus().fireEvent(new LogoutEvent());
            return;
          }

          if (retriesLeft <= 0) {
            RPCCall.this.onFailure(invocationException);
          } else {
            call(retriesLeft - 1); // retry call
          }
        } catch (IncompatibleRemoteServiceException remoteServiceException) {
          Window.alert("The app maybe out of date. Reload this page in your browser.");
        } catch (SerializationException serializationException) {
          Window.alert("A serialization error occurred. Try again.");
        } catch (NotLoggedInException e) {
          Adware.get().getEventBus().fireEvent(new LogoutEvent());
        } catch (RequestTimeoutException e) {
          Window.alert("This is taking too long, try again");
        } catch (Throwable e) {// application exception
          RPCCall.this.onFailure(e);
        }
View Full Code Here

Examples of com.metadot.book.connectr.client.event.LogoutEvent

        GWT.log(caught.toString(), caught);
        try {
          throw caught;
        } catch (InvocationException invocationException) {
          if(caught.getMessage().equals(SharedConstants.LOGGED_OUT)){
                ConnectrApp.get().getEventBus().fireEvent(new LogoutEvent());
                return;
          }
         
          if (retriesLeft <= 0) {
            RPCCall.this.onFailure(invocationException);
          } else {
            call(retriesLeft - 1); // retry call
          }
        } catch (IncompatibleRemoteServiceException remoteServiceException) {
          Window.alert("The app maybe out of date. Reload this page in your browser.");
        } catch (SerializationException serializationException) {
          Window.alert("A serialization error occurred. Try again.");
        } catch (NotLoggedInException e) {
          ConnectrApp.get().getEventBus().fireEvent(new LogoutEvent());
        } catch (RequestTimeoutException e) {
          Window.alert("This is taking too long, try again");
        } catch (Throwable e) {// application exception
          RPCCall.this.onFailure(e);
        }
View Full Code Here

Examples of net.relatedwork.client.tools.events.LogoutEvent

    registerHandler(getView().getRwLogoutLink().addClickHandler(
        new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            event.preventDefault(); // do not follow the link!
            getEventBus().fireEvent(new LogoutEvent());
//            Window.alert("Logout");
         
        }));

   
View Full Code Here

Examples of org.appfuse.webapp.client.application.base.security.LogoutEvent

        application.setCurrentUser(null);
        requests.userRequest().logout().fire(new Receiver<Boolean>() {

            @Override
            public void onSuccess(final Boolean response) {
                eventBus.fireEvent(new LogoutEvent());
            }

            @Override
            public void onFailure(final ServerFailure error) {
                Cookies.removeCookie("JSESSIONID");
                Cookies.removeCookie("SPRING_SECURITY_REMEMBER_ME_COOKIE");
                eventBus.fireEvent(new LogoutEvent());
            }
        });
    }
View Full Code Here

Examples of org.hive2hive.core.events.implementations.LogoutEvent

    };
  }

  private ICompletionHandle createLogoutHandle(UserCredentials credentials) {

    final ILogoutEvent logoutEvent = new LogoutEvent(credentials);

    return new ICompletionHandle() {
      public void onCompletionSuccess() {
        notifyLogoutStatus(true, logoutEvent);
      }

      public void onCompletionFailure(RollbackReason reason) {
        logoutEvent.setRollbackReason(reason);
        notifyLogoutStatus(false, logoutEvent);
      }
    };
  }
View Full Code Here

Examples of org.springframework.richclient.security.LogoutEvent

        setAuthentication( null );

        // Fire application event to advise of logout
        ApplicationContext appCtx = Application.instance().getApplicationContext();
        appCtx.publishEvent( new AuthenticationEvent( null ) );
        appCtx.publishEvent( new LogoutEvent( existing ) );

        return existing;
    }
View Full Code Here

Examples of org.springmodules.feedxt.event.LogoutEvent

    public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {
        this.applicationEventPublisher = applicationEventPublisher;
    }
   
    protected ModelAndView handleRequestInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
        this.applicationEventPublisher.publishEvent(new LogoutEvent(this, httpServletRequest.getSession(), this.userHolder.getUser()));
       
        this.userHolder.setUser(null);
        httpServletRequest.getSession().invalidate();
        return new ModelAndView(this.logOutView);
    }
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.