com.plumtree.uiinfrastructure.statichelpers
Class ConfigHelper

java.lang.Object
  extended by com.plumtree.uiinfrastructure.statichelpers.ConfigHelper
Direct Known Subclasses:
PTConfigHelper

public class ConfigHelper
extends java.lang.Object

This class contains helper methods to get variables from the configVarPack. This is also used to get data that is generated from the config var pack, along with some logic from other places, like the image server urls. These should only be retrieved from this static helper. NOTE DonH: if the base config varpack reloads, this will not currently get reloaded. Reloading wouldn't be threadsafe anyways.

Author:
Don Hayler, Julie Fournier - Application URLs, URL Mapping and Security Modes

Field Summary
static java.lang.String GATEWAY_URL
          JF- This is to be able to identify a gatway URL
static java.lang.String HTTP_SCHEME
          JF- HTTP Scheme
static java.lang.String HTTPS_SCHEME
          JF- HTTPS Scheme
static java.lang.String JSCOMPONENT_JSDATEPICKER
           
static java.lang.String JSCOMPONENT_JSPORTALMENU
           
static java.lang.String JSCOMPONENT_JSPORTLET
           
static java.lang.String JSCOMPONENT_JSROBOHELPER
           
static java.lang.String JSCOMPONENT_JSUTIL
           
static java.lang.String JSCOMPONENT_JSXML
           
 
Constructor Summary
ConfigHelper()
           
 
Method Summary
static java.lang.String GetApplicationBaseURL(AActivitySpace asSpace)
          JF- Returns the Application URL according to the URL Mapping.
static java.lang.String GetApplicationBaseURL(java.lang.String _sNormalizedBaseURL)
          JF- Returns the Application URL according to the URL Mapping.
static java.lang.String GetApplicationBaseURL(java.lang.String _sNormalizedBaseURL, boolean _bSecure)
          JF- Returns the Application URL according to the URL Mapping and the security.
static java.lang.String GetApplicationBaseURLToAS(java.lang.String _sNormalizedBaseURL, java.lang.String _sASName, boolean _bIsSubSpace)
          JF- Returns the Application URL according to the URL Mapping and determines the security according to the space name in argument.
static HTMLElementCollection GetCommonJSIncludes(java.lang.String _strComponentName, java.lang.String strLangID, boolean _bIsSecureImgSvr)
          Deprecated. Use GetCommonJSIncludes(String _strComponentName, XPLocale locale, boolean _bIsSecureImgSvr) instead
static HTMLElementCollection GetCommonJSIncludes(java.lang.String _strComponentName, java.lang.String strLangID, boolean _bIsSecureImgSvr, java.lang.String strIncludeType)
          Deprecated. GetCommonJSIncludes(String _strComponentName, XPLocale locale, boolean _bIsSecureImgSvr, String strIncludeType)
static int GetConfigVariableAsInt(java.lang.String strSection, java.lang.String strSubSection, java.lang.String strAttribute, AActivitySpace space)
          Helper method to access an int variable from portalconfig.xml.
static int GetConfigVariableAsInt(java.lang.String strSection, java.lang.String strSubSection, java.lang.String strAttribute, Application application)
          Helper method to access an int variable from portalconfig.xml.
static java.lang.String GetConfigVariableAsString(java.lang.String strSection, java.lang.String strSubSection, java.lang.String strAttribute, AActivitySpace owner)
          Helper method to access a String variable from portalconfig.xml.
static java.lang.String GetConfigVariableAsString(java.lang.String strSection, java.lang.String strSubSection, java.lang.String strAttribute, IApplication app)
          Helper method to access a String variable from portalconfig.xml.
static java.lang.Object[] GetConfigVariables(java.lang.String strSection, java.lang.String strSubSection, java.lang.String strAttribute, AActivitySpace space)
          Helper method to access a String variable from portalconfig.xml.
static java.lang.Object[] GetConfigVariables(java.lang.String strSection, java.lang.String strSubSection, java.lang.String strAttribute, IApplication application)
          Helper method to access a String variable from portalconfig.xml.
static java.lang.String GetFullAdminSiteURL()
          Returns full URL to the admin site without any question mark.
