close

Filter

loading table of contents...

Release Notes / Version 11.2207

Table Of Contents

Unified API: ContentRepository.createContentBuilder() Available

A 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 in apps/studio-server/blueprint/modules/shared/taxonomies/src/main/java/com/coremedia/blueprint/taxonomies/strategy

  • SettingsUploadInterceptor.java in apps/studio-server/blueprint/modules/extensions/validators/validators-studio-lib/src/main/java/com/coremedia/blueprint/studio/rest/intercept

  • TopicPagesResource.java in modules/extensions/custom-topic-pages/custom-topic-pages-rest-extension/src/main/java/com/coremedia/blueprint/studio/topicpages/rest

  • UpdateAssetMetadataWriteInterceptorTest.java in modules/extensions/am/am-studio-component/src/test/java/com/coremedia/blueprint/assets/studio/intercept

  • WordUploadInterceptor.java in apps/studio-server/blueprint/modules/extensions/validators/validators-studio-lib/src/main/java/com/coremedia/blueprint/studio/rest/intercept

Affected test files:

  • CMQueryListImplPaginationTest.java in shared/middle/blueprint/modules/cae/contentbeans/src/test/java/com/coremedia/blueprint/cae/contentbeans

  • LocalizationServiceTest.java in shared/middle/blueprint/modules/shared/content-services/src/test/java/com/coremedia/blueprint/localization

(CMS-18001)

Search Results

Table Of Contents