Package com.narirelays.ems.services

Examples of com.narirelays.ems.services.PrivilegeManagementService


    return SUCCESS;
  }
 
  public String enableUserByAdmin()//将用户置为有效;管理员操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.modifyUserEnable(request.getParameter("id"),true);
    }
    return SUCCESS;
  }
View Full Code Here


    return SUCCESS;
  }
 
  public String modifyUserEnable()//增加一个标识位,true or false
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    String signal = request.getParameter("enabled");
    Boolean enabled = Boolean.parseBoolean(signal);
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.modifyUserEnable(request.getParameter("id"),enabled);
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String queryAllGroups()//管理员操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.queryAllGroups();
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String addGroup()//管理员操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.addGroup(request.getParameter("name"),parameterMap);
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String modifyGroup()//管理员操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.modifyGroup(request.getParameter("id"),parameterMap);
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String deleteGroup()//管理员操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.deleteGroup(request.getParameter("id"));
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String addGroupUser()//管理员操作,关联用户-组
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.addGroupUser(request.getParameter("user_id"),request.getParameter("group_id"));
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String deleteGroupUser()//管理员操作,解除用户-组关联
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.deleteGroupUser(request.getParameter("user_id"),request.getParameter("group_id"));
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String queryGroupsOfUser()//查看用户对应的组;当前用户操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.queryGroupsOfUser();//当前用户可以 从会话中获取,无需参数
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String queryGroupsOfUserByAdmin()//查看任意用户对应的组;管理员操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.queryGroupsOfUserByAdmin(request.getParameter("user_id"));
    }
    return SUCCESS;
  }
View Full Code Here

TOP

Related Classes of com.narirelays.ems.services.PrivilegeManagementService

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.