| java.lang.Object com.sun.portal.providers.ProviderEditUtility
ProviderEditUtility | public class ProviderEditUtility (Code) | | Provides access to common methods for use by the communication channels.
Most of\ these methods will handle the SSOAdapter
author: Bill York |
Method Summary | |
public static StringBuffer | createEditContent(String type, String header, String key, String pName, ProviderContext pc, boolean useDP) This is the main method used by the application preference editing. | public static String | encode(String enc, String charset) Wrapper class for encode. | public static String | getCharSet() | public static URL | getErrorURL() | public static String | getRequestParameter(String key, HttpServletRequest req) | public static StringBuffer | getSSOAdapterPrefs(ProviderAdapter prov, SSOAdapter ssoa) Gets the SSOAdapterPrefs attribute of the ProviderEditUtility object. | public static Properties | getSSOAdapterProperties() | public static String | getSSOProperty(String key) | public static boolean | isAppHandlerSet(HashMap appHandlers, String appValue) | public static boolean | isEmpty(String line) | public static void | setCharSet(String cs) | public static Hashtable | setDefaultPresentation(String provName, ProviderContext pc, Hashtable tagTable) This method sets default presentation values based on a providers theme. | public static SSOAdapter | setSSOAdapterPrefs(ProviderAdapter prov, SSOAdapter ssoAdapter, SSOAdapterFactory adapterFactory, HttpServletRequest request) | public static void | setSSOAdapterProperties(Properties props) |
container | public static String container(Code) | | Current container
|
editContainer | public static String editContainer(Code) | | Current edit container
|
createEditContent | public static StringBuffer createEditContent(String type, String header, String key, String pName, ProviderContext pc, boolean useDP)(Code) | | This is the main method used by the application preference editing. It
uses the display profile attributes dpEditAttributes and ssoEditAttributes
to edit what is displayed.
Parameters: type - type of parameter string, check, select, or password Parameters: header - header to display Parameters: key - key to create HTML item for Parameters: pName - provider name Parameters: pc - current provider context Parameters: useDP - Defines if this is for the display profile or for thessoAdapter Description of the Return Value |
encode | public static String encode(String enc, String charset)(Code) | | Wrapper class for encode. Relies on class level charset attribute
Parameters: enc - String to encode Encoded string contents if successful or unencoded string results if failed. |
getErrorURL | public static URL getErrorURL()(Code) | | Gets the errorURL attribute of the ProviderEditUtility class
The errorURL value |
getRequestParameter | public static String getRequestParameter(String key, HttpServletRequest req)(Code) | | Gets the requestParameter attribute of the ProviderEditUtility class
Parameters: key - key to retrieve value Parameters: req - request to look for values in The requestParameter value |
getSSOAdapterPrefs | public static StringBuffer getSSOAdapterPrefs(ProviderAdapter prov, SSOAdapter ssoa) throws Exception(Code) | | Gets the SSOAdapterPrefs attribute of the ProviderEditUtility object. This
creates the first edit page you see with the host, port, and all other
connection related attributes.
Parameters: prov - A reference to the provider Parameters: ssoa - The current SSOAdapter used by the provider class The editable SSOAdapter attributes exception: Exception - Description of the Exception |
getSSOAdapterProperties | public static Properties getSSOAdapterProperties()(Code) | | Gets the sSOAdapterProperties attribute of the ProviderEditUtility class
The sSOAdapterProperties value |
getSSOProperty | public static String getSSOProperty(String key)(Code) | | Gets the SSOProperty attribute of the MessengerExpressHelper object
Parameters: key - Key to use to retrieve value The sSOProperty value |
isAppHandlerSet | public static boolean isAppHandlerSet(HashMap appHandlers, String appValue)(Code) | | Gets the appHandlerSet attribute of the ProviderEditUtility class
Parameters: appHandlers - app helper map Parameters: appValue - app helper to retrieve The appHandlerSet value |
isEmpty | public static boolean isEmpty(String line)(Code) | | Gets the empty attribute of the ProviderEditUtility object
Parameters: line - String to check The empty value |
setDefaultPresentation | public static Hashtable setDefaultPresentation(String provName, ProviderContext pc, Hashtable tagTable) throws ProviderContextException(Code) | | This method sets default presentation values based on a providers theme.
Parameters: tagTable - The tagTable that you want to setdefault values in Parameters: provName - provider name Parameters: pc - current provider context The hashtable with the followingvalues set bgColor Background Color borderWidth Border width for atable titlebarColor Color for a table section borderColor Color for atable border fontFace Font style fontColor Font color exception: ProviderContextException - Description of the Exception |
setSSOAdapterPrefs | public static SSOAdapter setSSOAdapterPrefs(ProviderAdapter prov, SSOAdapter ssoAdapter, SSOAdapterFactory adapterFactory, HttpServletRequest request) throws Exception(Code) | | Sets the SSOAdapterPrefs attribute of the ProviderAdapter object
Parameters: prov - A reference to the provider Parameters: request - The HttpServletRequest from the provider provider Parameters: ssoAdapter - The current SSOAdapter used by the provider class Parameters: adapterFactory - The new sSOAdapterPrefs value returns the new SSOAdapter after saving theattributes. exception: Exception - Description of the Exception |
setSSOAdapterProperties | public static void setSSOAdapterProperties(Properties props)(Code) | | Sets the sSOAdapterProperties attribute of the ProviderEditUtility class
Parameters: props - The new sSOAdapterProperties value |
|
|