2012-04-09 84 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); 
相關問題