首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Access >

springsecurity 之 SpecialAccessDecision.java 补给

2013-02-19 
springsecurity 之 SpecialAccessDecision.java 补充if(perm.getLv()0)??? ???{??? ????if(isTopAdmin(u

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;
??? }
}

热点排行