@Component @Order public class WebCmsAssetModelLoader extends AbstractWebCmsAssetModelLoader<WebCmsAsset<?>>
WebCmsAsset. Registers the WebCmsAsset as an attribute on the model.
The asset will actually be registered twice, once as asset attribute name, and once with an attribute name
determined by the value of WebCmsObjectInheritanceSuperClass.getObjectType().
This loader also loads the WebCmsComponentModelSet as
default scope on the WebCmsComponentModelHierarchy.
The scope name is the value of WebCmsObjectInheritanceSuperClass.getObjectType().
Registered as the last loader to execute. Will not allow a next loader to execute.| Modifier and Type | Field and Description |
|---|---|
static String |
ASSET_MODEL_ATTRIBUTE |
| Constructor and Description |
|---|
WebCmsAssetModelLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
loadModel(javax.servlet.http.HttpServletRequest request,
WebCmsAsset<?> asset,
org.springframework.ui.Model model) |
protected boolean |
supports(WebCmsAsset<?> asset) |
loadModel, registerAssetComponentsForScope, setComponentModelHierarchy, setComponentModelServicepublic static final String ASSET_MODEL_ATTRIBUTE
protected boolean supports(WebCmsAsset<?> asset)
supports in class AbstractWebCmsAssetModelLoader<WebCmsAsset<?>>protected boolean loadModel(javax.servlet.http.HttpServletRequest request,
WebCmsAsset<?> asset,
org.springframework.ui.Model model)
loadModel in class AbstractWebCmsAssetModelLoader<WebCmsAsset<?>>Copyright © 2020. All rights reserved.