Blueprint Developer Manual / Version 2110
Table Of Contents
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 pathrenditions.
<rendition-name>
.show
. When the Boolean propertyshow
istrue
, 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 keythumbnail
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