static java.lang.String GetHTMLDocType()
          This method returns the document type specification for use with the HTMLPage objects created for each DisplayPage.
static java.lang.String GetHTTPEntryPoint()
          JF- Retuns the value of the HTTP Entry point from x_config.xml E.g.: server.pt
static java.lang.String GetImageServerBaseURL(AActivitySpace asOwner)
          This method used to return the Image Server Base URL.
static java.lang.String GetImageServerBaseURL(boolean bSecure)
          This method used to return the Image Server Base URL.
static int GetImageserverConnectTimeout()
          This method returns the imageserver connection timeout integer in seconds
static java.lang.String GetImageServerRootURL(AActivitySpace asOwner)
          This method used to return the Image Server Root URL.
static java.lang.String GetImageServerRootURL(boolean bSecure)
          This method used to return the Image Server Base URL.
static boolean GetIsDotNet()
          Returns whether or not the current platform is .NET.
static boolean GetIsJava()
          Returns whether or not the current platform is Java.
static boolean GetIsSpaceSecure(boolean _bIsConnectionSecure)
          Returns the security of the Activty Space.
static java.lang.String GetJSIncluderComponentPath(java.lang.String strJSComponentName, java.lang.String strImageServerURL)
           
static java.lang.String GetJSIncluderComponentVersion(java.lang.String strJSComponentName)
          Deprecated. No use anymore, always uses LATEST Always returns "window.".
static HTMLElementCollection GetJSIncluderJSComponentInclude(java.lang.String strJSComponentName, AActivitySpace owner)
          HTMLElement with a script blocks including the javascript files for the given jscomponent.
static HTMLElementCollection GetJSIncluderJSComponentInclude(java.lang.String strJSComponentName, boolean bEnableDebug, AActivitySpace owner, XPLocale locale)
          HTMLElement with a script blocks including the javascript files for the given jscomponent.
static java.lang.String GetJSIncluderVersionPrefix(java.lang.String strJSComponentName)
           
static java.lang.String GetMainApplicationName()
          This method returns the main application name
static java.lang.String GetMainServerApplicationURL(boolean _bIsSecure)
          JF- Returns the Main server URL from x_config.xml
static java.lang.String GetNormalizedBaseURL(java.lang.String _sURL)
          DLH- Helper method to return the normalized base URL for use in determining the correct application base url.
static boolean GetPerformanceCommentsEnabled()
          Returns whether or not the performance metrics comments displayed in the HTML source at the end of each page are enabled.
static boolean GetPerformanceStacktracesEnabled()
          Returns whether or not the performance metrics stacktraces displayed in the HTML source at the end of each page are enabled.
static java.lang.String GetPortalImageServerBaseURL(AActivitySpace asOwner)
          This method used to return the Portal Image Server Base URL.
static java.lang.String GetPortalImageServerBaseURL(boolean bSecure)
          This method used to return the Portal Image Server Base URL.
static java.lang.String GetPortalImageServerConnectionURL(AActivitySpace asOwner)
          This method returns the Image Server Connection URL.
static java.lang.String GetPortalImageServerHelpURL(AActivitySpace asOwner)
          This method used to return the Portal Image Server Help URL.
static java.lang.String GetPortalImageServerHelpURL(boolean bSecure)
          This method used to return the Portal Image Server Help URL.
static java.lang.String GetPortalImageServerImagesURL(AActivitySpace asOwner)
          This method used to return the Portal Image Server Images URL.
static java.lang.String GetPortalImageServerImagesURL(boolean bSecure)
          This method used to return the Portal Image Server Images URL.
static java.lang.String GetPortalImageServerJavaScriptURL(AActivitySpace asOwner)
          This method used to return the Portal Image Server JavaScript URL.
static java.lang.String GetPortalImageServerJavaScriptURL(boolean bSecure)
          This method used to return the Portal Image Server JavaScript URL.
static XPResourceManager GetResourceManager()
           
static int GetSecurityMode()
          Returns the security mode value from portalconfig.xml.
static java.lang.String GetSharedImageServerBaseURL(AActivitySpace asOwner)
          This method used to return the Shared Image Server Base URL.
static java.lang.String GetSharedImageServerBaseURL(boolean bSecure)
          This method used to return the Shared Image Server Base URL.
static java.lang.String GetSharedImageServerImagesURL(AActivitySpace asOwner)
          This method used to return the Shared Image Server Images URL.
static java.lang.String GetSharedImageServerImagesURL(boolean bSecure)
          This method used to return the Shared Image Server Images URL.
static java.lang.String GetSharedImageServerJavaScriptURL(AActivitySpace asOwner)
          This method used to return the Shared Image Server JavaScript URL.
static java.lang.String GetSharedImageServerJavaScriptURL(boolean bSecure)
          This method used to return the Shared Image Server JavaScript URL.
static java.lang.String GetSharedImageServerStylesURL(AActivitySpace asOwner)
          This method used to return the Shared Image Server Styles URL.
static java.lang.String GetSharedImageServerStylesURL(boolean bSecure)
          This method used to return the Shared Image Server Styles URL.
static java.lang.String GetStyleSheetsBaseURL(AActivitySpace asOwner)
          Returns the base URL to the style sheets on the image server.
static java.lang.String GetStyleSheetsBaseURL(boolean bSecure)
          Returns the base URL to the style sheets on the image server.
static IClassTypeManager GetTypeDescrManager()
          This method returns the class type description manager.
static boolean IsGoingToSubSpace(Redirect _myRedirect)
          Helper method to know whether the Redirect is going to a sub space of the current space of no.
static boolean IsInitialized()
          Whether or not the config helper has been initialized properly.
static boolean IsLoginTokenSecure(java.lang.String strCurrentRequestURL)
          JF- Helper method to figure out if the login cookie should be secure or not.
static boolean IsSpaceSecured(java.lang.String _sASName)
          Returns true if this AS shoudl be accessed through HTTPS.
static ReturnValue StaticInit(java.lang.String strApplicationName, ConfigVarPack vpConfig, ImgSvrURLHelper ptImageServerHelper)
          Static init method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HTTP_SCHEME

public static final java.lang.String HTTP_SCHEME
JF- HTTP Scheme

See Also:
Constant Field Values

HTTPS_SCHEME

public static final java.lang.String HTTPS_SCHEME
JF- HTTPS Scheme

See Also:
Constant Field Values

GATEWAY_URL

public static final java.lang.String GATEWAY_URL
JF- This is to be able to identify a gatway URL

See Also:
Constant Field Values

JSCOMPONENT_JSXML

public static final java.lang.String JSCOMPONENT_JSXML
See Also:
Constant Field Values

JSCOMPONENT_JSPORTLET

public static final java.lang.String JSCOMPONENT_JSPORTLET
See Also:
Constant Field Values

JSCOMPONENT_JSUTIL

public static final java.lang.String JSCOMPONENT_JSUTIL
See Also:
Constant Field Values

JSCOMPONENT_JSDATEPICKER

public static final java.lang.String JSCOMPONENT_JSDATEPICKER
See Also:
Constant Field Values

JSCOMPONENT_JSPORTALMENU

public static final java.lang.String JSCOMPONENT_JSPORTALMENU
See Also:
Constant Field Values

JSCOMPONENT_JSROBOHELPER

public static final java.lang.String JSCOMPONENT_JSROBOHELPER
See Also:
Constant Field Values
Constructor Detail

ConfigHelper

public ConfigHelper()
Method Detail

StaticInit

public static ReturnValue StaticInit(java.lang.String strApplicationName,
                                     ConfigVarPack vpConfig,
                                     ImgSvrURLHelper ptImageServerHelper)
Static init method. Can only be called once.

Parameters:
String - the main application name
ConfigVarPack -
ImgSvrURLHelper -
Returns:
ReturnValue describing succes or failure

IsInitialized

public static boolean IsInitialized()
Whether or not the config helper has been initialized properly.

Returns:
true implies this has been initialized.

GetApplicationBaseURL

public static final java.lang.String GetApplicationBaseURL(java.lang.String _sNormalizedBaseURL,
                                                           boolean _bSecure)
JF- Returns the Application URL according to the URL Mapping and the security. Warning: depending on the security mode, the security in argument might not make sense. E.g.: in mode 0, it doesn't make sense to request the secure URL (and it might just return an empty URL) The normalized base URL is available either cached on the AActivitySpace or by calling ConfigHelper.GetNormalizedBaseURL with the current request URL.

