当前位置: 代码迷 >> Access >> springsecurity 之 SpecialAccessDecision.java 补给
  详细解决方案

springsecurity 之 SpecialAccessDecision.java 补给

热度:9882   发布时间:2013-02-26 00:00:00.0
springsecurity 之 SpecialAccessDecision.java 补充

if(perm.getLv()<=0)
??? ???{
??? ????if(isTopAdmin(url,hasRole,String.valueOf(perm.getLv())))
??? ????{
??? ?????return true;
??? ????}
??? ???}
??? ???if(perm.getResources()==null || perm.getResources().size()==0)
??? ???{
??? ????continue;
??? ???}
??? ???else
??? ???{
??? ????rescs = new ArrayList<Resource>(perm.getResources());
??????????? ??if(rescs!=null && rescs.size()>0)
??????????? ??{
??????? ???? ??for(Resource resc : rescs)
??????? ???? ??{
??????? ???? ???if (urlMatcher.pathMatchesUrl(resc.getResourceName(), url)) {
??????? ???? ????if(allowAccessUnspecialUrl(url))
??????? ???? ????{
??????? ???? ?????return true;
??????? ???? ????}???? ????
??????? ???? ???}
??????? ???? ??}
??????????? ??}
????}??????? ??
??? ??}??? ??
??? ?}
??? ?return false;
??? }
}

  相关解决方案