Package org.infoglue.cms.applications.databeans

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


    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

    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

    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

            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

Related Classes of org.infoglue.cms.applications.databeans.SessionInfoBean

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.