|
||||||||||
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
|
static int |
MODE_USER
|
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 Pattern |
getFileUploadDeniedExtensionsPattern()
Returns the pattern for matching file extensions whose upload are to be denied. |
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 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()
|
static String |
getPortalInfo()
Returns the name and version of the portal. |
static String |
getRealPath(String relativePath)
|
static String |
getRootPath()
|
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()
|
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 |
---|
public static final int MODE_USER
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()
public static String getFrameworkUrl()
public static String getErrorPage()
public static String getLoginValidator()
public static String getHttpAuthenticator()
IHttpAuthenticator
class name.
public static String getRootPath()
public static long getMaxFileUploadSize()
public static Pattern getFileUploadDeniedExtensionsPattern()
public static String getRealPath(String relativePath)
public static String getWebAppRelativePath(String absolutePath)
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()
public static String getSSLConnectorPort()
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |