com.ibm.task.api
Interface WebClientSetting
-
- All Superinterfaces:
- ClientSetting, java.lang.Cloneable, java.io.Serializable
public interface WebClientSetting extends ClientSetting
Interface for Web client settings. Web client settings extend the client settings with the ability to associate a set of usage patterns with a URL.A sample web client setting follows:
<wpc:webClientSettings clientType="HTM Web Client">
<wpc:jsp for="page" uri="approvePage.jsp"/>
<wpc:jsp for="input" uri="approveInput.jsp"/>
<wpc:jsp for="output" uri="approveOutput.jsp"/>
<wpc:jsp for="map" uri="approveMap.jsp"/>
</wpc:webClientSettings>- Since:
- 6.0 - introduced in 5.1
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
-
Method Summary
Methods Modifier and Type Method and Description JspApplicableRoleEnum[]
getApplicableRoles()
Returns the roles the currently logged-on user belongs to.JspLocation
getJspLocation(JspUsageEnum usage)
Returns the JSP location for the specified usage pattern, if any.JspLocation
getJspLocation(JspUsageEnum usage, JspApplicableRoleEnum applicableRole)
Returns the JSP location for the specified usage pattern and role.JspLocation
getJspLocation(java.lang.String faultName, JspApplicableRoleEnum applicableRole)
Returns the JSP location for the usage patternfault
and the specified fault name and role.JspLocation[]
getJspLocations(JspUsageEnum usage)
Returns the JSP locations for the specified usage pattern, if any.-
Methods inherited from interface com.ibm.task.api.ClientSetting
getClientType, getCustomSetting, getCustomSettingNames
-
-
-
-
Field Detail
-
COPYRIGHT
static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getApplicableRoles
JspApplicableRoleEnum[] getApplicableRoles()
Returns the roles the currently logged-on user belongs to.- Returns:
- JspApplicableRoleEnum[] - An array of roles the currently logged-on user belongs to. Returns an empty array when there are no applicable roles.
- Since:
- 6.0
-
getJspLocation
JspLocation getJspLocation(JspUsageEnum usage)
Returns the JSP location for the specified usage pattern, if any. If no usage pattern is specified or when there is more than one JSP location for the specified usage pattern, null is returned.- Parameters:
usage
- The pattern for which a JSP location is to be returned.- Returns:
- JspLocation - The JSP location that is associated with the specified usage pattern.
- Since:
- 5.1
-
getJspLocations
JspLocation[] getJspLocations(JspUsageEnum usage)
Returns the JSP locations for the specified usage pattern, if any. If no usage pattern is specified, null is returned.- Parameters:
usage
- The usage pattern for which a JSP location is to be returned - seeJspUsageEnum
.- Returns:
- JspLocation[] - An array of all JSP locations that are associated with the specified usage pattern. Returns an empty array, when there are no JSP locations.
- Since:
- 6.0
-
getJspLocation
JspLocation getJspLocation(JspUsageEnum usage, JspApplicableRoleEnum applicableRole)
Returns the JSP location for the specified usage pattern and role. If a usage pattern or role is not specified, null is returned. Note: To determine the JspLocation for a fault (JspUsageEnum.FAULT
), usegetJspLocation(String, JspApplicableRoleEnum)
. The fault name must be specified as an additional parameter since there can be a JspLocation per fault.- Parameters:
usage
- The usage pattern for which a JSP location is to be returned - seeJspUsageEnum
.applicableRole
- The role for which a JSP location is to be returned - seeJspApplicableRoleEnum
.- Returns:
- JspLocation - The JSP location that is associated with the specified usage pattern and role.
- Since:
- 6.0
-
getJspLocation
JspLocation getJspLocation(java.lang.String faultName, JspApplicableRoleEnum applicableRole)
Returns the JSP location for the usage patternfault
and the specified fault name and role. If the fault name or the role are not specified, null is returned.- Parameters:
faultName
- The fault name for which the JSP location is to be returned.applicableRole
- The role for which the JSP location is to be returned -JspApplicableRoleEnum
.- Returns:
- JspLocation - The JSP location that is associated with the specified fault name and role.
- Since:
- 6.0
-
-