org.sonar.gwt
Class Links

java.lang.Object
  extended by org.sonar.gwt.Links

public final class Links
extends Object


Field Summary
static String DEFAULT_POPUP_HTML_FEATURES
           
 
Method Summary
static String apiUrl()
           
static String baseUrl()
           
static void openMeasurePopup(String resourceIdOrKey, String metricKey)
          Open the resource in a popup with HTML features like: height=800,width=900,scrollbars=1,resizable=1
static void openMeasurePopup(String resourceKey, String metricKey, String htmlFeatures)
           
static void openResourcePage(String pageId, String resourceIdOrKey, String query)
           
static void openResourcePopup(String resourceIdOrKey)
           
static void openRulePopup(String ruleIdOrKey)
           
static void openRulePopup(String ruleIdOrKey, String htmlFeatures)
           
static String urlForDrilldown(String resourceIdOrKey, String metricKey)
           
static String urlForMeasure(String resourceIdOrKey, String metricKey)
           
static String urlForResource(String resourceIdOrKey)
           
static String urlForResourcePage(String resourceIdOrKey, String pageId, String query)
           
static String urlForRule(String ruleIdOrKey, boolean showLayout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_POPUP_HTML_FEATURES

public static final String DEFAULT_POPUP_HTML_FEATURES
See Also:
Constant Field Values
Method Detail

baseUrl

public static String baseUrl()

apiUrl

public static String apiUrl()

urlForResource

public static String urlForResource(String resourceIdOrKey)

urlForMeasure

public static String urlForMeasure(String resourceIdOrKey,
                                   String metricKey)

urlForResourcePage

public static String urlForResourcePage(String resourceIdOrKey,
                                        String pageId,
                                        String query)
Parameters:
resourceIdOrKey -
pageId -
query - additional query parameters. Can be null. Example "layout=false¶m1=val1"

urlForRule

public static String urlForRule(String ruleIdOrKey,
                                boolean showLayout)

urlForDrilldown

public static String urlForDrilldown(String resourceIdOrKey,
                                     String metricKey)

openResourcePopup

public static void openResourcePopup(String resourceIdOrKey)

openMeasurePopup

public static void openMeasurePopup(String resourceIdOrKey,
                                    String metricKey)
Open the resource in a popup with HTML features like: height=800,width=900,scrollbars=1,resizable=1

Parameters:
resourceIdOrKey - the id or key of the resource to display, not null
metricKey - the metric to highlight (optional : can be null)

openMeasurePopup

public static void openMeasurePopup(String resourceKey,
                                    String metricKey,
                                    String htmlFeatures)

openResourcePage

public static void openResourcePage(String pageId,
                                    String resourceIdOrKey,
                                    String query)

openRulePopup

public static void openRulePopup(String ruleIdOrKey)

openRulePopup

public static void openRulePopup(String ruleIdOrKey,
                                 String htmlFeatures)


Copyright © 2009-2010 SonarSource. All Rights Reserved.