Search in sources :

Example 1 with BlogsEntry

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);
}
Also used : ServiceContext(com.liferay.portal.kernel.service.ServiceContext) BlogsEntry(com.liferay.blogs.kernel.model.BlogsEntry)

Aggregations

BlogsEntry (com.liferay.blogs.kernel.model.BlogsEntry)1 ServiceContext (com.liferay.portal.kernel.service.ServiceContext)1