类 InitParamsService

java.lang.Object
com.mbap.resource.service.InitParamsService

@Service("InitParamsService") public class InitParamsService extends Object
  • 字段详细资料

    • resourceOwnerMap

      public Map<String,Object> resourceOwnerMap
      持有权限记录
  • 构造器详细资料

    • InitParamsService

      public InitParamsService()
  • 方法详细资料

    • getIgnoreUrls

      public List<String> getIgnoreUrls()
    • init

      @PostConstruct public void init()
    • loadResourceOwnerMapInCache

      public com.alibaba.fastjson.JSONArray loadResourceOwnerMapInCache(String requestPath)
      根据访问地址,获取持有权限数据
      参数:
      requestPath -
      返回:
    • loadResourceExcludeMapInCache

      public Object loadResourceExcludeMapInCache(String username)
      根据访问地址,获取某用户排除的权限数据
      参数:
      username -
      返回:
    • loadBlackListInCache

      public Object loadBlackListInCache(String type, String key)
      读取黑名单
      参数:
      type - 请求类型:SysConstant.CLIENT_TO_ACCESS客户端,SysConstant.STAFF_TO_ACCESS用户端
      key - 客户端名或用户登录名
      返回:
    • loadErrorNumInCache

      public String loadErrorNumInCache(String key)
      读取错误次数
      参数:
      key - 客户端名或用户登录名
      返回:
    • getRealPath

      public com.alibaba.fastjson.JSONObject getRealPath(javax.servlet.http.HttpServletRequest request)
      根据访问URL获取接口真实地址
      参数:
      request - 请求对象
      返回:
    • getHeadProperties

      public static String getHeadProperties(javax.servlet.http.HttpServletRequest request, String headName)
      获取请求头中的信息
      参数:
      request - 请求对象
      headName - 头信息中对应的名称,如果取ip,则直接传ip
      返回: