Forums de discussion
Search JournalArticle
Aurélien Praga, modifié il y a 10 années.
Search JournalArticle
New Member Publications: 7 Date d'inscription: 16/01/12 Publications récentes
Hi,
I would like to get a JournalArticle list corresponding to a structure with the Liferay API. For that, I think that the journalarticle/search method is the best.
The problem is that there is a lot of parameters and I don't really know the required parameters.
Here is the list :
companyId
groupId
classNameId
articleId
version
title
description
content
type
structureId
templateId
displayDateGT
displayDateLT
status
reviewDate
andOperator
start
end
obc
Which parameter is required ? What is the date format (for displayDateGT and displayDateLT for example) ?
And do you have an url example ?
Thank you for your help
PS : for the moment, I'm using the Liferay interface at http://.../api/jsonws
I would like to get a JournalArticle list corresponding to a structure with the Liferay API. For that, I think that the journalarticle/search method is the best.
The problem is that there is a lot of parameters and I don't really know the required parameters.
Here is the list :
companyId
groupId
classNameId
articleId
version
title
description
content
type
structureId
templateId
displayDateGT
displayDateLT
status
reviewDate
andOperator
start
end
obc
Which parameter is required ? What is the date format (for displayDateGT and displayDateLT for example) ?
And do you have an url example ?
Thank you for your help
PS : for the moment, I'm using the Liferay interface at http://.../api/jsonws
Aurélien Praga, modifié il y a 10 années.
RE: Search JournalArticle
New Member Publications: 7 Date d'inscription: 16/01/12 Publications récentes
I've found some of these params (timestamp for date...). For example :
http://localhost:8080/api/jsonws/journalarticle/search?formDate=1367322795683&p_auth=TP0uh1pd&companyId=165&groupId=19&classNameId=10103&articleId=null&version=1&title=&description=&content=&type=&structureId=10867&templateId=&displayDateGT=1367323291&displayDateLT=1367323291&status=-1&reviewDate=1367323291&andOperator=true&start=2000&end=0&+obc=com.liferay.portlet.journal.util.comparator.ArticleModifiedDateComparator&p_auth=TP0uh1pd
I'm uinge REST Client for Firefox and I've this error :
{"exception":"No JSON web service action associated with path /journalarticle/search and method POST for /"}
An idea ?
http://localhost:8080/api/jsonws/journalarticle/search?formDate=1367322795683&p_auth=TP0uh1pd&companyId=165&groupId=19&classNameId=10103&articleId=null&version=1&title=&description=&content=&type=&structureId=10867&templateId=&displayDateGT=1367323291&displayDateLT=1367323291&status=-1&reviewDate=1367323291&andOperator=true&start=2000&end=0&+obc=com.liferay.portlet.journal.util.comparator.ArticleModifiedDateComparator&p_auth=TP0uh1pd
I'm uinge REST Client for Firefox and I've this error :
{"exception":"No JSON web service action associated with path /journalarticle/search and method POST for /"}
An idea ?
Vilmos Papp, modifié il y a 10 années.
RE: Search JournalArticle
Liferay Master Publications: 529 Date d'inscription: 21/10/10 Publications récentes
It's maybe related to this issue (already fixed on trunk): http://issues.liferay.com/browse/LPS-29265
Aurélien Praga, modifié il y a 10 années.
RE: Search JournalArticle (Réponse)
New Member Publications: 7 Date d'inscription: 16/01/12 Publications récentes
Finally, with a colleague, we found the problem : http://localhost:8080/api/jsonws/journalarticle/search.19?...
With that, the ws know exactly which method use.
Thank you for your answer
With that, the ws know exactly which method use.
Thank you for your answer
Vilmos Papp, modifié il y a 10 années.
RE: Search JournalArticle
Liferay Master Publications: 529 Date d'inscription: 21/10/10 Publications récentes
You're welcome!
Krunal Kumar Patel, modifié il y a 7 années.
RE: Search JournalArticle
New Member Publications: 7 Date d'inscription: 27/07/12 Publications récentesAurélien Praga:
Finally, with a colleague, we found the problem : http://localhost:8080/api/jsonws/journalarticle/search.19?...
With that, the ws know exactly which method use.
Thank you for your answer
Can you tell me how many field is required ?
Because, I also want to search journal article based on tags, category, content title and keyword.
How you have solve issue?
Thanks in advance.
Krunal Patel
LARYSSA CRISTINO, modifié il y a 5 années.
RE: Search JournalArticle
New Member Publications: 2 Date d'inscription: 05/03/18 Publications récentesAurélien Praga:Finally, with a colleague, we found the problem : http://localhost:8080/api/jsonws/journalarticle/search[b].19[/b]?... With that, the ws know exactly which method use. Thank you for your answer
Sorry,
Can you explain me?
I need so much this resolution...
Thanks.