Get content of structure Liferay

孤者浪人 提交于 2019-12-11 20:14:47

问题


I want to get the structure content, to be more clear I have this structure :

And I need to make a filter based on this options of "Etablissement" in the asset publisher

I am using Liferay 6.2 ce ga2.

How to achieve this?


回答1:


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


来源:https://stackoverflow.com/questions/25603742/get-content-of-structure-liferay

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!