public class WebCmsMultiDomainConfiguration extends Object
WebCmsMultiDomainConfiguration strongly determines the behaviour of the
WebCmsModule regarding its objects. It will automatically configure the administration UI
as well as apply the multi-domain rules during saving of objects (including during imports).
A configuration can only be created using the WebCmsMultiDomainConfiguration.WebCmsMultiDomainConfigurationBuilder
and not be modified afterwards. See the factory methods for default configurations:
| Modifier and Type | Class and Description |
|---|---|
static class |
WebCmsMultiDomainConfiguration.WebCmsMultiDomainConfigurationBuilder |
| Constructor and Description |
|---|
WebCmsMultiDomainConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
static WebCmsMultiDomainConfiguration.WebCmsMultiDomainConfigurationBuilder |
disabled() |
Class<? extends AbstractWebCmsDomainContextFilter> |
getDomainContextFilterClass() |
boolean |
isDomainBound(@NonNull Class<?> entityType)
Check if a type is domain bound.
|
boolean |
isNoDomainAllowed(@NonNull Class<?> entityType)
Check if a domain bound type has the actual domain demarcated as optional.
|
static WebCmsMultiDomainConfiguration.WebCmsMultiDomainConfigurationBuilder |
managementPerDomain()
Create a multi-domain configuration where any
WebCmsDomainBound object is domain bound
by default, with the exception of any WebCmsTypeSpecifier. |
static WebCmsMultiDomainConfiguration.WebCmsMultiDomainConfigurationBuilder |
managementPerEntity()
Create a multi-domain configuration where any
WebCmsDomainBound object is domain bound
by default, with the exception of any WebCmsTypeSpecifier. |
public static WebCmsMultiDomainConfiguration.WebCmsMultiDomainConfigurationBuilder disabled()
public static WebCmsMultiDomainConfiguration.WebCmsMultiDomainConfigurationBuilder managementPerDomain()
WebCmsDomainBound object is domain bound
by default, with the exception of any WebCmsTypeSpecifier.
Domain is determined on a global level, entities are managed within the context of a single domain.public static WebCmsMultiDomainConfiguration.WebCmsMultiDomainConfigurationBuilder managementPerEntity()
WebCmsDomainBound object is domain bound
by default, with the exception of any WebCmsTypeSpecifier.
Domain is determined on the individual entity level.public Class<? extends AbstractWebCmsDomainContextFilter> getDomainContextFilterClass()
public boolean isDomainBound(@NonNull
@NonNull Class<?> entityType)
domainIgnoredTypes.
If multi-domain configuration is disabled, this will return false for any type.entityType - to check if domain boundpublic boolean isNoDomainAllowed(@NonNull
@NonNull Class<?> entityType)
true if multi-domain configuration is disabled,
or if a non-domain bound object is checked.entityType - to check for no-domain allowedCopyright © 2020. All rights reserved.