private List<Integer> getPriviledgedRoles(String url, RequestMethod method) {

        Map<String, Map<RequestMethod, List<Integer>>> roleResMap = roleResMgr.getAllAsMap();
        Map<RequestMethod, List<Integer>> methodMap = roleResMap.get(url);
        if (methodMap == null) {
            return new ArrayList<Integer>();
        }

        List<Integer> roleIdList = methodMap.get(method);
        if (roleIdList == null) {
            roleIdList = new ArrayList<Integer>();
        }

        return roleIdList;
    }
private List < Integer > getPriviledgedRoles ( String url , RequestMethod method ) { Map < String , Map < RequestMethod , List < Integer > > > roleResMap = roleResMgr . getAllAsMap ( ) ; Map < RequestMethod , List < Integer > > methodMap = roleResMap . get ( url ) ; if ( methodMap == null ) { return new ArrayList < Integer > ( ) ; } List < Integer > roleIdList = methodMap . get ( method ) ; if ( roleIdList == null ) { roleIdList = new ArrayList < Integer > ( ) ; } return roleIdList ; }
获取可以访问方法的角色id列表

@param url
@param method

@return