【问题标题】:How to get content from Liferay through API?如何通过 API 从 Liferay 获取内容?
【发布时间】:2013-03-27 21:24:24
【问题描述】:

链接是: http://localhost:8080/api/jsonws?signature=/journalarticle/get-article-content-4-groupId-articleId-languageId-themeDisplay

我尝试使用 JournalArticle 服务和方法 get-article-content,其中的参数很少:

  1. groupId(长)
  2. articleId (java.lang.String)
  3. languageId (java.lang.String)
  4. themeDisplay (com.liferay.portal.theme.ThemeDisplay)

有了groupIdarticleIdlanguageId就清楚了。但我不明白要传递什么作为 themeDisplay ...

【问题讨论】:

  • 我在documentation 中尝试过使用 -themeDisplay 发送 null ...并且它有效:)

标签: api liferay liferay-6


【解决方案1】:

试试这个:

ThemeDisplay themeDisplay = (ThemeDisplay) req.getAttribute(WebKeys.THEME_DISPLAY);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-09-23
    • 1970-01-01
    • 2010-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-23
    相关资源
    最近更新 更多