@Exposed @Configuration public class WebCmsObjectComponentViewsConfiguration extends Object
WebCmsComponent association for a particular WebCmsObject.
This enables the management UI for components on that asset type.
Use registerComponentsAssociation(EntityConfigurationBuilder) to configure the webCmsComponents association.| Constructor and Description |
|---|
WebCmsObjectComponentViewsConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
void |
disable(Class<? extends WebCmsObject> assetType)
Disable the web components UI for a specific
WebCmsObject implementation. |
void |
enable(Class<? extends WebCmsObject> assetType)
Enable the web components UI for a specific
WebCmsObject implementation. |
void |
registerComponentsAssociation(com.foreach.across.modules.entity.config.builders.EntityConfigurationBuilder<?> configuration)
Manually register a
WebCmsComponent association on the configuration builder. |
public WebCmsObjectComponentViewsConfiguration()
public void enable(Class<? extends WebCmsObject> assetType)
WebCmsObject implementation.
Note: this method should be called before the actual entity configuration happens by EntityModule.assetType - to enablepublic void disable(Class<? extends WebCmsObject> assetType)
WebCmsObject implementation.
Note: this method should be called before the actual entity configuration happens by EntityModule.assetType - to disablepublic void registerComponentsAssociation(com.foreach.across.modules.entity.config.builders.EntityConfigurationBuilder<?> configuration)
WebCmsComponent association on the configuration builder.
Will add the association as embedded and will not suppress delete but warn about linked components.
Name of the association is webCmsComponents.configuration - builderCopyright © 2020. All rights reserved.