|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.taskapi.portalui.TaskAPIUIPortalConfig
public class TaskAPIUIPortalConfig
TaskAPI functions related to Portal Configuration, includes values in portalconfig.xml
Constructor Summary | |
---|---|
TaskAPIUIPortalConfig()
|
Method Summary | |
---|---|
static java.lang.String |
GetApplicationBaseURL(AActivitySpace owner)
Returns the Application URL according to the URL Mapping. |
static java.lang.String |
GetApplicationBaseURLForFriendlyURL(AActivitySpace owner)
Same as TaskAPIUIPortalConfig.GetApplicationBaseURL but without the
trailing question mark. |
static java.lang.String |
GetApplicationBaseURLToAS(java.lang.String strNormalizedBaseURL,
java.lang.String strASName,
boolean bIsSubSpace)
Returns the Application URL according to the URL Mapping and determines the security according to the space name in argument. |
static java.lang.String |
GetImageServerBaseURL(AActivitySpace owner)
This method returns the Image Server Base URL. |
static java.lang.String |
GetMainApplicationName()
This method returns the main application name. |
static int[] |
GetNavSettingsValueAsIntArray(java.lang.String strKey,
AActivitySpace owner)
Gets a Navigation settings from portalconfig.xml (what used to be NavigationSettings.xml in 5.x) which has a comma separated integer values. |
static java.lang.String |
GetNavSettingsValueAsString(java.lang.String strKey,
AActivitySpace owner)
Gets a Navigation specific settings from portalconfig.xml (what used to be NavigationSettings.xml in 5.x) as a String value. |
static java.lang.String[] |
GetNavSettingsValueAsStringArray(java.lang.String strKey,
AActivitySpace owner)
Gets a Navigation settings from portalconfig.xml (what used to be NavigationSettings.xml in 5.x) which has a comma separated strings value. |
static int |
GetNavSettingValueAsInt(java.lang.String strKey,
AActivitySpace owner)
Gets a Navigation settings from portalconfig.xml (what used to be NavigationSettings.xml in 5.x) as an integer value. |
static java.lang.String |
GetPortalImageServerHelpURL(AActivitySpace owner)
This method returns the Portal Image Server Help URL. |
static java.lang.String |
GetPortalImageServerJavaScriptURL(AActivitySpace owner)
This method returns the Portal Image Server JavaScript URL. |
static int |
GetPTConfigVariableAsInt(java.lang.String strSection,
java.lang.String strSubSection,
java.lang.String strAttribute,
AActivitySpace owner)
This method to access an integer variable from portalconfig.xml. |
static java.lang.String |
GetPTConfigVariableAsString(java.lang.String strSection,
java.lang.String strSubSection,
java.lang.String strAttribute,
AActivitySpace owner)
This method to access a String variable from portalconfig.xml. |
static java.lang.Object[] |
GetPTConfigVariables(java.lang.String strSection,
java.lang.String strSubSection,
java.lang.String strAttribute,
AActivitySpace owner)
This method to access a variable with multiple values from portalconfig.xml. |
static int |
GetSecurityMode()
Returns the security mode value as defined in portalconfig.xml. |
static java.lang.String |
GetStyleSheetsBaseURL(AActivitySpace owner)
Returns the base URL to the style sheets on the image server. |
static IPTURL |
GetURLForCurrentPageHelp(AActivitySpace owner)
Gets the URL to the Help Page for the current page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskAPIUIPortalConfig()
Method Detail |
---|
public static final java.lang.String GetApplicationBaseURL(AActivitySpace owner)
AActivitySpace
- the current activity space.
String
with the Application Base URLpublic static final java.lang.String GetApplicationBaseURLForFriendlyURL(AActivitySpace owner)
TaskAPIUIPortalConfig.GetApplicationBaseURL
but without the
trailing question mark.
AActivitySpace
- the current activity space.
String
with the Application Base URL and no trailing question markpublic static final java.lang.String GetApplicationBaseURLToAS(java.lang.String strNormalizedBaseURL, java.lang.String strASName, boolean bIsSubSpace)
strNormalizedBaseURL
- Normalized Base URL from the AActivity Space.
(or ConfigHelper.GetNormalizedBaseURL).strASName
- Name of the destination Activity Space.bIsSubSpace
- Whether the target Activityspace a sub space or not?
String
with the Application Base URL.public static int GetPTConfigVariableAsInt(java.lang.String strSection, java.lang.String strSubSection, java.lang.String strAttribute, AActivitySpace owner)
strSection
- One of the Section constants defined in ConfigConstants
.strSubSection
- One of the Subsection constants defined in ConfigConstants
.strAttribute
- One of the Attributes constants defined in ConfigConstants
.owner
- current Activityspace.
int
XPException
- If the requested variable is not found or cannot be retrieved.ConfigConstants
public static java.lang.String GetPTConfigVariableAsString(java.lang.String strSection, java.lang.String strSubSection, java.lang.String strAttribute, AActivitySpace owner)
String
variable from portalconfig.xml.
strSection
- One of the Section constants defined in ConfigConstants
.strSubSection
- One of the Subsection constants defined in ConfigConstants
.strAttribute
- One of the Attributes constants defined in ConfigConstants
.owner
- current Activityspace.
String
with the requested variable value, or null
if the variable is not found, or cannot be retrieved.ConfigConstants
public static java.lang.Object[] GetPTConfigVariables(java.lang.String strSection, java.lang.String strSubSection, java.lang.String strAttribute, AActivitySpace owner)
strSection
- One of the Section constants defined in ConfigConstants
.strSubSection
- One of the Subsection constants defined in ConfigConstants
.strAttribute
- One of the Attributes constants defined in ConfigConstants
.owner
- current Activityspace.
null
if the attribute was not found or could
not be retrieved.public static final java.lang.String GetMainApplicationName()
String
with the main Portal Application name.public static final java.lang.String GetImageServerBaseURL(AActivitySpace owner)
AActivitySpace
- Current Activityspace.
String
with the image server base URL.public static final java.lang.String GetPortalImageServerJavaScriptURL(AActivitySpace owner)
AActivitySpace
- Current Activityspace.
String
with the Portal image server JavaScript URL.public static final java.lang.String GetStyleSheetsBaseURL(AActivitySpace owner)
AActivitySpace
- Current Activityspace.
String
with the URL to the style sheets on the image serverpublic static final java.lang.String GetPortalImageServerHelpURL(AActivitySpace owner)
AActivitySpace
- Current Activityspace.
String
with the the Portal image server Help URL.public static final int GetSecurityMode()
public static int GetNavSettingValueAsInt(java.lang.String strKey, AActivitySpace owner)
PTNavSettingsVarPack.PORTAL_NAVIGATION_COMPONENT_TYPE
constant.
strKey
- Navigation setting attribute.owner
- Current Activityspace.
public static java.lang.String GetNavSettingsValueAsString(java.lang.String strKey, AActivitySpace owner)
String
value.
Navigation Settings are defined in 'portal:Navigation' the component and with the type defined in the
PTNavSettingsVarPack.PORTAL_NAVIGATION_COMPONENT_TYPE
constant.
strKey
- Navigation setting attribute.owner
- Current Activityspace.
String
with the attribute value, or null
if the attribute was not found.public static java.lang.String[] GetNavSettingsValueAsStringArray(java.lang.String strKey, AActivitySpace owner)
PTNavSettingsVarPack.PORTAL_NAVIGATION_COMPONENT_TYPE
constant.
strKey
- Key to a name/value pair in NavigationSettings.xml with a comma separated string values.owner
- Current Activityspace.
String
s with the comman separated values, or null if the attribute was not found, or
the comma separated values were in an invalid format.public static int[] GetNavSettingsValueAsIntArray(java.lang.String strKey, AActivitySpace owner)
PTNavSettingsVarPack.PORTAL_NAVIGATION_COMPONENT_TYPE
constant.
strKey
- Key to a name/value pair in NavigationSettings.xml with a comma separated integer values.owner
- Current Activityspace.
int
s with the comman separated values, or null if the attribute was not found, or
the comma separated values were in an invalid format.public static IPTURL GetURLForCurrentPageHelp(AActivitySpace owner)
owner
- Current Activityspace.
IPTURL
with URL to the Help Page for the current page. In standard display mode
the url is just '#', instead a javascript call to open help in a pop-up is used. Get the javascript call with the
PTURLConstants.KEY_JAVASCRIPT_ACTION
.
In 508 and low-bandwidth mode, a regular URL is used.
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |