public class PortalConfiguration extends Object implements ServletContextListener
PortalConfiguration(String)
)
to be used outside the web container.Modifier and Type | Class and Description |
---|---|
static class |
PortalConfiguration.SystemBean
Bean used as system variable in lumisDataPath EL
evaluation.
|
Constructor and Description |
---|
PortalConfiguration()
Constructor for the web container to call it as a ServletContextListener.
|
PortalConfiguration(String lumisDataDir)
Constructor for custom configuration outside a web container.
|
PortalConfiguration(String lumisDataDir,
boolean initialize)
Constructor for custom configuration outside a web container.
|
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(ServletContextEvent event)
Cleanup the current portal configuration, if initialized through the web.xml.
|
void |
contextInitialized(ServletContextEvent event)
Initializes the current portal configuration.
|
static PortalConfiguration |
getCurrentConfiguration()
Returns the current portal configuration.
|
String |
getLumisDataPath()
Returns the lumis data path.
|
void |
init(ServletContextEvent event) |
boolean |
isDevelopmentMode()
Indicates if the portal is running in development mode.
|
static void |
setCurrentConfiguration(PortalConfiguration currentConfiguration)
Method for setting a custom configuration outside a web container.
|
public PortalConfiguration()
public PortalConfiguration(String lumisDataDir)
PortalConfiguration(String, boolean)
public PortalConfiguration(String lumisDataDir, boolean initialize)
lumisDataDir
- the path for the portal lumisdata directory.initialize
- if true, the portal will be initialized. Use false only
when performing operations without an existing database, such as
initializing the portal database.public void contextInitialized(ServletContextEvent event)
contextInitialized
in interface ServletContextListener
event
- instance of ServletContextEventpublic void init(ServletContextEvent event)
public void contextDestroyed(ServletContextEvent event)
contextDestroyed
in interface ServletContextListener
public String getLumisDataPath()
public boolean isDevelopmentMode()
public static PortalConfiguration getCurrentConfiguration()
public static void setCurrentConfiguration(PortalConfiguration currentConfiguration)
LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.