老妖的博客
          現(xiàn)實(shí)的中沒有幾個(gè)人能夠真為對方去死,甚至山盟海誓很快就會在金錢面前變的微不足道,這才是生活。沒有永遠(yuǎn)的愛,除了你的父母對你,當(dāng)然也就沒有永遠(yuǎn)的恨,更沒有永遠(yuǎn)的痛,時(shí)間是最好的治療大師,它會很快撫平你心靈上累累的傷痕。很多年以后你想起來時(shí),那些在你生命中洶涌來往的人群至多是個(gè)模糊的影子或者毫無意義的名字
          posts - 105,  comments - 171,  trackbacks - 0
             protected ConfigAttributeDefinition lookupAttributes(MethodInvocation mi) {
                //construct secureObjectName
                String secureObjectName=mi.getMethod().getDeclaringClass().getName() +"."+ mi.getMethod().getName();
                SecureObject secureObject=securityManager.getSecureObject(secureObjectName);
                if(secureObject==null)//if secure object not exist in database
                   return null;
                //retrieving roles associated with this secure object
                List secureObjectRoles=(List)securityManager.getSecureObjectRoles(secureObject);
                //creating ConfigAttributeDefinition
                if(!secureObjectRoles.isEmpty()){
                   ConfigAttributeEditor configAttrEditor=new ConfigAttributeEditor();
                   StringBuffer rolesStr=new StringBuffer();
                   for(int i=0;i<secureObjectRoles.size();i++){
                      SecureObjectRole sor=(SecureObjectRole)secureObjectRoles.get(i);
                      rolesStr.append(sor.getRole().getRoleName()).append(",");
                   }
                   configAttrEditor.setAsText( rolesStr.toString().substring(0,rolesStr.length()-1) );
                   ConfigAttributeDefinition configAttrDef=(ConfigAttributeDefinition)configAttrEditor.getValue();
                   return configAttrDef;
                }
                return null;
                
             }
          posted on 2005-10-17 14:35 老妖 閱讀(486) 評論(0)  編輯  收藏 所屬分類: spring

          <2005年10月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          常用鏈接

          隨筆分類(48)

          隨筆檔案(104)

          好友鏈接

          我的豆瓣

          積分與排名

          • 積分 - 221200
          • 排名 - 257

          最新評論

          閱讀排行榜

          主站蜘蛛池模板: 休宁县| 凉城县| 南和县| 新巴尔虎右旗| 秭归县| 昌图县| 兴国县| 南部县| 大关县| 左权县| 兰溪市| 鄄城县| 衡南县| 镇平县| 揭阳市| 许昌县| 进贤县| 化德县| 民丰县| 那曲县| 成武县| 邢台市| 黄冈市| 大石桥市| 双流县| 庆元县| 张北县| 沅江市| 固阳县| 章丘市| 沙湾县| 濮阳市| 宣恩县| 丰宁| 土默特左旗| 安宁市| 铁岭市| 罗源县| 天长市| 长岛县| 阿巴嘎旗|