获取结构Liferay的内容 [英] Get content of structure Liferay

查看:105
本文介绍了获取结构Liferay的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取结构内容, 更清楚地说,我有这样的结构:

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

我需要基于资产发布者中"Etablissement"的此选项进行过滤

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

我正在使用Liferay 6.2 ce ga2.

I am using Liferay 6.2 ce ga2.

如何实现这一目标?

推荐答案

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

这篇关于获取结构Liferay的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