java.lang.Object
com.aoindustries.web.struts.SiteSettings
Provides site-wide settings.
- Author:
- AO Industries, Inc.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Loads theSiteSettings
during application start-up. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetBrand()
Gets the Brand for this site.boolean
Determines if this site allows direct editing of resource bundles.boolean
Defaults tofalse
.static SiteSettings
getInstance
(ServletContext servletContext) Gets the proper settings instance as configured in the web.xml file.Gets the unmodifiable list of languages supported by this site.Gets the root connector.protected String
Gets the password for the root AoservConnector.protected User.Name
Gets the username for the root AoservConnector.getSkins()
Gets the unmodifiable list of skins supported by this site.
-
Constructor Details
-
SiteSettings
-
-
Method Details
-
getInstance
Gets the proper settings instance as configured in the web.xml file. -
getSkins
Gets the unmodifiable list of skins supported by this site.The first one in the list will be used as the default skin, except if Text mode is determined as the default, then any skin named
TextSkin.NAME
will be the default if available. -
getRootAoservConnectorUsername
Gets the username for the root AoservConnector.- See Also:
-
getRootAoservConnectorPassword
Gets the password for the root AoservConnector.- See Also:
-
getRootAoservConnector
Gets the root connector. Because this potentially has unrestricted privileges, this must be used at an absolute minimum for situations where a user isn't logged-in but access to the master is required, such as for sign up requests.- Throws:
ConfigurationException
-
getBrand
Gets the Brand for this site. The returned instance has the permissions of the site's RootAoservConnector and should therefore be used carefully to not allow privilege escalation.- Throws:
IOException
SQLException
-
getLanguages
Gets the unmodifiable list of languages supported by this site.The flags are obtained from http://commons.wikimedia.org/wiki/National_insignia
Then they are scaled to a height of 24 pixels, rendered in gimp 2.
The off version is created by filling with black, opacity 25% in gimp 2.
- Throws:
IOException
SQLException
-
getExceptionShowError
public boolean getExceptionShowError()Defaults tofalse
. -
getCanEditResources
public boolean getCanEditResources()Determines if this site allows direct editing of resource bundles.
-