lumis.portal
Class PortalConfiguration

Package class diagram package PortalConfiguration
java.lang.Object
  extended by lumis.portal.PortalConfiguration
All Implemented Interfaces:
EventListener, ServletContextListener

public class PortalConfiguration
extends Object
implements ServletContextListener

Encapsulates the portal configuration read from the web.xml file. Has an alternative constructor (PortalConfiguration(String)) to be used outside the web container.

Since:
4.0.2

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 as defined in the web.xml.
static PortalConfiguration getCurrentConfiguration()
          Returns the current portal configuration.
 String getLumisDataPath()
          Returns the lumis data path.
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

PortalConfiguration

public PortalConfiguration()
Constructor for the web container to call it as a ServletContextListener.


PortalConfiguration

public PortalConfiguration(String lumisDataDir)
Constructor for custom configuration outside a web container. The portal is initialized as a result of a call to this constructor.

See Also:
PortalConfiguration(String, boolean)

PortalConfiguration

public PortalConfiguration(String lumisDataDir,
                           boolean initialize)
Constructor for custom configuration outside a web container.

Parameters:
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.
Since:
4.0.7
Method Detail

contextInitialized

public void contextInitialized(ServletContextEvent event)
Initializes the current portal configuration as defined in the web.xml.

Specified by:
contextInitialized in interface ServletContextListener

contextDestroyed

public void contextDestroyed(ServletContextEvent event)
Cleanup the current portal configuration, if initialized through the web.xml.

Specified by:
contextDestroyed in interface ServletContextListener

getLumisDataPath

public String getLumisDataPath()
Returns the lumis data path.


getCurrentConfiguration

public static PortalConfiguration getCurrentConfiguration()
Returns the current portal configuration.


setCurrentConfiguration

public static void setCurrentConfiguration(PortalConfiguration currentConfiguration)
Method for setting a custom configuration outside a web container.



Lumisportal  4.1.0.071221 - Copyright © 2001-2007, Lumis. All Rights Reserved.