2012-04-09 83 views
0

的链接是: http://localhost:8080/api/jsonws?signature=/journalarticle/get-article-content-4-groupId-articleId-languageId-themeDisplay如何通过API从Liferay获取内容?

我试图用JournalArticle服务和方法得到-文章内容,其中有几个参数:

  1. 的groupId(长)
  2. 条款ArticleID(Java .lang.String)
  3. languageId(java.lang.String)
  4. themeDisplay(com.liferay.port al.theme.ThemeDisplay)

随着的groupId条款ArticleIDlanguageId是明确的。但我不明白通过作为themeDisplay ...

+0

我试图为[文件]中(http://www.liferay.com/documentation/liferay-portal /6.1/development/-/ai/json-web-services)使用-themeDisplay发送null ...并且它工作:) – 2012-04-09 14:06:18

回答

0

试试这个:

ThemeDisplay themeDisplay = (ThemeDisplay) req.getAttribute(WebKeys.THEME_DISPLAY); 
相关问题