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
Structproperty which contains the information whether to publish a rendition or not at pathrenditions.<rendition-name>.show. If the Boolean propertyshowistruethe 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
typeshould 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
thumbnailto be published in any case add an entry with keythumbnailand value false.-
type -
The document type the interceptor applies to. For subtype processing set the flag
interceptingSubtypesaccordingly.
Example 8.9, “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 8.9. Rendition Publication Configuration







