Release Notes / Version 11.2210
Table Of ContentsA new way of creating contents within the Unified API is available:
ContentRepository.createContentBuilder()
It combines several aspects of content creation such as
ContentRepository.createChild(...)
and
ContentType.createByTemplate(...)
.
The most simple approach of creating a content is:
repository.createContentBuilder() .type("CMArticle") .name("My Article") .create();
which will create an article directly at root-folder.
For more details, consult the corresponding JavaDoc in Common API of
com.coremedia.cap.content.create.ContentBuilder
Upgrade Notes:
The pattern has been introduced to some production and test files in CoreMedia Blueprint. While, generally, no upgrade steps are required, you may experience merge conflicts, when you adapted corresponding code sections.
If any conflicts arise, it is safe keeping your changes in favor over the changes introduced with this update. All former methods will work in the same way.
Affected production files:
DefaultTaxonomy.java
inapps/studio-server/blueprint/modules/shared/taxonomies/src/main/java/com/coremedia/blueprint/taxonomies/strategy
SettingsUploadInterceptor.java
inapps/studio-server/blueprint/modules/extensions/validators/validators-studio-lib/src/main/java/com/coremedia/blueprint/studio/rest/intercept
TopicPagesResource.java
inmodules/extensions/custom-topic-pages/custom-topic-pages-rest-extension/src/main/java/com/coremedia/blueprint/studio/topicpages/rest
UpdateAssetMetadataWriteInterceptorTest.java
inmodules/extensions/am/am-studio-component/src/test/java/com/coremedia/blueprint/assets/studio/intercept
WordUploadInterceptor.java
inapps/studio-server/blueprint/modules/extensions/validators/validators-studio-lib/src/main/java/com/coremedia/blueprint/studio/rest/intercept
Affected test files:
CMQueryListImplPaginationTest.java
inshared/middle/blueprint/modules/cae/contentbeans/src/test/java/com/coremedia/blueprint/cae/contentbeans
LocalizationServiceTest.java
inshared/middle/blueprint/modules/shared/content-services/src/test/java/com/coremedia/blueprint/localization
(CMS-18001)