lumis.portal
Class PortalContext

Package class diagram package PortalContext
java.lang.Object
  extended by lumis.portal.PortalContext

public class PortalContext
extends Object

Portal Context. Contains global portal configuration information

Since:
4.0.0

Nested Class Summary
static class PortalContext.RelativePath
          Deprecated. Since 4.1.0, replaced by PortalFilePath.
static class PortalContext.RelativePathType
          Deprecated. Since 4.1.0, replaced by PortalBaseFolder.
 
Field Summary
static int MODE_ADMIN
           
static int MODE_USER
           
static String PORTAL_INFO
           
 
Constructor Summary
PortalContext()
           
 
Method Summary
static Node getApplicationServerConfig()
           
static BuildConfig getBuildConfig()
           
static int getCacheDefaultCapacity()
          Returns the default capacity for portal's caches.
static String getCacheOverflowType()
          Returns the overflow type for portal's caches.
static int getClockTickInterval()
           
static Node getClusterConfig()
           
static String getConfigPath(String relativePath)
           
static String getDataPath(String relativePath)
           
static Locale getDefaultLocale()
           
static PageDocType getDefaultPageDocType()
           
static String getDefinitionPath(String relativePath)
           
static Node getEncryptionConfig()
           
static String getErrorPage()
           
static int getExecutorMaxThreads()
          Returns the maximum number of threads to be kept alive by IExecutorManager.
static int getExecutorMinThreads()
          Returns the minimum number of threads to be kept alive by IExecutorManager.
static String getFrameworkUrl()
           
static HtmlGenerationConfig getHtmlGenerationConfig()
          Returns the configuration for the html generation.
static String getHttpAuthenticator()
          Returns the configured IHttpAuthenticator class name.
static String getInterfaceTitleBarStyle()
           
static int getLockDefaultDeadlineMinutes()
           
static String getLoginValidator()
           
static int getMajorVersion()
          Returns the major version of the portal.
static long getMaxFileUploadSize()
           
static int getMinorVersion()
          Returns the minor version of the portal.
static String getNonSSLConnectorPort()
           
static String getRealPath(String relativePath)
           
static String getRootPath()
           
static String getSecurityAlias()
           
static String getServerId()
          Returns the server id of the current server.
static String getServerInfo()
          Returns the name and version of the portal The form of the returned string is portalname/versionnumber.
static ServiceContainer getServiceContainer()
          Returns the service container associated with this portal application.
static int getSessionTimeout()
          Returns the maximum amount of time (in minutes) a session can be inactive before it expires.
static String getSSLConnectorPort()
           
static String getWebAppRelativePath(String absolutePath)
           
static String getWebInfPath(String relativePath)
          Deprecated. Data is not stored in WEB-INF anymore, so this method should not be used. Instead use getDefinitionPath(String), getConfigPath(String), or getDataPath(String).
static boolean isClockEnabled()
           
static boolean isSupportMultiLanguage()
           
static void setSupportMultiLanguage(boolean supportMultiLanguage)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PORTAL_INFO

public static final String PORTAL_INFO
See Also:
Constant Field Values

MODE_USER

public static final int MODE_USER
See Also:
Constant Field Values

MODE_ADMIN

public static final int MODE_ADMIN
See Also:
Constant Field Values
Constructor Detail

PortalContext

public PortalContext()
Method Detail

getDefaultLocale

public static Locale getDefaultLocale()
Returns:
Returns the defaultLanguageId.

getServerId

public static String getServerId()
Returns the server id of the current server.

Returns:
the server id of the current server.
Since:
4.1.0

getFrameworkUrl

public static String getFrameworkUrl()
Returns:
Returns the frameworkUrl.

getErrorPage

public static String getErrorPage()

getLoginValidator

public static String getLoginValidator()

getHttpAuthenticator

public static String getHttpAuthenticator()
Returns the configured IHttpAuthenticator class name.

