老妖的博客
          現(xiàn)實(shí)的中沒(méi)有幾個(gè)人能夠真為對(duì)方去死,甚至山盟海誓很快就會(huì)在金錢(qián)面前變的微不足道,這才是生活。沒(méi)有永遠(yuǎn)的愛(ài),除了你的父母對(duì)你,當(dāng)然也就沒(méi)有永遠(yuǎn)的恨,更沒(méi)有永遠(yuǎn)的痛,時(shí)間是最好的治療大師,它會(huì)很快撫平你心靈上累累的傷痕。很多年以后你想起來(lái)時(shí),那些在你生命中洶涌來(lái)往的人群至多是個(gè)模糊的影子或者毫無(wú)意義的名字
          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 老妖 閱讀(492) 評(píng)論(0)  編輯  收藏 所屬分類: spring

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

          常用鏈接

          隨筆分類(48)

          隨筆檔案(104)

          好友鏈接

          我的豆瓣

          積分與排名

          • 積分 - 221794
          • 排名 - 257

          最新評(píng)論

          閱讀排行榜

          主站蜘蛛池模板: 美姑县| 蓬溪县| 栖霞市| 云浮市| 泰宁县| 监利县| 广饶县| 商丘市| 鲜城| 咸宁市| 灵武市| 千阳县| 陇西县| 鄯善县| 手游| 海原县| 开江县| 新龙县| 南康市| 本溪| 临安市| 五常市| 丰城市| 陵水| 化州市| 滨州市| 通化县| 天峨县| 阳新县| 沽源县| 加查县| 舒城县| 石屏县| 广宗县| 德格县| 昭平县| 万源市| 宜宾市| 郁南县| 翁源县| 铅山县|