Package lumis.portal.configuration
Class ServerConfiguration
- java.lang.Object
-
- lumis.portal.configuration.ServerConfiguration
-
public class ServerConfiguration extends java.lang.Object
The LumisXP server configuration.- Since:
- 7.1.0
- Version:
- $Revision$ $Date$
-
-
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 java.lang.String
getBaseSourcePath()
Returns the server base source path.static ServerConfiguration
getCurrentConfiguration()
Returns the current server configuration.java.lang.String
getServerId()
Returns the server identifier.static void
removeConfiguration(java.lang.String serverId)
Removes the configuration for a given server id.void
setBaseSourcePath(java.lang.String baseSourcePath)
Sets the server base source path.static void
updateConfiguration(java.lang.String serverId, java.lang.String baseSourcePath)
Updates the configuration.
-
-
-
Method Detail
-
getServerId
public java.lang.String getServerId()
Returns the server identifier.- Returns:
- the server identifier.
- Since:
- 7.1.0
-
getBaseSourcePath
public java.lang.String getBaseSourcePath()
Returns the server base source path.- Returns:
- the server base source path.
- Since:
- 7.1.0
-
setBaseSourcePath
public void setBaseSourcePath(java.lang.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(java.lang.String serverId, java.lang.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(java.lang.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
-
-