Package com.narirelays.ems.services

Examples of com.narirelays.ems.services.PrivilegeManagementService


    return SUCCESS;
  }
 
  public String queryUsersOfGroup()//查看组中的所有用户;管理员操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.queryUsersOfGroup(request.getParameter("group_id"));
    }
    return SUCCESS;
  }
View Full Code Here


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

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

    return SUCCESS;
  }
 
  public String modifyRoleByAdmin()//管理员操作,只能修改描述
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.modifyRoleByAdmin(request.getParameter("authority"),parameterMap);
    }
    return SUCCESS;
  }
View Full Code Here

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

    return SUCCESS;
  }
 
  public String addUserAuthorityByAdmin()//为用户增加权限;管理员操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.addUserAuthorityByAdmin(request.getParameter("user_id"),request.getParameter("authority"));
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String addGroupAuthorityByAdmin()//为组增加权限;管理员操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.addGroupAuthorityByAdmin(request.getParameter("group_id"),request.getParameter("authority"));
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String deleteUserAuthorityByAdmin()//删除用户权限;管理员 操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.deleteUserAuthorityByAdmin(request.getParameter("user_id"),request.getParameter("authority"));
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String deleteGroupAuthorityByAdmin()//删除组权限;管理员操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.deleteGroupAuthorityByAdmin(request.getParameter("group_id"),request.getParameter("authority"));
    }
    return SUCCESS;
  }
View Full Code Here

    return SUCCESS;
  }
 
  public String queryUserAuthority()//查询用户权限,用户权限+所在组权限;当前用户操作
  {
    PrivilegeManagementService privilegeManagementService = (PrivilegeManagementService)StorageService.ctx.getBean("privilegeManagementService");
    if(privilegeManagementService!=null)
    {
      resultInfo = privilegeManagementService.queryUserAuthority();
    }
    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.