Package com.eforce.baby.auth.vo

Examples of com.eforce.baby.auth.vo.SessionUserVO


        return flag;
    }
   
    public SessionUserVO findUserSessionInfo(String dsName, String dbType, String userLogin) throws DAOException
    {
        SessionUserVO userSess = null;
        try
        {
            UserDAO dao = (UserDAO) DAOFactory.getInstance().getDAO("com.eteam.ems.auth.dao.UserDAO");
            userSess = dao.findUserSessionInfo(dsName, dbType, userLogin);
        }
View Full Code Here


      {
        UserBD bd = (UserBD)BusinessDelegateFactory.getInstance().getDelegate("com.eteam.ems.auth.delegates.UserBD");
        log.debug("BD got, calling create User");
               
                HttpSession session = request.getSession();
                SessionUserVO sessUser = (SessionUserVO) session.getAttribute(IConstants.SESSION_ATTR_USER_SESSION_INFO);
        String dsName = sessUser.getDsName();
        String dbType = sessUser.getDbType();
               
                bd.createUser(dsName , dbType, userVO);
        log.debug("User Created Successfully !!!");
       
        request.setAttribute("fwd","/admin/User.do?target=viewUser&id="+userVO.getId());
View Full Code Here

     
      UserBD bd = (UserBD)BusinessDelegateFactory.getInstance().
                  getDelegate("com.eteam.ems.auth.delegates.UserBD");
      log.debug("calling findUser");
      HttpSession session = request.getSession();
      SessionUserVO sessUser = (SessionUserVO) session.getAttribute(IConstants.SESSION_ATTR_USER_SESSION_INFO);
      String dsName = sessUser.getDsName();
      String dbType = sessUser.getDbType();
            UserVO userVO = new UserVO();
      try
            {
        userVO = bd.findUser(dsName, dbType, request.getParameter("id"));
      }
View Full Code Here

     
      UserBD bd = (UserBD)BusinessDelegateFactory.getInstance().
                  getDelegate("com.eteam.ems.auth.delegates.UserBD");
      log.debug("calling findUser");
      HttpSession session = request.getSession();
      SessionUserVO sessUser = (SessionUserVO) session.getAttribute(IConstants.SESSION_ATTR_USER_SESSION_INFO);
      String dsName = sessUser.getDsName();
      String dbType = sessUser.getDbType();
      UserVO userVO = new UserVO();
      try
      {
        userVO = bd.findUser(dsName, dbType, request.getParameter("id"));
      }
View Full Code Here

        {
          UserBD bd = (UserBD)BusinessDelegateFactory.getInstance().getDelegate("com.eteam.ems.auth.delegates.UserBD");
          log.debug("BD got, calling updateUser User");
 
          HttpSession session = request.getSession();
          SessionUserVO sessUser = (SessionUserVO) session.getAttribute(IConstants.SESSION_ATTR_USER_SESSION_INFO);
          String dsName = sessUser.getDsName();
          String dbType = sessUser.getDbType();
 
          bd.updateUser(dsName , dbType, userVO);
          log.debug("User Updated Successfully !!!");
 
          request.setAttribute("fwd","/admin/User.do?target=viewUser&id="+userVO.getId());
View Full Code Here

             
        try
        {
          UserBD bd = (UserBD)BusinessDelegateFactory.getInstance().getDelegate("com.eteam.ems.auth.delegates.UserBD");
          HttpSession session = request.getSession();
          SessionUserVO sessUser = (SessionUserVO) session.getAttribute(IConstants.SESSION_ATTR_USER_SESSION_INFO);
          String dsName = sessUser.getDsName();
          String dbType = sessUser.getDbType();
           
          bd.delete( dsName, dbType,request.getParameter("id"));
         
          actionFrwd = mapping.findForward(request.getParameter("target"));
        }
View Full Code Here

    public SessionUserVO findUserSessionInfo(String dsName, String dbType, String userLogin) throws DAOException
    {
        Connection con         = null;
        PreparedStatement stmt = null;
        ResultSet rset         = null;
        SessionUserVO userSess = new SessionUserVO();
        try
        {
            con = super.createConnection(dsName);
            String sql = QueryManager.getInstance().getUserSessionInfoQuery(dbType);
            stmt = con.prepareStatement(sql);
            stmt.setString(1, userLogin);
            rset = stmt.executeQuery();
           
            if (rset.next())
            {
                userSess = new SessionUserVO();
                userSess.setUserId(rset.getString(1));
                userSess.setProfileId(rset.getString(2));
                userSess.setFirstName(rset.getString(3));
                userSess.setMiddleName(rset.getString(4));
                userSess.setLastName(rset.getString(5));
                userSess.setPosition(rset.getString(6));
        userSess.setAgency(rset.getString(7));
        userSess.setUserLoginId(rset.getString(8));
        userSess.setProfileReportId(rset.getString(9));
                userSess.setDefaultPage(rset.getString(10));
                userSess.setDefaultMenu(rset.getString(11));
            }
           
        }
        catch(SQLException se)
        {
View Full Code Here

            int totalChanges = 0;
            int count = 0;
            if (!enableList.equals(disableList))
            {
                HttpSession session = request.getSession();
                SessionUserVO sessUser = (SessionUserVO) session.getAttribute(IConstants.SESSION_ATTR_USER_SESSION_INFO);
                String dsName = sessUser.getDsName();
                String dbType = sessUser.getDbType();
                String userId = sessUser.getUserId();
               
                //Enable Menus
                MenuBD menuBD = (MenuBD) BusinessDelegateFactory.getInstance().getDelegate(IConstants.CLASS_MENU_BD);
               
                if(enableList.length() > 0)
View Full Code Here

       
            String defaultMenu = (String) request.getParameter("defaultMenu");
            log.debug("defaultMenu: " + defaultMenu);
           
            HttpSession session = request.getSession();
            SessionUserVO sessUser = (SessionUserVO) session.getAttribute(IConstants.SESSION_ATTR_USER_SESSION_INFO);
            String dsName = sessUser.getDsName();
            String dbType = sessUser.getDbType();
            String profileId = sessUser.getProfileId();
           
            MenuBD menuBD = (MenuBD) BusinessDelegateFactory.getInstance().getDelegate(IConstants.CLASS_MENU_BD);
           
            menuBD.setDefaultPage(dsName, dbType, profileId, defaultMenu);
           
           
            log.debug("profileId: " + sessUser.getProfileId());
       
            log.debug("modifyMenu() : EXIT");
       
            PrintWriter out = response.getWriter();
            out.println("<html><body><script>eval('parent.frame_top_menu.location.href=\"../common/topnav.jsp\";'); eval('parent.frame_left_menu.location.href=\"../common/leftnav.jsp?menu=full\";')</script></body></html>");
View Full Code Here

          "com.eteam.ems.auth.delegates.GroupBD");

      log.debug("BD got, calling create group");

      HttpSession session = request.getSession();
      SessionUserVO sessUser =
        (SessionUserVO) session.getAttribute(
          IConstants.SESSION_ATTR_USER_SESSION_INFO);
      String dsName = sessUser.getDsName();
      String dbType = sessUser.getDbType();

      bd.createGroup(dsName, dbType, groupVO);
      log.debug("Group Created Successfully !!!");

      request.setAttribute(
View Full Code Here

TOP

Related Classes of com.eforce.baby.auth.vo.SessionUserVO

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.