Examples of SessionInfoBean


Examples of org.beangle.security.web.session.model.SessioninfoBean

    return SessioninfoBean.class;
  }

  public Sessioninfo build(Authentication auth, String serverName, String sessionid) {
    CategoryPrincipal principal = (CategoryPrincipal) auth.getPrincipal();
    SessioninfoBean info = new SessioninfoBean(sessionid, serverName, auth.getName(),
        principal.getFullname());
    info.setCategory(principal.getCategory());
    Object details = auth.getDetails();
    if (details instanceof WebAuthenticationDetails) {
      WebAuthenticationDetails webdetails = (WebAuthenticationDetails) details;
      info.setAgent(webdetails.getAgent().getBrowser().toString());
      info.setOs(webdetails.getAgent().getOs().toString());
      info.setIp(webdetails.getAgent().getIp());
    }
    return info;
  }
View Full Code Here

Examples of org.infoglue.cms.applications.databeans.SessionInfoBean

    List activeSessionBeanList = CmsSessionContextListener.getSessionInfoBeanList();
    Iterator activeSessionsIterator = activeSessionBeanList.iterator();
    logger.info("activeSessionBeanList:" + activeSessionBeanList.size());
    while(activeSessionsIterator.hasNext())
    {
      SessionInfoBean sessionBean = (SessionInfoBean)activeSessionsIterator.next();
      logger.info("sessionBean:" + sessionBean.getId() + "=" + sessionBean.getPrincipal().getName());
      if(sessionBean.getId().equals(requestSessionId))
      {
        logger.info("Found a matching sessionId");
        allowedSessionId = true;
          this.principal = sessionBean.getPrincipal();

        break;
      }
    }
   
View Full Code Here

Examples of org.infoglue.cms.applications.databeans.SessionInfoBean

    List activeSessionBeanList = CmsSessionContextListener.getSessionInfoBeanList();
    Iterator activeSessionsIterator = activeSessionBeanList.iterator();
    logger.info("activeSessionBeanList:" + activeSessionBeanList.size());
    while(activeSessionsIterator.hasNext())
    {
      SessionInfoBean sessionBean = (SessionInfoBean)activeSessionsIterator.next();
      logger.info("sessionBean:" + sessionBean.getId() + "=" + sessionBean.getPrincipal().getName());
      if(sessionBean.getId().equals(requestSessionId))
      {
        logger.info("Found a matching sessionId");
        allowedSessionId = true;
          this.principal = sessionBean.getPrincipal();

        break;
      }
    }
   
View Full Code Here

Examples of org.infoglue.cms.applications.databeans.SessionInfoBean

    List activeSessionBeanList = CmsSessionContextListener.getSessionInfoBeanList();
    Iterator activeSessionsIterator = activeSessionBeanList.iterator();
    //logger.info("activeSessionBeanList:" + activeSessionBeanList.size());
    while(activeSessionsIterator.hasNext())
    {
      SessionInfoBean sessionBean = (SessionInfoBean)activeSessionsIterator.next();
      //logger.info("sessionBean:" + sessionBean.getId() + "=" + sessionBean.getPrincipal().getName());
      if(sessionBean.getId().equals(requestSessionId))
      {
        //logger.info("Found a matching sessionId");
        allowedSessionId = true;
         
        break;
View Full Code Here

Examples of org.infoglue.cms.applications.databeans.SessionInfoBean

    List<SessionInfoBean> activeSessionBeanList = CmsSessionContextListener.getSessionInfoBeanList();
    Iterator<SessionInfoBean> activeSessionsIterator = activeSessionBeanList.iterator();
    //logger.info("activeSessionBeanList:" + activeSessionBeanList.size());
    while(activeSessionsIterator.hasNext())
    {
      SessionInfoBean sessionBean = activeSessionsIterator.next();
      //logger.info("sessionBean:" + sessionBean.getId() + "=" + sessionBean.getPrincipal().getName());
      if(sessionBean.getId().equals(requestSessionId))
      {
        //logger.info("Found a matching sessionId");
        allowedSessionId = true;

        break;
View Full Code Here

Examples of org.infoglue.cms.applications.databeans.SessionInfoBean

            String s = (String) iter.next();
            HttpSession sess = (HttpSession) sessions.get(s);
           
            try
            {
              SessionInfoBean sib = new SessionInfoBean(sess.getId());
             
              InfoGluePrincipal principal = (InfoGluePrincipal)sess.getAttribute(InfoGlueAuthenticationFilter.INFOGLUE_FILTER_USER);
              if(principal == null)
                principal = (InfoGluePrincipal)sess.getAttribute("infogluePrincipal");
             
              if(principal != null)
              {
                sib.setPrincipal(principal);
                sib.setLastAccessedDate(new Date(sess.getLastAccessedTime()));
               
                stiList.add(sib);
              }
            }
            catch (Exception e)
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.