Interface IServerConfig
- All Known Subinterfaces:
IFrontendServerConfig
- All Known Implementing Classes:
DemoServerConfig
public interface IServerConfig
Common interface for server configurations allowing access to server settings and features.
- Since:
- 8.2.0
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionReturns a set of features this server provides.static IServerConfigReturns the singleton instance of the server configuration via CDI.getServerProperty(String key) Returns the value of the server property with the given key.Returns all user portals that are enabled on this server.default booleanhasFeature(EServerConfigFeature feature) Returns whether this server configuration has the given feature enabled.default booleanhasFeature(String feature) Returns whether this server configuration has the given feature enabled.
-
Method Details
-
getInstance
Returns the singleton instance of the server configuration via CDI.- Returns:
- the singleton instance of the server configuration.
-
getFeatures
-
getUserPortals
Set<UserPortal> getUserPortals()Returns all user portals that are enabled on this server.- Returns:
- a set of all user portals that are enabled on this server.
-
hasFeature
Returns whether this server configuration has the given feature enabled.- Parameters:
feature- to check.- Returns:
trueif the given server feature is enabled in this server configuration andfalseotherwise.
-
hasFeature
Returns whether this server configuration has the given feature enabled.- Parameters:
feature- to check.- Returns:
trueif the given server feature is enabled in this server configuration andfalseotherwise.
-
getServerProperty
-
getSessionTimeoutMinutes
Integer getSessionTimeoutMinutes()- Returns:
- the configured session timeout in minutes, or
nullif not configured.
-