RE: How to enable staging on Liferay 7.2 porgrammatically ?

thumbnail
Rajesh Chaurasia, modified 5 Years ago. Regular Member Posts: 183 Join Date: 8/18/11 Recent Posts
Hi All,I wanted to know how to enable staging in Liferay 7.2 , which we could do in  Liferay 6.x using below statement-StagingUtil.enableLocalStaging(userId, group, group, false, false, serviceContext);
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
Hi ,
You can try 
 StagingLocalServiceUtil.enableLocalStaging(userId, liveGroup, branchingPublic, branchingPrivate, serviceContext);
thumbnail
Rajesh Chaurasia, modified 5 Years ago. Regular Member Posts: 183 Join Date: 8/18/11 Recent Posts
Thanks Mohammed , i will try the fix suggested by you and update this post