WebCmsModule provides a basic model for mapping assets and types.
Example assets provided by default are
Related types would be
Both types and assets are implementations of
WebCmsObject can be any object, as long as it has a unique
objectId is a
String value, can be manually assigned but should never change once set.
It should also be unique within a single data store.
objectId is used for importing/exporting and synchronizing data.
The base class for an asset is
Default implementations are
By default an asset has a concept of being published or not.
The repository for working with the abstract
WebCmsAssets also have a sortIndex, which will initially be set to 1000. Should you create your own
WebCmsAsset implementation, do note that if you use a
Builder pattern, that you will need to provide the logic to set the sortIndex to 1000. (e.g. override the default value inside the builder.)
WebCmsAssetLink object is available to link a
WebCmsAsset to any
WebCmsObject with a specific
These links are mapped using
The base class for a type is
A type is a specification attribute for another
Types are simpler objects that have a unique
typeKey and descriptive
typeKey must always be unique within all instances of that type.
typeKey is used heavily throughout code or imports for an easy - readable way of identifying a specific type.
Apart from the
WebCmsTypeSpecifier has a collection of
These are simple key/value pairs of strings that can be used for configuration and behaviour.