use of com.enonic.xp.content.DuplicateContentParams in project xp by enonic.
the class ContentServiceImplTest_duplicate method doDuplicateContent.
private Content doDuplicateContent(final Content content, final Boolean includeChildren) {
final DuplicateContentParams params = DuplicateContentParams.create().contentId(content.getId()).includeChildren(includeChildren).build();
final DuplicateContentsResult result = contentService.duplicate(params);
return this.contentService.getById(result.getDuplicatedContents().first());
}
use of com.enonic.xp.content.DuplicateContentParams in project xp by enonic.
the class ContentServiceImplTest_publish_update_publishedTime method doDuplicateContent.
private Content doDuplicateContent(final Content rootContent) {
final DuplicateContentParams params = DuplicateContentParams.create().contentId(rootContent.getId()).build();
final DuplicateContentsResult result = contentService.duplicate(params);
return this.contentService.getById(result.getDuplicatedContents().first());
}
Aggregations