close

Filter

loading table of contents...

Blueprint Developer Manual / Version 2512.1

Table Of Contents

5.6.2.2 Variant Service

The interface ContentVariantService defines methods that let you access baseline and variant content items without having to deal with the intricacies of the content type model. The Spring application context provides an instance of this interface in the CAE, the Headless Server, the Studio Server, and the Content Feeder.

In particular, the service retrieves the variant descriptions for a given baseline content item. These descriptions use subclasses of the ContentVariant interface:

  • A SegmentedContentVariant represents a variant that is shown to one or more user segments.

  • A TestCaseContentVariant represents a variant that is shown to users assigned to a certain test case.

  • A TestControlContentVariant indicates that a user belongs to a test control group. Unlike the other two descriptions, a test control does not come with a specific variant content item to render. Instead, the CAE should render the variant with the highest priority but count the view towards the test control.

You can also navigate from a variant back to its baseline and retrieve the properties of a variant, in particular the conditions that activate it.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.