Returns:
the httpAuthenticator class name, or null if none was configured.
Since:
4.0.10

getRootPath

public static String getRootPath()
Returns:
Returns the rootPath.

getMaxFileUploadSize

public static long getMaxFileUploadSize()

getRealPath

public static String getRealPath(String relativePath)

getWebAppRelativePath

public static String getWebAppRelativePath(String absolutePath)

getDataPath

public static String getDataPath(String relativePath)

getConfigPath

public static String getConfigPath(String relativePath)

getDefinitionPath

public static String getDefinitionPath(String relativePath)

getWebInfPath

public static String getWebInfPath(String relativePath)
Deprecated. Data is not stored in WEB-INF anymore, so this method should not be used. Instead use getDefinitionPath(String), getConfigPath(String), or getDataPath(String).


getBuildConfig

public static BuildConfig getBuildConfig()
                                  throws PortalException
Throws:
PortalException

getMajorVersion

public static int getMajorVersion()
                           throws PortalException
Returns the major version of the portal.

Returns:
the major version
Throws:
PortalException
See Also:
getMinorVersion()

getMinorVersion

public static int getMinorVersion()
                           throws PortalException
Returns the minor version of the portal.

Returns:
the minor version
Throws:
PortalException
See Also:
getMajorVersion()

getServerInfo

public static String getServerInfo()
Returns the name and version of the portal

The form of the returned string is portalname/versionnumber.

Returns:
the string containing at least name and version number

getServiceContainer

public static ServiceContainer getServiceContainer()
Returns the service container associated with this portal application. Used by the presentation manager.

Returns:
Service Container for the portal application

isClockEnabled

public static boolean isClockEnabled()
Returns:
Returns the clockEnabled.

getClockTickInterval

public static int getClockTickInterval()
Returns:
Returns the clockTickInterval.

getNonSSLConnectorPort

public static String getNonSSLConnectorPort()
Returns:
Returns the port for http request.

getSSLConnectorPort

public static String getSSLConnectorPort()
Returns:
Returns the port for https request.

getLockDefaultDeadlineMinutes

public static int getLockDefaultDeadlineMinutes()
Returns:
Returns the default lock deadline (in minutes)

isSupportMultiLanguage

public static boolean isSupportMultiLanguage()

setSupportMultiLanguage

public static void setSupportMultiLanguage(boolean supportMultiLanguage)

getHtmlGenerationConfig

public static HtmlGenerationConfig getHtmlGenerationConfig()
Returns the configuration for the html generation.

Returns:
the configuration for the html generation.
Since:
4.1.0

getClusterConfig

public static Node getClusterConfig()

getApplicationServerConfig

public static Node getApplicationServerConfig()

getEncryptionConfig

public static Node getEncryptionConfig()

getSessionTimeout

public static int getSessionTimeout()
Returns the maximum amount of time (in minutes) a session can be inactive before it expires.

Returns:

getSecurityAlias

public static String getSecurityAlias()

getInterfaceTitleBarStyle

public static String getInterfaceTitleBarStyle()

getCacheDefaultCapacity

public static int getCacheDefaultCapacity()
Returns the default capacity for portal's caches.

Returns:
the default capacity for portal's caches.
Since:
4.0.11
See Also:
ICacheManager

getCacheOverflowType

public static String getCacheOverflowType()
Returns the overflow type for portal's caches.

Returns:
the overflow type for portal's caches.
Since:
4.0.11

getDefaultPageDocType

public static PageDocType getDefaultPageDocType()

getExecutorMinThreads

public static int getExecutorMinThreads()
Returns the minimum number of threads to be kept alive by IExecutorManager.

Returns:
the minimum number of threads.
Since:
4.1.0

getExecutorMaxThreads

public static int getExecutorMaxThreads()
Returns the maximum number of threads to be kept alive by IExecutorManager.

Returns:
the maximum number of threads.
Since:
4.1.0


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