获取结构Liferay的内容

时间:2014-09-01 10:27:45

标签: structure liferay-6 assets

我想获得结构内容, 更清楚我有这个结构:

enter image description here

我需要根据资产发布者中的“Etablissement”选项制作过滤器

我正在使用Liferay 6.2 ce ga2。

如何实现这一目标?

1 个答案:

答案 0 :(得分: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;
                }
            }