Package lumis.portal.configuration
Class ServerConfiguration
- java.lang.Object
-
- lumis.portal.configuration.ServerConfiguration
-
public class ServerConfiguration extends Object
The LumisXP server configuration.- Since:
- 7.1.0
- Version:
- $Revision: 22420 $ $Date: 2019-02-19 16:21:02 -0300 (Tue, 19 Feb 2019) $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ServerConfiguration.ServerConfigurationCommand
This is a server configuration command that updates the configuration information cached.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBaseSourcePath()
Returns the server base source path.static ServerConfiguration
getCurrentConfiguration()
Returns the current server configuration.String
getServerId()
Returns the server identifier.static void
removeConfiguration(String serverId)
Removes the configuration for a given server id.void
setBaseSourcePath(String baseSourcePath)
Sets the server base source path.static void
updateConfiguration(String serverId, String baseSourcePath)
Updates the configuration.
-
-
-
Method Detail
-
getServerId
public String getServerId()
Returns the server identifier.- Returns:
- the server identifier.
- Since:
- 7.1.0
-
getBaseSourcePath
public String getBaseSourcePath()
Returns the server base source path.- Returns:
- the server base source path.
- Since:
- 7.1.0
-
setBaseSourcePath
public void setBaseSourcePath(String baseSourcePath)
Sets the server base source path.- Parameters:
baseSourcePath
- the server base source path.- Since:
- 7.1.0
-
getCurrentConfiguration
public static ServerConfiguration getCurrentConfiguration() throws PortalException
Returns the current server configuration.- Returns:
- the current server configuration.
- Throws:
PortalException
- Since:
- 7.1.0
-
updateConfiguration
public static void updateConfiguration(String serverId, String baseSourcePath) throws PortalException
Updates the configuration.- Parameters:
serverId
- the id of server configuration.baseSourcePath
- the base source path of the server.- Throws:
PortalException
- if any error occurs during the process.- Since:
- 7.1.0
-
removeConfiguration
public static void removeConfiguration(String serverId) throws PortalException
Removes the configuration for a given server id.- Parameters:
serverId
- the server id to be removed.- Throws:
PortalException
- if any error occurs during the process.- Since:
- 7.1.0
-
-