Package com.eforce.baby.auth.delegates

Examples of com.eforce.baby.auth.delegates.RoleBD


  public ActionForward viewRole( ActionMapping mapping, ActionForm form, HttpServletRequest request,HttpServletResponse response)
                  throws IOException, ServletException
  {
    ActionForward actionFrwd = null;
 
    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"));
    }
    catch (Exception e) {
      log.error("ERROR in viewforupdaterole" +e);
    }
    log.debug("returning findUser");
View Full Code Here


  public ActionForward viewForUpdateRole( ActionMapping mapping, ActionForm form, HttpServletRequest request,HttpServletResponse response)
                    throws IOException, ServletException
  {
    ActionForward actionFrwd = null;

    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"));
    }
    catch (Exception e) {
      log.error("ERROR in viewforupdaterole" +e);
    }
    log.debug("returning findUser");
View Full Code Here

      log.error("ERROR in createRole",e);
    }
    log.debug("Asking for RoleBD");
    try
    {
      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());
      actionFrwd=mapping.findForward("pop_success");
 
View Full Code Here

        log.error("ERROR in updateRole",e);
      }
      log.debug("Asking for DistGroupBD");
      try
      {
        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());
        actionFrwd=mapping.findForward("pop_success");
View Full Code Here

    {
      ActionForward actionFrwd = null;
             
      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"));
      }
      catch (BusinessException be)
      {
View Full Code Here

TOP

Related Classes of com.eforce.baby.auth.delegates.RoleBD

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.