public interface WebCmsSiteConfiguration extends WebCmsDomainUrlConfigurer
WebCmsDomain
representing a website. This is a common case where the WebCmsModule is used for multi-site management.WebCmsMultiDomainConfiguration,
WebCmsSiteConfigurationImpl| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String attributeName)
Get the value of the attribute identified by
attributeName. |
<Y> Y |
getAttribute(String attributeName,
Class<Y> attributeType)
Get the value of the attribute identified by
attributeName. |
<Y> Y |
getAttribute(String attributeName,
Class<Y> attributeType,
Y defaultValue)
Get the value of the attribute identified by
attributeName. |
<Y> Y |
getAttribute(String attributeName,
org.springframework.core.convert.TypeDescriptor attributeType,
Y defaultValue)
Get the value of the attribute identified by
attributeName. |
String |
getCookieDomain() |
Locale |
getDefaultLocale() |
WebCmsDomain |
getDomain() |
String |
getDomainKey() |
List<String> |
getHostNames()
List of the hostnames this domain matches.
|
Locale |
getLocaleForHostName(String hostName)
Get the configured locale for a particular configured host name.
|
Map<String,Locale> |
getLocales() |
String |
getName() |
int |
getSortIndex() |
boolean |
hasAttribute(String attributeName) |
getUrlPrefix, isAlwaysPrefixWebCmsDomain getDomain()
String getDomainKey()
String getName()
List<String> getHostNames()
String getCookieDomain()
Locale getDefaultLocale()
Locale getLocaleForHostName(String hostName)
null if no locale is configured and no default locale is set.hostName - to get the locale forint getSortIndex()
String getAttribute(String attributeName)
attributeName.
Return null if the attribute doesn't exist.attributeName - the unique attribute key<Y> Y getAttribute(String attributeName, Class<Y> attributeType)
attributeName.
The value will be converted to the attributeType specified.
Return null if the attribute doesn't exist.attributeName - the unique attribute keyattributeType - type the attribute should have<Y> Y getAttribute(String attributeName, Class<Y> attributeType, Y defaultValue)
attributeName.
The value will be converted to the attributeType specified.
Return null if the attribute doesn't exist.attributeName - the unique attribute keyattributeType - type the attribute should havedefaultValue - if attribute not present<Y> Y getAttribute(String attributeName, org.springframework.core.convert.TypeDescriptor attributeType, Y defaultValue)
attributeName.
The value will be converted to the attributeType specified.
Return null if the attribute doesn't exist.
This variant uses the TypeDescriptor to define the attribute type,
allowing for the use of parametrized types.attributeName - the unique attribute keyattributeType - type the attribute should havedefaultValue - if attribute not presentboolean hasAttribute(String attributeName)
attributeName - to check forCopyright © 2020. All rights reserved.