public class Utilities extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Utilities.UnPw
A simple Authentication object in which the username and password
obtained from the user is cached for use by the CM API.
|
Modifier and Type | Field and Description |
---|---|
private static javax.wvcm.ProviderFactory.Callback |
g_callback |
static String |
g_pass
Password used by static callback
|
static String |
g_user
User name used by static callback
|
Constructor and Description |
---|
Utilities() |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
exception(java.awt.Component frame,
String title,
Throwable ex)
Displays a Swing dialog containing the messages associated with a given
Throwable.
|
(package private) static com.ibm.rational.wvcm.stp.StpProvider |
getProvider()
Constructs an instance of the CM API provider with or without an
authenticator.
|
static CqProvider |
getStaticProvider() |
(package private) static javax.wvcm.ResourceList<CqUserDb> |
getUserDbList(CqProvider provider,
javax.wvcm.PropertyRequestItem.PropertyRequest feedback) |
(package private) static boolean |
isListOfResources(Object val) |
private static Object |
messages(Throwable ex)
Extracts the message content from a Throwable and returns it as a
hierarchical array of Strings capturing the nesting of the Throwable's
message components.
|
(package private) static String |
resourceType(javax.wvcm.Resource resource)
Returns a String suitable for displaying the type of resource as
determined by its proxy class.
|
(package private) static javax.wvcm.ResourceList<? extends com.ibm.rational.wvcm.stp.StpResource> |
toResourceList(com.ibm.rational.wvcm.stp.StpProvider provider,
List list) |
public static String g_pass
public static String g_user
private static javax.wvcm.ProviderFactory.Callback g_callback
public Utilities()
public static CqProvider getStaticProvider() throws Exception
Exception
static com.ibm.rational.wvcm.stp.StpProvider getProvider() throws Exception
Exception
- If the Provider could not be instantiatedstatic javax.wvcm.ResourceList<CqUserDb> getUserDbList(CqProvider provider, javax.wvcm.PropertyRequestItem.PropertyRequest feedback) throws javax.wvcm.WvcmException
javax.wvcm.WvcmException
private static Object messages(Throwable ex)
ex
- The Throwable object whose message content is to be extracted.static void exception(java.awt.Component frame, String title, Throwable ex)
frame
- The parent frame for the message dialog.title
- The title to appear in the dialog window.ex
- The throwable whose messages are to be displayed.static String resourceType(javax.wvcm.Resource resource)
resource
- A Resource proxy from which the type of resource will be
determined.static boolean isListOfResources(Object val)
static javax.wvcm.ResourceList<? extends com.ibm.rational.wvcm.stp.StpResource> toResourceList(com.ibm.rational.wvcm.stp.StpProvider provider, List list)
Copyright © IBM 2016. All rights reserved.