public class PortalContext extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PortalContext.RelativePath
Deprecated.
Since 4.1.0, replaced by
PortalFilePath . |
static class |
PortalContext.RelativePathType
Deprecated.
Since 4.1.0, replaced by
PortalBaseFolder . |
Modifier and Type | Field and Description |
---|---|
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.
|
static String |
SHARED_FOLDER_NAME
Shared folder name.
|
Constructor and Description |
---|
PortalContext() |
Modifier and Type | Method and Description |
---|---|
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 Node |
getCookieConfig()
Get Node of all cookies options, if wasn't set at lumispotalconfig.xml,
will get the default cookies options.
|
static String |
getDataPath(String relativePath)
Deprecated.
since 8.0.0 use
filesystem API to perform filesystem operations in portal
known files. |
static Locale |
getDefaultLocale()
Deprecated.
since 8.1.0 replaced by
ILocalizationManager.getDefaultLocale() |
static PageDocType |
getDefaultPageDocType() |
static String |
getDefinitionPath(String relativePath)
Deprecated.
since 8.0.0 use
filesystem API to perform filesystem operations in portal
known files. |
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 String |
getFFMPEGExecutablePath()
Returns the absolute file path of the FFMPEG customized by the user.
|
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 String |
getLocalDataPath(String relativePath)
Returns the local data path.
|
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 |
getSimpleVersion()
Returns a simplified version of product's version (in the form <major>.<minor>.<release>).
|
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 |
isCacheStandardMembershipBulkLoadEnabled()
Returns whether the bulk load for the standard membership cache is enabled.
|
static boolean |
isCacheUserSegmentationMembershipBulkLoadEnabled()
Returns whether the bulk load for the user segmentation membership cache is enabled.
|
static boolean |
isClockEnabled() |
static boolean |
isSupportMultiLanguage() |
static void |
setSupportMultiLanguage(boolean supportMultiLanguage) |
public static final String SHARED_FOLDER_NAME
@Deprecated public static final int MODE_USER
PortalModes
@Deprecated public static final int MODE_ADMIN
PortalModes
public static final String DEFAULT_LOADING_HTML_MESSAGE
@Deprecated public static Locale getDefaultLocale()
ILocalizationManager.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
.
@Deprecated public static String getDataPath(String relativePath)
filesystem API
to perform filesystem operations in portal
known files.public static String getLocalDataPath(String relativePath)
relativePath
- the relative local data path.@Deprecated public static String getDefinitionPath(String relativePath)
filesystem API
to perform filesystem operations in portal
known files.@Deprecated 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()
@Deprecated 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
.
@Deprecated 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 boolean isCacheStandardMembershipBulkLoadEnabled()
true
if enabled or false
if disabled.public static boolean isCacheUserSegmentationMembershipBulkLoadEnabled()
true
if enabled or false
if disabled.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.
public static String getFFMPEGExecutablePath()
public static Node getCookieConfig()
public static String getSimpleVersion() throws PortalException
PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.