|
Project: stp | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectcom.ibm.rational.stp.client.samples.Utilities
public class Utilities
A collection of static utility methods supporting the CM API examples
| Nested Class Summary | |
|---|---|
(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. |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
Utilities()
|
|
| Method Summary | |
|---|---|
(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)
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static String g_pass
public static String g_user
private static javax.wvcm.ProviderFactory.Callback g_callback
| Constructor Detail |
|---|
public Utilities()
| Method Detail |
|---|
public static CqProvider getStaticProvider()
throws Exception
Exception
static com.ibm.rational.wvcm.stp.StpProvider getProvider()
throws Exception
Exception - If the Provider could not be instantiated
static javax.wvcm.ResourceList<CqUserDb> getUserDbList(CqProvider provider,
javax.wvcm.PropertyRequestItem.PropertyRequest feedback)
throws javax.wvcm.WvcmException
javax.wvcm.WvcmExceptionprivate 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)
|
Generated Fri 3-Nov-2017 12:50 AM | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||