Parameters:
_sNormalizedBaseURL - the normalized base URL from the current request.
_bSecure - HTTP or HTTPS
Returns:
String

GetApplicationBaseURL

public static final java.lang.String GetApplicationBaseURL(AActivitySpace asSpace)
JF- Returns the Application URL according to the URL Mapping. Warning: In mode 1, it returns the non secure URL by default.

Parameters:
AActivitySpace - the current activity space.
Returns:
String

GetApplicationBaseURL

public static final java.lang.String GetApplicationBaseURL(java.lang.String _sNormalizedBaseURL)
JF- Returns the Application URL according to the URL Mapping. Warning: In mode 1, it returns the non secure URL by default. GetApplicationBaseURL(AActivitySpace) should be used if possible.

Parameters:
_sNormalizedBaseURL - Normalized Base URL from the AActivity Space (or ConfigHelper.GetNormalizedBaseURL).
Returns:
String

GetApplicationBaseURLToAS

public static final java.lang.String GetApplicationBaseURLToAS(java.lang.String _sNormalizedBaseURL,
                                                               java.lang.String _sASName,
                                                               boolean _bIsSubSpace)
JF- Returns the Application URL according to the URL Mapping and determines the security according to the space name in argument.

Parameters:
_sNormalizedBaseURL - Normalized Base URL from the AActivity Space. (or ConfigHelper.GetNormalizedBaseURL).
_sASName - Name of the destination Activity Space
_bIsSubSpace - Is the target AS a sub space?
Returns:
String

GetMainServerApplicationURL

public static final java.lang.String GetMainServerApplicationURL(boolean _bIsSecure)
JF- Returns the Main server URL from x_config.xml

Parameters:
_bIsSecure - HTTP or HTTPS
Returns:
String

GetHTTPEntryPoint

public static final java.lang.String GetHTTPEntryPoint()
JF- Retuns the value of the HTTP Entry point from x_config.xml E.g.: server.pt

Returns:
String

GetPerformanceCommentsEnabled

public static final boolean GetPerformanceCommentsEnabled()
Returns whether or not the performance metrics comments displayed in the HTML source at the end of each page are enabled. This value should be false if web caching and acceleration software is being used, otherwise pages will never have static content.

Returns:
boolean true implies the comments are displayed.

GetPerformanceStacktracesEnabled

public static final boolean GetPerformanceStacktracesEnabled()
Returns whether or not the performance metrics stacktraces displayed in the HTML source at the end of each page are enabled. This value should be false if web caching and acceleration software is being used, otherwise pages will never have static content.

Returns:
boolean true implies the stacktraces are displayed.

GetIsSpaceSecure

public static final boolean GetIsSpaceSecure(boolean _bIsConnectionSecure)
Returns the security of the Activty Space.

Parameters:
_bIsConnectionSecure -
Returns:
boolean

IsGoingToSubSpace

public static final boolean IsGoingToSubSpace(Redirect _myRedirect)
Helper method to know whether the Redirect is going to a sub space of the current space of no.

Parameters:
_myRedirect -
Returns:
boolean

GetNormalizedBaseURL

public static final java.lang.String GetNormalizedBaseURL(java.lang.String _sURL)
DLH- Helper method to return the normalized base URL for use in determining the correct application base url.

Parameters:
_sURL -
Returns:
String the normalized base URL

GetImageserverConnectTimeout

public static final int GetImageserverConnectTimeout()
This method returns the imageserver connection timeout integer in seconds

Returns:
int the timeout

GetMainApplicationName

public static final java.lang.String GetMainApplicationName()
This method returns the main application name

Returns:
String the main application name

GetHTMLDocType

public static final java.lang.String GetHTMLDocType()
This method returns the document type specification for use with the HTMLPage objects created for each DisplayPage.

Returns:
String HTML document type

GetImageServerRootURL

public static final java.lang.String GetImageServerRootURL(boolean bSecure)
This method used to return the Image Server Base URL. Example: http://server/imageserver/

Parameters:
boolean - true implies secure
Returns:
String the image server base URL.

GetImageServerRootURL

public static final java.lang.String GetImageServerRootURL(AActivitySpace asOwner)
This method used to return the Image Server Root URL. Example: http://server/imageserver/

Parameters:
AActivitySpace - the space that this image is in.
Returns:
String the image server base URL.

GetImageServerBaseURL

public static final java.lang.String GetImageServerBaseURL(boolean bSecure)
This method used to return the Image Server Base URL. Example: http://server/imageserver/plumtree

Parameters:
boolean - true implies secure
Returns:
String the image server base URL.

GetImageServerBaseURL

public static final java.lang.String GetImageServerBaseURL(AActivitySpace asOwner)
This method used to return the Image Server Base URL. Example: http://server/imageserver/plumtree

Parameters:
AActivitySpace - the space that this image is in.
Returns:
String the image server base URL.

GetSharedImageServerBaseURL

public static final java.lang.String GetSharedImageServerBaseURL(boolean bSecure)
This method used to return the Shared Image Server Base URL.

Parameters:
boolean - true implies secure
Returns:
String the Shared image server base URL.

GetSharedImageServerBaseURL

public static final java.lang.String GetSharedImageServerBaseURL(AActivitySpace asOwner)
This method used to return the Shared Image Server Base URL.

Parameters:
AActivitySpace - the space that this image is in.
Returns:
String the Shared image server base URL.

GetSharedImageServerImagesURL

public static final java.lang.String GetSharedImageServerImagesURL(boolean bSecure)
This method used to return the Shared Image Server Images URL.

Parameters:
boolean - true implies secure
Returns:
String the Shared image server Images URL.

GetSharedImageServerImagesURL

public static final java.lang.String GetSharedImageServerImagesURL(AActivitySpace asOwner)
This method used to return the Shared Image Server Images URL.

Parameters:
AActivitySpace - the space that this image is in.
Returns:
String the Shared image server Images URL.

GetSharedImageServerJavaScriptURL

public static final java.lang.String GetSharedImageServerJavaScriptURL(boolean bSecure)
This method used to return the Shared Image Server JavaScript URL.

Parameters:
boolean - true implies secure
Returns:
String the Shared image server JavaScript URL.

GetSharedImageServerJavaScriptURL

public static final java.lang.String GetSharedImageServerJavaScriptURL(AActivitySpace asOwner)
This method used to return the Shared Image Server JavaScript URL.

Parameters:
AActivitySpace - the space that this image is in.
Returns:
String the Shared image server JavaScript URL.

GetSharedImageServerStylesURL

public static final java.lang.String GetSharedImageServerStylesURL(boolean bSecure)
This method used to return the Shared Image Server Styles URL.

Parameters:
boolean - true implies secure
Returns:
String the Shared image server Styles URL.

GetSharedImageServerStylesURL

public static final java.lang.String GetSharedImageServerStylesURL(AActivitySpace asOwner)
This method used to return the Shared Image Server Styles URL.

Parameters:
AActivitySpace - the space that this image is in.
Returns:
String the Shared image server Styles URL.

GetStyleSheetsBaseURL

public static final java.lang.String GetStyleSheetsBaseURL(AActivitySpace asOwner)
Returns the base URL to the style sheets on the image server.

Parameters:
AActivitySpace - current AS
Returns:
String URL to the style sheets on the image server

GetStyleSheetsBaseURL

public static final java.lang.String GetStyleSheetsBaseURL(boolean bSecure)
Returns the base URL to the style sheets on the image server.

Parameters:
bSecure - security of the URL
Returns:
String URL to the style sheets on the image server

GetPortalImageServerBaseURL

public static final java.lang.String GetPortalImageServerBaseURL(boolean bSecure)
This method used to return the Portal Image Server Base URL.

Parameters:
boolean - true implies secure
Returns:
String the Portal image server base URL.

GetPortalImageServerConnectionURL

public static final java.lang.String GetPortalImageServerConnectionURL(AActivitySpace asOwner)
This method returns the Image Server Connection URL. This URL is used anytime the Portal Server needs to talk to the Image Server. This happens when retrieving JSRegistry information, for example.

Returns:
String Portal image server connection URL.

GetPortalImageServerBaseURL

public static final java.lang.String GetPortalImageServerBaseURL(AActivitySpace asOwner)
This method used to return the Portal Image Server Base URL.

Parameters:
AActivitySpace - the space that this image is in.
Returns:
String the Portal image server base URL.

GetPortalImageServerImagesURL

public static final java.lang.String GetPortalImageServerImagesURL(boolean bSecure)
This method used to return the Portal Image Server Images URL.

Parameters:
boolean - true implies secure
Returns:
String the Portal image server Images URL.

GetPortalImageServerImagesURL

public static final java.lang.String GetPortalImageServerImagesURL(AActivitySpace asOwner)
This method used to return the Portal Image Server Images URL.

Parameters:
AActivitySpace - the space that this image is in.
Returns:
String the Portal image server Images URL.

GetPortalImageServerJavaScriptURL

public static final java.lang.String GetPortalImageServerJavaScriptURL(boolean bSecure)
This method used to return the Portal Image Server JavaScript URL.

Parameters:
boolean - true implies secure
Returns:
String the Portal image server JavaScript URL.

GetPortalImageServerJavaScriptURL

public static final java.lang.String GetPortalImageServerJavaScriptURL(AActivitySpace asOwner)
This method used to return the Portal Image Server JavaScript URL.

Parameters:
AActivitySpace - the space that this image is in.
Returns:
String the Portal image server JavaScript URL.

GetPortalImageServerHelpURL

public static final java.lang.String GetPortalImageServerHelpURL(boolean bSecure)
This method used to return the Portal Image Server Help URL.

Parameters:
boolean - true implies secure
Returns:
String the Portal image server Help URL.

GetPortalImageServerHelpURL

public static final java.lang.String GetPortalImageServerHelpURL(AActivitySpace asOwner)
This method used to return the Portal Image Server Help URL.

Parameters:
AActivitySpace - the space that this image is in.
Returns:
String the Portal image server Help URL.

GetCommonJSIncludes

public static final HTMLElementCollection GetCommonJSIncludes(java.lang.String _strComponentName,
                                                              java.lang.String strLangID,
                                                              boolean _bIsSecureImgSvr)
Deprecated. Use GetCommonJSIncludes(String _strComponentName, XPLocale locale, boolean _bIsSecureImgSvr) instead

Parameters:
_strComponentName -
strLang -
_bIsSecureImgSvr -
Returns:

GetCommonJSIncludes

public static final HTMLElementCollection GetCommonJSIncludes(java.lang.String _strComponentName,
                                                              java.lang.String strLangID,
                                                              boolean _bIsSecureImgSvr,
                                                              java.lang.String strIncludeType)
Deprecated. GetCommonJSIncludes(String _strComponentName, XPLocale locale, boolean _bIsSecureImgSvr, String strIncludeType)

Parameters:
_strComponentName -
locale -
_bIsSecureImgSvr -
strIncludeType -
Returns:

GetJSIncluderComponentVersion

public static java.lang.String GetJSIncluderComponentVersion(java.lang.String strJSComponentName)
Deprecated. No use anymore, always uses LATEST Always returns "window.".

Parameters:
strComponentName - Name of the jscomponent with . Example: "jsutil", "jsxml"
Returns:
Version "window."

GetJSIncluderVersionPrefix

public static java.lang.String GetJSIncluderVersionPrefix(java.lang.String strJSComponentName)
Parameters:
strJSComponentName - JSComponent name included through JSIncluder Example: " jsxml" or "jsutil"
Returns:

GetJSIncluderComponentPath

public static java.lang.String GetJSIncluderComponentPath(java.lang.String strJSComponentName,
                                                          java.lang.String strImageServerURL)

GetJSIncluderJSComponentInclude

public static HTMLElementCollection GetJSIncluderJSComponentInclude(java.lang.String strJSComponentName,
                                                                    AActivitySpace owner)
HTMLElement with a script blocks including the javascript files for the given jscomponent.

Parameters:
strJSComponentName - JSComponent name. For example "jsxml" or "jsutil", the common components have constants defined in ConfigHelper.
owner - Current activityspace
Returns:

GetJSIncluderJSComponentInclude

public static HTMLElementCollection GetJSIncluderJSComponentInclude(java.lang.String strJSComponentName,
                                                                    boolean bEnableDebug,
                                                                    AActivitySpace owner,
                                                                    XPLocale locale)
HTMLElement with a script blocks including the javascript files for the given jscomponent.

Parameters:
strJSComponentName - JSComponent name. For example "jsxml" or "jsutil", the common components have constants defined in ConfigHelper.
owner - Current activityspace
Returns:

GetConfigVariableAsInt

public static int GetConfigVariableAsInt(java.lang.String strSection,
                                         java.lang.String strSubSection,
                                         java.lang.String strAttribute,
                                         AActivitySpace space)
Helper method to access an int variable from portalconfig.xml.

Parameters:
strSection - strSection
strSubSection - strSubSection
strAttribute - strAttribute
space - the current space
Returns:
int the requested variable

GetConfigVariableAsInt

public static int GetConfigVariableAsInt(java.lang.String strSection,
                                         java.lang.String strSubSection,
                                         java.lang.String strAttribute,
                                         Application application)
Helper method to access an int variable from portalconfig.xml.

Parameters:
strSection - strSection
strSubSection - strSubSection
strAttribute - strAttribute
space - the current space
Returns:
int the requested variable

GetConfigVariableAsString

public static java.lang.String GetConfigVariableAsString(java.lang.String strSection,
                                                         java.lang.String strSubSection,
                                                         java.lang.String strAttribute,
                                                         AActivitySpace owner)
Helper method to access a String variable from portalconfig.xml.

Parameters:
strSection -
strSubSection -
strAttribute -
owner - Current Activityspace
Returns:
String with the requested variable value, or null if the variable is not found, or cannot be retrieved.

GetConfigVariableAsString

public static java.lang.String GetConfigVariableAsString(java.lang.String strSection,
                                                         java.lang.String strSubSection,
                                                         java.lang.String strAttribute,
                                                         IApplication app)
Helper method to access a String variable from portalconfig.xml.

Parameters:
strSection -
strSubSection -
strAttribute -
application - the current IApplication
Returns:
String with the requested variable value, or null if the variable is not found, or cannot be retrieved.

GetConfigVariables

public static java.lang.Object[] GetConfigVariables(java.lang.String strSection,
                                                    java.lang.String strSubSection,
                                                    java.lang.String strAttribute,
                                                    AActivitySpace space)
Helper method to access a String variable from portalconfig.xml.

Parameters:
strSection - strSection
strSubSection - strSubSection
strAttribute - strAttribute
space - the current space
Returns:
String the requested variable

GetConfigVariables

public static java.lang.Object[] GetConfigVariables(java.lang.String strSection,
                                                    java.lang.String strSubSection,
                                                    java.lang.String strAttribute,
                                                    IApplication application)
Helper method to access a String variable from portalconfig.xml.

Parameters:
strSection - strSection
strSubSection - strSubSection
strAttribute - strAttribute
space - the current space
Returns:
String the requested variable

GetFullAdminSiteURL

public static final java.lang.String GetFullAdminSiteURL()
Returns full URL to the admin site without any question mark.

Returns:
String

GetResourceManager

public static final XPResourceManager GetResourceManager()
Returns:

GetSecurityMode

public static final int GetSecurityMode()
Returns the security mode value from portalconfig.xml.

Returns:
int

GetTypeDescrManager

public static final IClassTypeManager GetTypeDescrManager()
This method returns the class type description manager.


IsSpaceSecured

public static final boolean IsSpaceSecured(java.lang.String _sASName)
Returns true if this AS shoudl be accessed through HTTPS. Note: in security mode 2 and 3, true is always returned.

Parameters:
_sASName -
Returns:
boolean

IsLoginTokenSecure

public static boolean IsLoginTokenSecure(java.lang.String strCurrentRequestURL)
JF- Helper method to figure out if the login cookie should be secure or not.

Returns:
boolean - true if it should be secure

GetIsDotNet

public static final boolean GetIsDotNet()
Returns whether or not the current platform is .NET.

Returns:
boolean true implies .NET

GetIsJava

public static final boolean GetIsJava()
Returns whether or not the current platform is Java.

Returns:
boolean true implies Java



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.