|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.PortalConfiguration
public class PortalConfiguration
Encapsulates the portal configuration read from the web.xml file.
Has an alternative constructor (PortalConfiguration(String)
)
to be used outside the web container.
Nested Class Summary | |
---|---|
static class |
PortalConfiguration.SystemBean
Bean used as system variable in lumisDataPath EL evaluation. |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |