|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlumis.portal.PortalContext
public class PortalContext
Portal Context. Contains global portal configuration information
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 java.lang.String |
DEFAULT_LOADING_HTML_MESSAGE
|
static int |
MODE_ADMIN
Deprecated. Since 6.0.0 due changes in the portal presentation. |
static int |
MODE_USER
Deprecated. Since 6.0.0 due changes in the portal presentation. |
Constructor Summary | |
---|---|
PortalContext()
|
Method Summary | |
---|---|
static org.w3c.dom.Node |
getApplicationServerConfig()
|
static BuildConfig |
getBuildConfig()
|
static int |
getCacheDefaultCapacity()
Returns the default capacity for portal's caches. |
static java.lang.String |
getCacheOverflowType()
Returns the overflow type for portal's caches. |
static int |
getClockTickInterval()
|
static org.w3c.dom.Node |
getClusterConfig()
|
static java.lang.String |
getConfigPath(java.lang.String relativePath)
|
static java.lang.String |
getDataPath(java.lang.String relativePath)
|
static java.util.Locale |
getDefaultLocale()
|
static PageDocType |
getDefaultPageDocType()
|
static java.lang.String |
getDefinitionPath(java.lang.String relativePath)
|
static org.w3c.dom.Node |
getDeviceDetectionNode()
Returns the Device Detection node that was defined on lumisPortalConfig. |
static org.w3c.dom.Node |
getEncryptionConfig()
|
static java.lang.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 java.util.regex.Pattern |
getFileUploadDeniedExtensionsPattern()
Returns the pattern for matching file extensions whose upload are to be denied. |
static java.lang.String |
getFrameworkUrl()
|
static HtmlGenerationConfig |
getHtmlGenerationConfig()
Returns the configuration for the html generation. |
static java.lang.String |
getHttpAuthenticator()
Returns the configured IHttpAuthenticator class name. |
static java.lang.String |
getInterfaceTitleBarStyle()
|
static java.lang.Integer |
getLayoutFilePollIntervalSecs()
Returns the polling interval for changes in a layout file, in seconds. |
static java.lang.String |
getLoadingHtmlMessage()
|
static int |
getLockDefaultDeadlineMinutes()
|
static java.lang.String |
getLoginValidator()
|
static int |
getMajorVersion()
Returns the major version of the portal. |
static long |
getMaxFileUploadSize()
Returns the maximum size for file uploads. |
static int |
getMinorVersion()
Returns the minor version of the portal. |
static java.lang.String |
getNonSSLConnectorPort()
|
static java.lang.String |
getPortalInfo()
Returns the name and version of the portal. |
static java.lang.String |
getRealPath(java.lang.String relativePath)
|
static java.lang.String |
getRootPath()
|
static java.lang.String |
getSecurityAlias()
|
static java.lang.String |
getServerId()
Returns the server id of the current server. |
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 java.lang.String |
getSSLConnectorPort()
|
static java.lang.String |
getWebAppRelativePath(java.lang.String absolutePath)
|
static java.lang.String |
getWebInfPath(java.lang.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 |
---|
@Deprecated public static final int MODE_USER
@Deprecated public static final int MODE_ADMIN
public static final java.lang.String DEFAULT_LOADING_HTML_MESSAGE
Constructor Detail |
---|
public PortalContext()
Method Detail |
---|
public static java.util.Locale getDefaultLocale()
public static java.lang.String getServerId()
public static java.lang.String getFrameworkUrl()
public static java.lang.String getErrorPage()
public static java.lang.String getLoginValidator()
public static java.lang.String getHttpAuthenticator()
IHttpAuthenticator
class name.
public static java.lang.String getRootPath()
public static long getMaxFileUploadSize()
public static java.util.regex.Pattern getFileUploadDeniedExtensionsPattern()
public static java.lang.String getRealPath(java.lang.String relativePath)
public static java.lang.String getWebAppRelativePath(java.lang.String absolutePath)
public static java.lang.String getDataPath(java.lang.String relativePath)
public static java.lang.String getConfigPath(java.lang.String relativePath)
public static java.lang.String getDefinitionPath(java.lang.String relativePath)
public static java.lang.String getWebInfPath(java.lang.String relativePath)
getDefinitionPath(String)
, getConfigPath(String)
,
or getDataPath(String)
.
public static BuildConfig getBuildConfig() throws PortalException
PortalException
public static int getMajorVersion() throws PortalException
PortalException
getMinorVersion()
public static int getMinorVersion() throws PortalException
PortalException
getMajorVersion()
public static java.lang.String getPortalInfo()
The form of the returned string is portalname/versionnumber
.
public static ServiceContainer getServiceContainer()
public static boolean isClockEnabled()
public static int getClockTickInterval()
public static java.lang.String getNonSSLConnectorPort()
public static java.lang.String getSSLConnectorPort()
public static int getLockDefaultDeadlineMinutes()
public static boolean isSupportMultiLanguage()
public static void setSupportMultiLanguage(boolean supportMultiLanguage)
public static HtmlGenerationConfig getHtmlGenerationConfig()
public static org.w3c.dom.Node getClusterConfig()
public static org.w3c.dom.Node getApplicationServerConfig()
public static org.w3c.dom.Node getEncryptionConfig()
public static int getSessionTimeout()
public static java.lang.String getSecurityAlias()
public static java.lang.String getInterfaceTitleBarStyle()
public static int getCacheDefaultCapacity()
ICacheManager
public static java.lang.String getCacheOverflowType()
public static PageDocType getDefaultPageDocType()
public static java.lang.String getLoadingHtmlMessage()
public static int getExecutorMinThreads()
IExecutorManager
.
public static int getExecutorMaxThreads()
IExecutorManager
.
public static java.lang.Integer getLayoutFilePollIntervalSecs()
null
indicates that the default for the current development mode is to be used.public static org.w3c.dom.Node getDeviceDetectionNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |