Examples of SessionUserVO


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

      (NotificationAdminBD) BusinessDelegateFactory.getInstance().getDelegate(
        "com.eteam.ems.auth.delegates.NotificationAdminBD");

    // get dsName and dbType from the session - begin
    HttpSession session = request.getSession();
    SessionUserVO sessUser =
      (SessionUserVO) session.getAttribute(
        IConstants.SESSION_ATTR_USER_SESSION_INFO);
    String dsName = sessUser.getDsName();
    String dbType = sessUser.getDbType();
    NotificationAdminVO notVO = new NotificationAdminVO();

    /* Forward to the View Page  */
    try {
      notVO = bd.findGroup(dsName, dbType, request.getParameter("id"));
View Full Code Here

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

            // Authenticate
      userBD.authenticate(cvo.getDatasourceName(), cvo.getDatabaseType(), userVO.getUserName(), userVO.getPassword());
            //Authentication succeeded
           
            // Get user specific info from DB and save this in the user session
            SessionUserVO userSess = userBD.findUserSessionInfo(cvo.getDatasourceName(), cvo.getDatabaseType(), userVO.getUserName());
            userSess.setCustomer(cvo);
            userSess.setDsName(cvo.getDatasourceName());
            userSess.setDbType(cvo.getDatabaseType());
           
            // get user privileges
            UserPrivilegeList userPrivileges = userBD.findUserPrivileges(cvo.getDatasourceName(), cvo.getDatabaseType(), userVO.getUserName());
           
            HttpSession session = request.getSession();
           
            if(userSess.getProfileId() == null)
            {
              log.debug("Profile Id is null");
        /* Get UserID */
        String userID = userBD.findUserID(cvo.getDatasourceName(),cvo.getDatabaseType(),userVO.getUserName());
        userSess.setUserId(userID);
                userSess.setUserPrivilegeList(userPrivileges);
        session.setAttribute(IConstants.SESSION_ATTR_USER_SESSION_INFO, userSess);
        session.setAttribute(IConstants.SESSION_ATTR_HTTP_BINDING_LISTENER, new EEMSHTTPSessionBindingListener());
          log.debug("USER SESSION INFO: " + userSess.toString());
                log.debug("Setting User Login Id: " + userVO.getUserName());
                userSess.setUserLoginId(userVO.getUserName());
        //session.setAttribute("UserLoginID", userVO.getUserName());
        ////////////////////////////////////////////////////////////
        //request.setAttribute("redURL",dynaForm.getString("redURL"));
        if(dynaForm.getString("redURL").equals("/admin/list_customers.jsp"))
          actionFrwd = mapping.findForward("profileRedURL");
        ////////////////////////////////////////////////////////////
        else
          actionFrwd = mapping.findForward("profileURL");
            }
            else
            {
              /* If autoProfileUpdateEnabled is on */
        log.debug("Configuration : "+cvo.getConfigurationType());
        log.debug("Found Profile Id");
                userSess.setUserPrivilegeList(userPrivileges);
        session.setAttribute(IConstants.SESSION_ATTR_USER_SESSION_INFO, userSess);
        session.setAttribute(IConstants.SESSION_ATTR_HTTP_BINDING_LISTENER, new EEMSHTTPSessionBindingListener());
        log.debug("USER SESSION INFO: " + userSess.toString());
               
                /* Check if the forceprofile is enabled or not */
                String profileEnabled = "";
        profileEnabled = userBD.findProfileEnabled(cvo.getDatasourceName(), cvo.getDatabaseType());
               
        //if(cvo.getAutoProfileUpdateEnabled()!= null && cvo.getAutoProfileUpdateEnabled().equals("Y")){
        if(profileEnabled!= null && profileEnabled.equals(IConstants.FORCE_PROFILE_ENABLED))
                {
                  ////////////////////////////////////////////////////////////
          //request.setAttribute("redURL",dynaForm.getString("redURL"));
          ////////////////////////////////////////////////////////////
          log.debug("redurl in login action = " + "/common/profile.do?target=viewReportForUpdate&mode=update&id="+userSess.getProfileId()+"&fromLogin=yesToUpdate&isNonUser=N&redURL="+ URLEncoder.encode(dynaForm.getString("redURL")));
          actionFrwd = new ActionForward("/common/profile.do?target=viewReportForUpdate&mode=update&id="+userSess.getProfileId()+"&fromLogin=yesToUpdate&isNonUser=N&redURL="+URLEncoder.encode(dynaForm.getString("redURL")), true);
        }
        else
                {
          request.setAttribute("fwd2",dynaForm.getString("redURL"));
          actionFrwd=mapping.findForward("pop_success");
View Full Code Here

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

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

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

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

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

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

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

      {
        RoleBD bd = (RoleBD)BusinessDelegateFactory.getInstance().getDelegate("com.eteam.ems.auth.delegates.RoleBD");
        log.debug("BD got, calling updateRole");

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

        bd.updateRole(dsName , dbType, roleVO);
        log.debug("Role Updated Successfully !!!");

        request.setAttribute("fwd","/admin/Role.do?target=viewRole&id="+roleVO.getId());
View Full Code Here

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

             
      try
      {
        RoleBD bd = (RoleBD)BusinessDelegateFactory.getInstance().getDelegate("com.eteam.ems.auth.delegates.RoleBD");
        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
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.