|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.plumtree.uiinfrastructure.helpers.ConfigService
public class ConfigService
A service that provides access to the config helper object.
| Constructor Summary | |
|---|---|
protected |
ConfigService()
|
| Method Summary | |
|---|---|
java.lang.String |
GetApplicationBaseURL(AActivitySpace asSpace)
JF- Returns the Application URL according to the URL Mapping. |
java.lang.String |
GetApplicationBaseURL(java.lang.String _sNormalizedBaseURL)
JF- Returns the Application URL according to the URL Mapping. |
java.lang.String |
GetApplicationBaseURL(java.lang.String _sNormalizedBaseURL,
boolean _bSecure)
JF- Returns the Application URL according to the URL Mapping and the security. |
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. |
java.lang.String |
GetHTTPEntryPoint()
JF- Returns the value of the HTTP Entry point from x_config.xml E.g.: server.pt |
java.lang.String |
GetImageServerBaseURL(AActivitySpace asSpace)
This method used to return the Portal Image Server Base URL. |
static IConfigHelper |
getInstance()
|
java.lang.String |
GetJSIncluderComponentPath(java.lang.String strJSComponentName,
java.lang.String strImageServerURL)
|
HTMLElementCollection |
GetJSIncluderJSComponentInclude(java.lang.String strJSComponentName,
AActivitySpace owner)
HTMLElement with a script blocks including the javascript files for the given jscomponent. |
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. |
java.lang.String |
GetJSIncluderVersionPrefix(java.lang.String strJSComponentName)
|
java.lang.String |
GetMainServerApplicationURL(boolean _bIsSecure)
JF- Returns the Main server URL from x_config.xml |
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 void |
setTestInstance(IConfigHelper testHelper)
Unit tests should use this method to overwrite/teardown existing helper singleton. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ConfigService()
| Method Detail |
|---|
public static IConfigHelper getInstance()
public static void setTestInstance(IConfigHelper testHelper)
public java.lang.String GetJSIncluderComponentPath(java.lang.String strJSComponentName,
java.lang.String strImageServerURL)
GetJSIncluderComponentPath in interface IConfigHelper
public HTMLElementCollection GetJSIncluderJSComponentInclude(java.lang.String strJSComponentName,
AActivitySpace owner)
IConfigHelper
GetJSIncluderJSComponentInclude in interface IConfigHelperstrJSComponentName - JSComponent name. For example "jsxml" or "jsutil", the common components have constants defined in ConfigHelper.owner - Current activityspace
public HTMLElementCollection GetJSIncluderJSComponentInclude(java.lang.String strJSComponentName,
boolean bEnableDebug,
AActivitySpace owner,
XPLocale locale)
IConfigHelper
GetJSIncluderJSComponentInclude in interface IConfigHelperstrJSComponentName - JSComponent name. For example "jsxml" or "jsutil", the common components have constants defined in ConfigHelper.owner - Current activityspace
public java.lang.String GetJSIncluderVersionPrefix(java.lang.String strJSComponentName)
GetJSIncluderVersionPrefix in interface IConfigHelperstrJSComponentName - JSComponent name included through JSIncluder Example: " jsxml" or "jsutil"
public java.lang.String GetApplicationBaseURL(java.lang.String _sNormalizedBaseURL,
boolean _bSecure)
IConfigHelper
GetApplicationBaseURL in interface IConfigHelper_sNormalizedBaseURL - the normalized base URL from the current request._bSecure - HTTP or HTTPS
public java.lang.String GetApplicationBaseURL(AActivitySpace asSpace)
IConfigHelper
GetApplicationBaseURL in interface IConfigHelperpublic java.lang.String GetApplicationBaseURL(java.lang.String _sNormalizedBaseURL)
IConfigHelper
GetApplicationBaseURL in interface IConfigHelper_sNormalizedBaseURL - Normalized Base URL from the AActivity Space
(or ConfigHelper.GetNormalizedBaseURL).
public java.lang.String GetApplicationBaseURLToAS(java.lang.String _sNormalizedBaseURL,
java.lang.String _sASName,
boolean _bIsSubSpace)
IConfigHelper
GetApplicationBaseURLToAS in interface IConfigHelper_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?
public java.lang.String GetHTTPEntryPoint()
IConfigHelper
GetHTTPEntryPoint in interface IConfigHelperpublic java.lang.String GetMainServerApplicationURL(boolean _bIsSecure)
IConfigHelper
GetMainServerApplicationURL in interface IConfigHelper_bIsSecure - HTTP or HTTPS
public java.lang.String GetImageServerBaseURL(AActivitySpace asSpace)
IConfigHelper
GetImageServerBaseURL in interface IConfigHelperpublic java.lang.String GetNormalizedBaseURL(java.lang.String _sURL)
IConfigHelper
GetNormalizedBaseURL in interface IConfigHelper
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||