How to increase Journal Article Version without ServiceContext

Adrian Pol, modified 7 Years ago. Junior Member Posts: 49 Join Date: 3/14/17 Recent Posts

Hello to all :)

We need to create a new version of the Journal keeping the old versions, we currently use the JournalArticleLocalServiceutil.updateArticle and we pass the serviceContext, is it possible to create a new version (and therefore a new row in the database) with another method in which do not need the serviceContext?

 

thank you :)

thumbnail
David H Nebinger, modified 7 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts

The convenience methods are just that, a convenience.  You can always go directly to the addJournalArticle()/updateJournalArticle() methods from the base class to handle it all yourself.

Note, however, that I said "to handle it all yourself".