com.plumtree.portaluiinfrastructure.statichelpers
Class PTConfigHelper

java.lang.Object
  extended by com.plumtree.uiinfrastructure.statichelpers.ConfigHelper
      extended by com.plumtree.portaluiinfrastructure.statichelpers.PTConfigHelper

public class PTConfigHelper
extends ConfigHelper

This class contains helper methods to get variables from the PTconfigVarPack and configVarPack.

Author:
Don Hayler

Field Summary
 
Fields inherited from class com.plumtree.uiinfrastructure.statichelpers.ConfigHelper
GATEWAY_URL, HTTP_SCHEME, HTTPS_SCHEME, JSCOMPONENT_JSDATEPICKER, JSCOMPONENT_JSPORTALMENU, JSCOMPONENT_JSPORTLET, JSCOMPONENT_JSROBOHELPER, JSCOMPONENT_JSUTIL, JSCOMPONENT_JSXML
 
Constructor Summary
PTConfigHelper()
           
 
Method Summary
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 x_config.xml.
static java.lang.String GetConfigVariableAsString(java.lang.String strSection, java.lang.String strSubSection, java.lang.String strAttribute, AActivitySpace space)
          Helper method to access a String variable from x_config.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 x_config.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 x_config.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 x_config.xml.
static ClassTypeDescManager GetPTClassTypeDescrManager()
          This method returns the PT class type description manager.
static java.lang.String GetSSOBaseURL()
          Returns the SSO base URL ending with a question mark.
static java.lang.String GetSSORelativeURL()
          Returns the SSO relative URL ending with a question mark.
static boolean UseFriendlyURLS(int classId)
          Checks whether the classId supports friendly URLs
static boolean UseFriendlyURLS(int classId, java.lang.String queryStringArgs)
          Checks whether the classId supports friendly URLs
 
Methods inherited from class com.plumtree.uiinfrastructure.statichelpers.ConfigHelper
GetApplicationBaseURL, GetApplicationBaseURL, GetApplicationBaseURL, GetApplicationBaseURLToAS, GetCommonJSIncludes, GetCommonJSIncludes, GetConfigVariableAsInt, GetFullAdminSiteURL, GetHTMLDocType, GetHTTPEntryPoint, GetImageServerBaseURL, GetImageServerBaseURL, GetImageserverConnectTimeout, GetImageServerRootURL, GetImageServerRootURL, GetIsDotNet, GetIsJava, GetIsSpaceSecure, GetJSIncluderComponentPath, GetJSIncluderComponentVersion, GetJSIncluderJSComponentInclude, GetJSIncluderJSComponentInclude, GetJSIncluderVersionPrefix, GetMainApplicationName, GetMainServerApplicationURL, GetNormalizedBaseURL, GetPerformanceCommentsEnabled, GetPerformanceStacktracesEnabled, GetPortalImageServerBaseURL, GetPortalImageServerBaseURL, GetPortalImageServerConnectionURL, GetPortalImageServerHelpURL, GetPortalImageServerHelpURL, GetPortalImageServerImagesURL, GetPortalImageServerImagesURL, GetPortalImageServerJavaScriptURL, GetPortalImageServerJavaScriptURL, GetResourceManager, GetSecurityMode, GetSharedImageServerBaseURL, GetSharedImageServerBaseURL, GetSharedImageServerImagesURL, GetSharedImageServerImagesURL, GetSharedImageServerJavaScriptURL, GetSharedImageServerJavaScriptURL, GetSharedImageServerStylesURL, GetSharedImageServerStylesURL, GetStyleSheetsBaseURL, GetStyleSheetsBaseURL, GetTypeDescrManager, IsGoingToSubSpace, IsInitialized, IsLoginTokenSecure, IsSpaceSecured, StaticInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PTConfigHelper

public PTConfigHelper()
Method Detail

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 x_config.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 space)
Helper method to access a String variable from x_config.xml.

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

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 x_config.xml.

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

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 x_config.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 x_config.xml.

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

GetPTClassTypeDescrManager

public static final ClassTypeDescManager GetPTClassTypeDescrManager()
This method returns the PT class type description manager.


GetSSORelativeURL

public static final java.lang.String GetSSORelativeURL()
Returns the SSO relative URL ending with a question mark. E.g.: SSOLoginPage?

Returns:
String

GetSSOBaseURL

public static final java.lang.String GetSSOBaseURL()
Returns the SSO base URL ending with a question mark. E.g.: /SSOLoginPage?

Returns:
String

UseFriendlyURLS

public static final boolean UseFriendlyURLS(int classId)
Checks whether the classId supports friendly URLs

Parameters:
classId -
Returns:

UseFriendlyURLS

public static final boolean UseFriendlyURLS(int classId,
                                            java.lang.String queryStringArgs)
Checks whether the classId supports friendly URLs

Parameters:
classId -
queryStringArgs -
Returns:



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