close

Filter

loading table of contents...

Blueprint Developer Manual / Version 2201

Table Of Contents

6.6.4.4 Configure Rendition Publication

Certain renditions can be excluded from publication. To do so the am-server-component comes with an AssetPublishInterceptor which reads the metadata property of assets to determine if a given rendition should be published or not.

The AssetPublishInterceptor bean is added to the Content Server and to the corresponding command-line tools. The following properties control the behavior of the interceptor:

assetMetadataProperty

The Struct property which contains the information whether to publish a rendition or not at path renditions.<rendition-name>.show. When the Boolean property show is true, the rendition blob will be published. Otherwise, the blob will not be available on the master server.

interceptingSubtypes

Boolean flag to control whether also subtypes of type should be intercepted or not.

removeDefault

The default value to control whether a rendition blob should be removed from publication or not. If unset the default is to remove blobs if nothing else is specified in either the metadata struct or in the removal overrides.

removeOverride

Overrides any setting or default for a given rendition. It contains a map from rendition name to removal flag. Thus, if you want the rendition thumbnail to be published in any case add an entry with key thumbnail and value false.

type

The document type the interceptor applies to. For subtype processing set the flag interceptingSubtypes accordingly.

Example 6.10, “Rendition Publication Configuration” shows a possible configuration of the AssetPublishInterceptor.

<beans ...>

  <util:map id="removeOverride"
            key-type="java.lang.String"
            value-type="java.lang.Boolean">
    <entry key="thumbnail" value="false"/>
  </util:map>

  <bean id="assetPublishInterceptor"
        class=
    "com.coremedia.blueprint.assets.server.AssetPublishInterceptor">
    <property name="type" value="AMAsset"/>
    <property name="interceptingSubtypes" value="true"/>
    <property name="assetMetadataProperty" value="metadata"/>
    <property name="removeDefault" value="true"/>
    <property name="removeOverride" ref="removeOverride"/>
  </bean>
</beans>

Example 6.10. Rendition Publication Configuration


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

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