Examples of SessionUser


Examples of org.opentides.bean.user.SessionUser

  @Override
  public void forceLogout(String username) {
    // let's logout all sessions of this user
    for (Object prince : sessionRegistry.getAllPrincipals())
      if (prince instanceof SessionUser) {
        SessionUser user = (SessionUser) prince;
        if (user.getUsername().equals(username))
          for (SessionInformation si : sessionRegistry
              .getAllSessions(prince, false))
            si.expireNow();
      }
  }
View Full Code Here

Examples of org.opentides.bean.user.SessionUser

     */
    public final void setUserId() {
        if (this.auditUserId == null
                && SecurityContextHolder.getContext() != null
                && SecurityContextHolder.getContext().getAuthentication() != null) {
            final SessionUser user = SecurityUtil.getSessionUser();
            this.auditUserId = user.getRealId();
            this.auditOfficeName = user.getOffice();
            this.auditUsername = user.getUsername();
        }
    }
View Full Code Here

Examples of pt.opensoft.http.SessionUser

      if (exc == null)
        return null;
      if (exc.getSession(false) == null)
        return null;

      SessionUser sessionUserBean = (SessionUser) facesContext.getApplication().getVariableResolver()
          .resolveVariable(facesContext, SessionUser.SESSION_USER_BEAN_NAME);
      return sessionUserBean;
    } catch (IllegalStateException e) {
      return null;
    }
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.