|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.gadgets.util.AbstractUrlBuilder com.atlassian.gadgets.dashboard.internal.impl.DashboardUrlBuilderImpl
public class DashboardUrlBuilderImpl
Field Summary |
---|
Fields inherited from class com.atlassian.gadgets.util.AbstractUrlBuilder |
---|
applicationProperties, webResourceManager |
Constructor Summary | |
---|---|
DashboardUrlBuilderImpl(com.atlassian.sal.api.ApplicationProperties applicationProperties,
com.atlassian.plugin.webresource.WebResourceManager webResourceManager)
|
Method Summary | |
---|---|
String |
buildDashboardDiagnosticsRelativeUrl()
Returns a relative URL that can be used to access the Dashboard Diagnostics Servlet. |
String |
buildDashboardDirectoryBaseUrl()
Returns the base URL of the directory |
String |
buildDashboardDirectoryResourceUrl()
Returns a URL that can be used to retrieve the list of available gadgets in the directory or to post a new gadget spec URL to the directory. |
String |
buildDashboardDirectoryUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId)
Returns a URL that can be used to post a new gadget to the directory. |
String |
buildDashboardLayoutUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId)
Returns the URL to the layout resource of a dashboard. |
String |
buildDashboardResourceUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId)
Returns a URL that can be used to access the Dashboard resource, to post new gadgets. |
String |
buildDashboardUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId)
Returns the URL to the dashboard container. |
String |
buildErrorGadgetUrl()
Returns a URL that can be used to display an error message when there is a problem loading a gadget. |
String |
buildGadgetColorUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId,
com.atlassian.gadgets.GadgetId gadgetId)
Returns the URL to the color resource of a gadget. |
String |
buildGadgetUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId,
com.atlassian.gadgets.GadgetId gadgetId)
Returns the URL to a gadget resource on a dashboard. |
String |
buildGadgetUserPrefsUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId,
com.atlassian.gadgets.GadgetId gadgetId)
Returns the URL to the user prefs resource of a gadget. |
String |
buildSecurityTokensUrl()
Returns the URL for getting new security tokens. |
String |
buildSubscribedGadgetFeedsUrl()
Returns the base URL of the collection of gadget feeds that have been subscribed to. |
protected String |
getBaseUrl()
Overridden to return REST URIs instead of servlet URLs. |
Methods inherited from class com.atlassian.gadgets.util.AbstractUrlBuilder |
---|
buildImageUrl, buildRpcJsUrl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.gadgets.dashboard.internal.DashboardUrlBuilder |
---|
buildRpcJsUrl |
Methods inherited from interface com.atlassian.gadgets.util.UrlBuilder |
---|
buildImageUrl |
Constructor Detail |
---|
public DashboardUrlBuilderImpl(com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.plugin.webresource.WebResourceManager webResourceManager)
Method Detail |
---|
protected String getBaseUrl()
getBaseUrl
in class AbstractUrlBuilder
public String buildDashboardUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId)
DashboardUrlBuilder
buildDashboardUrl
in interface DashboardUrlBuilder
dashboardId
- the dashboard ID to return the URL for
public String buildDashboardLayoutUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId)
DashboardUrlBuilder
buildDashboardLayoutUrl
in interface DashboardUrlBuilder
dashboardId
- DashboardId
of the dashboard that we want the layout resource URL of
public String buildGadgetUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId, com.atlassian.gadgets.GadgetId gadgetId)
DashboardUrlBuilder
buildGadgetUrl
in interface DashboardUrlBuilder
dashboardId
- DashboardId
to find the GadgetId
ongadgetId
- GadgetId
of the gadget we want the resource URL of
public String buildGadgetColorUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId, com.atlassian.gadgets.GadgetId gadgetId)
DashboardUrlBuilder
buildGadgetColorUrl
in interface DashboardUrlBuilder
dashboardId
- DashboardId
to find the GadgetId
ongadgetId
- GadgetId
of the gadget we want the color resource URL of
public String buildGadgetUserPrefsUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId, com.atlassian.gadgets.GadgetId gadgetId)
DashboardUrlBuilder
buildGadgetUserPrefsUrl
in interface DashboardUrlBuilder
dashboardId
- DashboardId
to find the GadgetId
ongadgetId
- GadgetId
of the gadget we want the user prefs resource URL of
public String buildErrorGadgetUrl()
DashboardUrlBuilder
buildErrorGadgetUrl
in interface DashboardUrlBuilder
public String buildDashboardResourceUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId)
DashboardUrlBuilder
buildDashboardResourceUrl
in interface DashboardUrlBuilder
dashboardId
- the ID of the dashboard to post gadgets to
public String buildDashboardDirectoryResourceUrl()
DashboardUrlBuilder
buildDashboardDirectoryResourceUrl
in interface DashboardUrlBuilder
public String buildDashboardDirectoryBaseUrl()
DashboardUrlBuilder
buildDashboardDirectoryBaseUrl
in interface DashboardUrlBuilder
public String buildDashboardDirectoryUrl(com.atlassian.gadgets.dashboard.DashboardId dashboardId)
DashboardUrlBuilder
buildDashboardDirectoryUrl
in interface DashboardUrlBuilder
dashboardId
- the ID of the dashboard to post gadgets to
public String buildSubscribedGadgetFeedsUrl()
DashboardUrlBuilder
buildSubscribedGadgetFeedsUrl
in interface DashboardUrlBuilder
public String buildDashboardDiagnosticsRelativeUrl()
DashboardUrlBuilder
buildDashboardDiagnosticsRelativeUrl
in interface DashboardUrlBuilder
public String buildSecurityTokensUrl()
DashboardUrlBuilder
buildSecurityTokensUrl
in interface DashboardUrlBuilder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |