public interface WebCmsDefaultComponentsService
WebCmsDefaultComponentsServiceImpl)| Modifier and Type | Method and Description |
|---|---|
void |
createDefaultComponents(WebCmsAsset<?> asset,
Map<String,String> markerValues)
Creates the default components for an object.
|
void |
createDefaultComponents(WebCmsObject asset,
WebCmsTypeSpecifier<?> typeSpecifier,
Map<String,String> markerValues)
Accepts a single
WebCmsObject. |
void createDefaultComponents(WebCmsAsset<?> asset, Map<String,String> markerValues)
asset - The asset that will receive the generated data.markerValues - Any marker values, specified as a map of the format ('@@marker@@', 'replace value')createDefaultComponents(WebCmsObject, WebCmsTypeSpecifier, Map)void createDefaultComponents(WebCmsObject asset, WebCmsTypeSpecifier<?> typeSpecifier, Map<String,String> markerValues)
WebCmsObject. If no WebCmsTypeSpecifier is specified, nothing happens. Otherwise
retrieves the content template from said WebCmsTypeSpecifier and injects the values into the relevant parts of the WebCmsObject.
Any marker values specified in it's respective parameter are used to update the components as they occur in any
WebCmsComponent that is encountered.asset - The asset that will receive the generated data.typeSpecifier - The type of the assetmarkerValues - Any marker values, specified as a map of the format ('@@marker@@', 'replace value')Copyright © 2020. All rights reserved.