George Zalizko
George Zalizko

Reputation: 85

How to get content from Liferay through API?

The link is: http://localhost:8080/api/jsonws?signature=/journalarticle/get-article-content-4-groupId-articleId-languageId-themeDisplay

I trying to use JournalArticle service and method get-article-content where are few parameters:

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

With groupId, articleId, languageId is clear. But I don't understand what to pass as themeDisplay ...

Upvotes: 0

Views: 2253

Answers (1)

Vipin Bardia
Vipin Bardia

Reputation: 179

Try this:

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

Upvotes: 0

Related Questions