use of com.liferay.blogs.kernel.model.BlogsEntry in project com-liferay-apio-architect by liferay.
the class BlogPostingNestedCollectionResource method _updateBlogsEntry.
private BlogsEntry _updateBlogsEntry(Long entryId, BlogPostingForm blogPostingForm) throws PortalException {
ServiceContext serviceContext = new ServiceContext();
serviceContext.setAddGroupPermissions(true);
serviceContext.setAddGuestPermissions(true);
BlogsEntry blogsEntry = _blogsService.getEntry(entryId);
serviceContext.setScopeGroupId(blogsEntry.getGroupId());
return _blogsService.updateEntry(entryId, blogPostingForm.getHeadline(), blogPostingForm.getAlternativeHeadline(), blogPostingForm.getDescription(), blogPostingForm.getArticleBody(), blogPostingForm.getDisplayDateMonth(), blogPostingForm.getDisplayDateDay(), blogPostingForm.getDisplayDateYear(), blogPostingForm.getDisplayDateHour(), blogPostingForm.getDisplayDateMinute(), false, false, null, null, null, null, serviceContext);
}
Aggregations