com.atlassian.jira.dashboard
Class DefaultLegacyGadgetUrlProvider
java.lang.Object
com.atlassian.jira.dashboard.DefaultLegacyGadgetUrlProvider
- All Implemented Interfaces:
- LegacyGadgetUrlProvider
public class DefaultLegacyGadgetUrlProvider
- extends Object
- implements LegacyGadgetUrlProvider
Method Summary |
String |
extractPortletKey(URI gadgetUri)
Given a URI for legacy portlet spec, this method extracts the portlet key. |
URI |
getLegacyURI(String portletKey)
Given the portletKey, this method concatenates this instances baseurl, prefix, key and extension to provide the
location of the gadget spec for this gadget. |
boolean |
isLegacyGadget(URI gadgetUri)
Given a URI this method checks if the URI is for a legacy portlet. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultLegacyGadgetUrlProvider
public DefaultLegacyGadgetUrlProvider()
getLegacyURI
public URI getLegacyURI(String portletKey)
- Description copied from interface:
LegacyGadgetUrlProvider
- Given the portletKey, this method concatenates this instances baseurl, prefix, key and extension to provide the
location of the gadget spec for this gadget.
- Specified by:
getLegacyURI
in interface LegacyGadgetUrlProvider
- Parameters:
portletKey
- The portletKey for the legacy portlet
- Returns:
- A URI containing the location of the gadgetSpec
isLegacyGadget
public boolean isLegacyGadget(URI gadgetUri)
- Description copied from interface:
LegacyGadgetUrlProvider
- Given a URI this method checks if the URI is for a legacy portlet.
- Specified by:
isLegacyGadget
in interface LegacyGadgetUrlProvider
- Parameters:
gadgetUri
- The gadget spec URI
- Returns:
- true if the uri is for a legacy portlet, false otherwise
extractPortletKey
public String extractPortletKey(URI gadgetUri)
- Description copied from interface:
LegacyGadgetUrlProvider
- Given a URI for legacy portlet spec, this method extracts the portlet key.
- Specified by:
extractPortletKey
in interface LegacyGadgetUrlProvider
- Parameters:
gadgetUri
- The legacy portlet gadget spec URI
- Returns:
- The legacy portletKey defined in the URI.
Copyright © 2002-2009 Atlassian. All Rights Reserved.