|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.uiinfrastructure.web.BaseVarPack com.plumtree.uiinfrastructure.application.varpacks.ConfigVarPack
public class ConfigVarPack
This varpack contains the base application data. This is read from the base x_config.xml file.
Field Summary | |
---|---|
static java.lang.String |
APP_PLATFORM_DOT_NET
|
static java.lang.String |
APP_PLATFORM_JAVA
|
protected boolean |
m_bIsDotNet
|
protected boolean |
m_bIsJava
|
protected XPHashtable |
m_htConfigXMLSettings
JF- This XPHashtable contains all the settings from x_config.xml (keys and values) We need it for the Memory Debug page where we need to be able to iterate through the keys to display all the values. |
static java.lang.String |
PORTAL_AUTHENTICATION_COMPONENT_TYPE
|
static java.lang.String |
PORTAL_CACHEDSETTINGS_COMPONENT_TYPE
|
static java.lang.String |
PORTAL_INTERNATIONAL_COMPONENT_TYPE
|
static java.lang.String |
PORTAL_MAINURLS_COMPONENT_TYPE
|
static java.lang.String |
PORTAL_PERSONALSETTINGS_COMPONENT_TYPE
|
static java.lang.String |
PORTAL_SECURITY_COMPONENT_TYPE
|
static java.lang.String |
PORTAL_SYSTEMPROPERTIES_COMPONENT_TYPE
|
static java.lang.String |
PORTAL_URLMAPPING_COMPONENT_TYPE
|
static int |
SECURITY_MODE_NO_SSL
JF- Security Mode: No SSL check. |
static int |
SECURITY_MODE_SSL_ACCELERATOR
JF- Security Mode: SSL on every AS using an SSL Accelerator hardware. |
static int |
SECURITY_MODE_SSL_ALL
JF- Security Mode: SSL on every AS. |
static int |
SECURITY_MODE_SSL_CRITICAL_AS_ONLY
JF- Security Mode: SSL on some AS only. |
static java.lang.String |
VARPACK_ID
The string ID of this variable package. |
Constructor Summary | |
---|---|
ConfigVarPack(java.lang.String _strPlatform)
Constructor for ConfigVarPack. |
Method Summary | |
---|---|
protected void |
ExpireContent()
You cannot expire the x_config.xml content. |
int |
GetConfigValueAsInt(java.lang.String _strSection,
java.lang.String _strSubSection,
java.lang.String _strAttribute)
|
java.lang.String |
GetConfigValueAsString(java.lang.String _strSection,
java.lang.String _strSubSection,
java.lang.String _strAttribute)
|
java.lang.Object[] |
GetConfigValues(java.lang.String _strSection,
java.lang.String _strSubSection,
java.lang.String _strAttribute)
|
XPHashtable |
GetConfigXMLSettings()
Returns the XPHashtable with all the setings from config.xml |
boolean |
GetIsDotNet()
Returns whether or not the current platform is .NET. |
boolean |
GetIsJava()
Returns whether or not the current platform is Java. |
protected java.lang.Object |
GetValue(java.lang.String arg0)
This method will return a chunk of from one level under the Config node. |
java.lang.String |
GetVarPackID()
Get the id of this var pack instance. |
IXPEnumerator |
GetVarPackKeys()
This method will return an enumeration of the top level nodes in the XML tree that is x_config.xml. |
protected java.lang.String |
InternalGetConfigValueAsString(java.lang.String _strSection,
java.lang.String _strSubSection,
java.lang.String _strAttribute,
boolean bReportErrors)
This is an internal helper method. |
protected java.lang.Object[] |
InternalGetConfigValues(java.lang.String _strSection,
java.lang.String _strSubSection,
java.lang.String _strAttribute,
boolean bReportErrors)
This is an internal helper method |
protected static XPElement |
InternalGetXMLElement(XPDocument _xmlDoc,
java.lang.String _strSection,
java.lang.String _strSubSection)
Helper method that returns an xml element consisting of all the XML in the specified section and subsection. |
protected void |
Load()
This method loads the x_config.xml file into memory. |
protected void |
LoadComponentSettings(IOKComponent component,
java.lang.String sectionName)
Helper method to load settings in the specified OpenConfig component into the XPHashtable. |
protected void |
Reload()
This method reloads the x_config.xml file into memory. |
Methods inherited from class com.plumtree.uiinfrastructure.web.BaseVarPack |
---|
CanReloadVarPackFromUI, ExpireVarPackContent, GetConfigPath, GetExpireTimeout, GetLastAccessedTimeStamp, GetReloadInterval, GetVarPackValue, IsLoaded, LoadVarPack, ReloadVarPack, SetExpireTimeout, SetReloadInterval |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String VARPACK_ID
public static final java.lang.String PORTAL_MAINURLS_COMPONENT_TYPE
public static final java.lang.String PORTAL_SYSTEMPROPERTIES_COMPONENT_TYPE
public static final java.lang.String PORTAL_URLMAPPING_COMPONENT_TYPE
public static final java.lang.String PORTAL_PERSONALSETTINGS_COMPONENT_TYPE
public static final java.lang.String PORTAL_CACHEDSETTINGS_COMPONENT_TYPE
public static final java.lang.String PORTAL_AUTHENTICATION_COMPONENT_TYPE
public static final java.lang.String PORTAL_SECURITY_COMPONENT_TYPE
public static final java.lang.String PORTAL_INTERNATIONAL_COMPONENT_TYPE
protected boolean m_bIsJava
protected boolean m_bIsDotNet
protected XPHashtable m_htConfigXMLSettings
public static final int SECURITY_MODE_NO_SSL
public static final int SECURITY_MODE_SSL_CRITICAL_AS_ONLY
public static final int SECURITY_MODE_SSL_ALL
public static final int SECURITY_MODE_SSL_ACCELERATOR
public static final java.lang.String APP_PLATFORM_DOT_NET
public static final java.lang.String APP_PLATFORM_JAVA
Constructor Detail |
---|
public ConfigVarPack(java.lang.String _strPlatform)
__strPlatform
- The current platform "Java" or "DotNet")Method Detail |
---|
public java.lang.String GetVarPackID()
BaseVarPack
GetVarPackID
in interface IVarPack
GetVarPackID
in class BaseVarPack
IVarPack.GetVarPackID()
public XPHashtable GetConfigXMLSettings()
public boolean GetIsJava()
public boolean GetIsDotNet()
public int GetConfigValueAsInt(java.lang.String _strSection, java.lang.String _strSubSection, java.lang.String _strAttribute)
_strSection
- _strSubSection
- _strAttribute
-
public java.lang.String GetConfigValueAsString(java.lang.String _strSection, java.lang.String _strSubSection, java.lang.String _strAttribute)
_strSection
- _strSubSection
- _strAttribute
-
protected java.lang.String InternalGetConfigValueAsString(java.lang.String _strSection, java.lang.String _strSubSection, java.lang.String _strAttribute, boolean bReportErrors)
xmlDoc
- the base xml doc to read the values from_strSection
- _strSubSection
- _strAttribute
- bReportErrors
- true implies report errors
public java.lang.Object[] GetConfigValues(java.lang.String _strSection, java.lang.String _strSubSection, java.lang.String _strAttribute)
_strSection
- _strSubSection
- _strAttribute
-
protected java.lang.Object[] InternalGetConfigValues(java.lang.String _strSection, java.lang.String _strSubSection, java.lang.String _strAttribute, boolean bReportErrors)
xmlDoc
- the base xml doc to read the values from_strSection
- _strSubSection
- _strAttribute
- bReportErrors
- true implies report errors
protected static XPElement InternalGetXMLElement(XPDocument _xmlDoc, java.lang.String _strSection, java.lang.String _strSubSection)
_xmlDoc
- the XPDocument_strSection
- _strSubSection
-
public IXPEnumerator GetVarPackKeys()
GetVarPackKeys
in interface IVarPack
GetVarPackKeys
in class BaseVarPack
IVarPack.GetVarPackKeys()
protected void ExpireContent()
ExpireContent
in class BaseVarPack
com.plumtree.xpsupport.web.BaseVarPack#ExpireContent()
protected java.lang.Object GetValue(java.lang.String arg0)
GetValue
in class BaseVarPack
arg0
- The key for the lookup
com.plumtree.xpsupport.web.BaseVarPack#GetValue(String)
protected void Load()
Load
in class BaseVarPack
com.plumtree.xpsupport.web.BaseVarPack#Load()
protected void LoadComponentSettings(IOKComponent component, java.lang.String sectionName)
component
- protected void Reload()
Reload
in class BaseVarPack
com.plumtree.xpsupport.web.BaseVarPack#Reload()
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |