Class CmsSiteBean
java.lang.Object
org.opencms.workplace.tools.sites.CmsSiteBean
- All Implemented Interfaces:
Serializable
Dialog object for a single site.
- Since:
- 9.0.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.CmsSiteBean(org.opencms.site.CmsSite site) Public constructor with a CmsSite as parameter. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the aliases.org.opencms.site.CmsAlternativeSiteRootMappingGets the alternative site root mapping.Returns the errorPage.Returns the favicon.org.opencms.site.CmsSiteReturns the originalSite.Gets the parameters.intgetPort()Returns the port.floatReturns the position.Returns the list of aliases that are configured to redirect to the site's main URL.Returns the secureUrl.Returns the server.Returns the serverName.Returns the serverProtocol.Returns the siteRoot.Gets the SSL mode.longReturns the timeOffset.getTitle()Returns the title.inthashCode()booleanReturns the secureServer.booleanReturns the exclusiveError.booleanReturns the exclusiveUrl.booleanReturns the secureServer.booleanReturns the web server.voidsetAlternativeSiteRootMapping(org.opencms.site.CmsAlternativeSiteRootMapping alternativeSiteRootMapping) Sets the alternative site root mapping.voidsetErrorPage(String errorPage) Sets the errorPage.voidsetExclusiveError(boolean exclusiveError) Sets the exclusiveError.voidsetExclusiveUrl(boolean exclusiveUrl) Sets the exclusiveUrl.voidsetFavicon(String favicon) Sets the favicon.voidsetParameters(SortedMap<String, String> params) Sets the parameters.voidsetPort(int port) Sets the port.voidsetPosition(float position) Sets the position.voidsetSecureServer(boolean secureServer) Sets the secureServer.voidsetSecureUrl(String secureUrl) Sets the secureUrl.voidSets the server.voidsetServerName(String serverName) Sets the serverName.voidsetServerProtocol(String serverProtocol) Sets the serverProtocol.voidsetSiteRoot(String siteRoot) Sets the siteRoot.voidsetSslMode(String mode) Sets the SSL mode.voidsetTimeOffset(long timeOffset) Sets the timeOffset.voidSets the title.voidsetWebserver(boolean webserver) Sets the web server.org.opencms.site.CmsSiteCreates a new site object based on the members.org.opencms.site.CmsSitetoCmsSite(org.opencms.site.CmsSiteManagerImpl siteManager) Creates a new site object based on the members.toString()
-
Constructor Details
-
CmsSiteBean
public CmsSiteBean()Default constructor. -
CmsSiteBean
Public constructor with a CmsSite as parameter.- Parameters:
site- the site
-
-
Method Details
-
equals
-
getAliases
Returns the aliases.- Returns:
- the aliases
-
getAlternativeSiteRootMapping
Gets the alternative site root mapping.- Returns:
- the alternative site root mapping
-
getErrorPage
Returns the errorPage.- Returns:
- the errorPage
-
getFavicon
Returns the favicon.- Returns:
- the favicon
-
getOriginalSite
Returns the originalSite.- Returns:
- the originalSite
-
getParameters
Gets the parameters.- Returns:
- the site parameters
-
getPort
Returns the port.- Returns:
- the port
-
getPosition
Returns the position.- Returns:
- the position
-
getRedirectAliases
Returns the list of aliases that are configured to redirect to the site's main URL.- Returns:
- the redirect aliases
-
getSecureUrl
Returns the secureUrl.- Returns:
- the secureUrl
-
getServer
Returns the server.- Returns:
- the server
-
getServerName
Returns the serverName.- Returns:
- the serverName
-
getServerProtocol
Returns the serverProtocol.- Returns:
- the serverProtocol
-
getSiteRoot
Returns the siteRoot.- Returns:
- the siteRoot
-
getSslMode
Gets the SSL mode.- Returns:
- the SSL mode
-
getTimeOffset
Returns the timeOffset.- Returns:
- the timeOffset
-
getTitle
Returns the title.- Returns:
- the title
-
hashCode
-
hasSecureServer
Returns the secureServer.- Returns:
- the secureServer
-
isExclusiveError
Returns the exclusiveError.- Returns:
- the exclusiveError
-
isExclusiveUrl
Returns the exclusiveUrl.- Returns:
- the exclusiveUrl
-
isSecureServer
Returns the secureServer.- Returns:
- the secureServer
-
isWebserver
Returns the web server.- Returns:
- the web server
-
setAlternativeSiteRootMapping
public void setAlternativeSiteRootMapping(org.opencms.site.CmsAlternativeSiteRootMapping alternativeSiteRootMapping) Sets the alternative site root mapping.- Parameters:
alternativeSiteRootMapping- the site root mapping
-
setErrorPage
Sets the errorPage.- Parameters:
errorPage- the errorPage to set
-
setExclusiveError
Sets the exclusiveError.- Parameters:
exclusiveError- the exclusiveError to set
-
setExclusiveUrl
Sets the exclusiveUrl.- Parameters:
exclusiveUrl- the exclusiveUrl to set
-
setFavicon
Sets the favicon.- Parameters:
favicon- the favicon to set
-
setParameters
Sets the parameters.- Parameters:
params- the parameters
-
setPort
Sets the port.- Parameters:
port- the port to set
-
setPosition
Sets the position.- Parameters:
position- the position to set
-
setSecureServer
Sets the secureServer.- Parameters:
secureServer- the secureServer to set
-
setSecureUrl
Sets the secureUrl.- Parameters:
secureUrl- the secureUrl to set
-
setServer
Sets the server.- Parameters:
server- the server to set
-
setServerName
Sets the serverName.- Parameters:
serverName- the serverName to set
-
setServerProtocol
Sets the serverProtocol.- Parameters:
serverProtocol- the serverProtocol to set
-
setSiteRoot
Sets the siteRoot.- Parameters:
siteRoot- the siteRoot to set
-
setSslMode
Sets the SSL mode.- Parameters:
mode- the SSL mode
-
setTimeOffset
Sets the timeOffset.- Parameters:
timeOffset- the timeOffset to set
-
setTitle
Sets the title.- Parameters:
title- the title to set
-
setWebserver
Sets the web server.- Parameters:
webserver- the web server to set
-
toCmsSite
Creates a new site object based on the members.- Returns:
- a new site object based on the members
-
toCmsSite
Creates a new site object based on the members.This method with the siteManager parameter is mostly useful for testing, since usually only the global site manager instance is used.
- Parameters:
siteManager- the site manager to use- Returns:
- a new site object based on the members
-
toString
-