Quantcast
Channel:
Viewing all articles
Browse latest Browse all 43798

Forum Post: RE: hyperlink in APE description

$
0
0
Umm, It seems to me that there are 2 separate questions here. 1) How does one write an APE that automatically updates the description field of a CR 2) & there are 4 sub questions here. How does one create a hyperlink (URL) to http, starteam, alm & caliber objects. To produce a URL to a starteam object, you need to use the api /** * Resolves the given StarTeam resource to a corresponding URL using an ID * based scheme * * @param object *            the StarTeam resource to be resolved * @return a String URL that uniquely identifies the resource */ public String com.starteam.Application::toStarTeamURL(Object object) {...} The application object is directly available thru the 'new' com.starteam namespace, starting from the 12.0+ SDKs. There was no support for StarTeam URLs in any pre-11.0 SDK. The application object is reachable from the server object. /** * Gets the client application that owns this Server instance. * * @return The client application that owns this Server instance. */ public com.starteam.Server::Application getApplication() {...} APE's are developed to the 'old' com.starbase.starteam namespace. To 'bridge' an old namespace object to the new namespace object, you call the unwrap() method on the old namespace instance. So to get the starteam:// URL of (for example) a file in the old namespace, you need to dereference or unwrap() the server & the file instances e.g. com.starbase.starteam.Server [instance].unwrap().getApplication().toStarTeamURL(com.starbase.starteam.File [instance].unwrap()) You should probably take up Question 1) with StarTeam Customer Support directly, and take up the sub-parts of Question 2) w.r.t. alm:// & caliber:// with the respective SCTM and Caliber Teams (or forums) I imagine you already know how to create http url's to web resources... My apologies if I have fundamentally misunderstood your question.

Viewing all articles
Browse latest Browse all 43798

Trending Articles