2014-09-01 56 views
0

結構的內容我想要得到的結構內容, 更清楚,我有這樣的結構:獲取Liferay的

enter image description here

,我需要做依據「源泉館」這個選項的過濾器在資產發佈者

我正在使用Liferay 6.2 ce ga2。

如何實現這一目標?

回答

0
 String structureXSD = ""; 

     List<DDMStructure> structures =null; 
     try { 
      structures = DDMStructureLocalServiceUtil.getStructures(); 
      //get all structures 
      for (DDMStructure structureL : structures) { 
       if(structureL.getName().indexOf(structureName) > 0){// 0 for empty string 
        structureXSD = structureL.getXsd(); 
        break; 
       } 
      }