|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.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 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 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 |
getDeviceDetectionNode()
Returns the Device Detection node that was defined on lumisPortalConfig. |
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 Pattern |
getFileUploadDeniedExtensionsPattern()
Returns the pattern for matching file extensions whose upload are to be denied. |
static String |
getFrameworkUrl()
Deprecated. Since 6.2.0, replaced by IWebsite.getMainNonSecureBaseURL()
due to the inclusion of multiple websites.
For best compatibility, this method resolves based on the
default website's main non-secure URL. If there is no default website,
it will throw an |
static HtmlGenerationConfig |
getHtmlGenerationConfig()
Returns the configuration for the html generation. |
static String |
getHttpAuthenticator()
Returns the configured IHttpAuthenticator class name. |
static String |
getInterfaceTitleBarStyle()
|
static Integer |
getLayoutFilePollIntervalSecs()
Returns the polling interval for changes in a layout file, in seconds. |
static String |
getLoadingHtmlMessage()
|
static int |
getLockDefaultDeadlineMinutes()
|
static 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 String |
getNonSSLConnectorPort()
Deprecated. Since 6.2.0, replaced by IWebsite.getMainNonSecureBaseURL()
due to the inclusion of multiple websites.
For best compatibility, this method resolves based on the
default website's main non-secure URL. If there is no default website,
it will throw an |
static String |
getPortalInfo()
Returns the name and version of the portal. |
static String |
getRealPath(String relativePath)
Deprecated. Since 6.2.0, replaced by IWebsite.getWebRootBaseFolder()
due to the inclusion of multiple websites, and consequently, multiple
web roots.
For best compatibility, this method resolves based on the
default website's web root folder. If there is no default website,
it will throw an |
static String |
getRootPath()
Deprecated. Since 6.2.0, replaced by IWebsite.getWebRootBaseFolder()
due to the inclusion of multiple websites, and consequently, multiple
web roots.
For best compatibility, this method resolves based on the
default website's web root folder. If there is no default website,
it will throw an |
static String |
getSecurityAlias()
|
static 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 String |
getSSLConnectorPort()
Deprecated. Since 6.2.0, replaced by IWebsite.getMainSecureBaseURL()
due to the inclusion of multiple websites.
For best compatibility, this method resolves based on the
default website's main non-secure URL. If there is no default website,
it will throw an |
static int |
getTransactionLogAbandonedTimeout()
Returns the timeout for the logging of long-lived transactions. |
static String |
getWebAppRelativePath(String absolutePath)
Deprecated. Since 6.2.0, replaced by IPortalBaseFolder.getRelativePath(String)
in website's web root base folder ,
due to the inclusion of multiple websites, and consequently, multiple
web roots.
For best compatibility, this method resolves based on the
default website's web root folder. If there is no default website,
it will throw an |
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 |
---|
@Deprecated public static final int MODE_USER
@Deprecated public static final int MODE_ADMIN
public static final String DEFAULT_LOADING_HTML_MESSAGE
Constructor Detail |
---|
public PortalContext()
Method Detail |
---|
public static Locale getDefaultLocale()
public static String getServerId()
@Deprecated public static String getFrameworkUrl()
IWebsite.getMainNonSecureBaseURL()
due to the inclusion of multiple websites.
For best compatibility, this method resolves based on the
default website's main non-secure URL. If there is no default website,
it will throw an IllegalStateException
.
public static String getErrorPage()
public static String getLoginValidator()
public static String getHttpAuthenticator()
IHttpAuthenticator
class name.
@Deprecated public static String getRootPath()
IWebsite.getWebRootBaseFolder()
due to the inclusion of multiple websites, and consequently, multiple
web roots.
For best compatibility, this method resolves based on the
default website's web root folder. If there is no default website,
it will throw an IllegalStateException
.
public static long getMaxFileUploadSize()
public static Pattern getFileUploadDeniedExtensionsPattern()
@Deprecated public static String getRealPath(String relativePath)
IWebsite.getWebRootBaseFolder()
due to the inclusion of multiple websites, and consequently, multiple
web roots.
For best compatibility, this method resolves based on the
default website's web root folder. If there is no default website,
it will throw an IllegalStateException
.
@Deprecated public static String getWebAppRelativePath(String absolutePath)
IPortalBaseFolder.getRelativePath(String)
in website's web root base folder
,
due to the inclusion of multiple websites, and consequently, multiple
web roots.
For best compatibility, this method resolves based on the
default website's web root folder. If there is no default website,
it will throw an IllegalStateException
.
public static String getDataPath(String relativePath)
public static String getConfigPath(String relativePath)
public static String getDefinitionPath(String relativePath)
public static String getWebInfPath(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 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 String getNonSSLConnectorPort()
IWebsite.getMainNonSecureBaseURL()
due to the inclusion of multiple websites.
For best compatibility, this method resolves based on the
default website's main non-secure URL. If there is no default website,
it will throw an IllegalStateException
.
public static String getSSLConnectorPort()
IWebsite.getMainSecureBaseURL()
due to the inclusion of multiple websites.
For best compatibility, this method resolves based on the
default website's main non-secure URL. If there is no default website,
it will throw an IllegalStateException
.
public static int getLockDefaultDeadlineMinutes()
public static boolean isSupportMultiLanguage()
public static void setSupportMultiLanguage(boolean supportMultiLanguage)
public static HtmlGenerationConfig getHtmlGenerationConfig()
public static Node getClusterConfig()
public static Node getApplicationServerConfig()
public static Node getEncryptionConfig()
public static int getSessionTimeout()
public static String getSecurityAlias()
public static String getInterfaceTitleBarStyle()
public static int getCacheDefaultCapacity()
ICacheManager
public static String getCacheOverflowType()
public static PageDocType getDefaultPageDocType()
public static String getLoadingHtmlMessage()
public static int getExecutorMinThreads()
IExecutorManager
.
public static int getExecutorMaxThreads()
IExecutorManager
.
public static Integer getLayoutFilePollIntervalSecs()
null
indicates that the default for the current development mode is to be used.public static Node getDeviceDetectionNode()
public static int getTransactionLogAbandonedTimeout()
If a transaction is not disposed within the specified timeout period after its creation, a warning level message is sent to the portal log. The value is in seconds. A non-positive value disables this logging feature. Default value is 600 seconds.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |