com.atlassian.gadgets.directory.internal
Interface DirectoryUrlBuilder

All Known Implementing Classes:
DirectoryUrlBuilderImpl

public interface DirectoryUrlBuilder


Method Summary
 String buildDirectoryGadgetResourceUrl(com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId id)
          Returns a URL that can be used to delete a gadget spec file from the Directory
 String buildDirectoryResourceUrl()
          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 buildSubscribedGadgetFeedsUrl()
          Returns the URL of the collection of subscribed gadget feeds.
 String buildSubscribedGadgetFeedUrl(String feedId)
          Returns a URL that can be used to view or remove a subscribed gadget feed.
 

Method Detail

buildDirectoryResourceUrl

String buildDirectoryResourceUrl()
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.

Returns:
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.

buildDirectoryGadgetResourceUrl

String buildDirectoryGadgetResourceUrl(com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId id)
Returns a URL that can be used to delete a gadget spec file from the Directory

Parameters:
id - the id of the Gadget whose resource you want to build.
Returns:
a URL that can be used to delete a gadget spec file from the Directory

buildSubscribedGadgetFeedsUrl

String buildSubscribedGadgetFeedsUrl()
Returns the URL of the collection of subscribed gadget feeds.

Returns:
URL of the collection of subscribed gadget feeds

buildSubscribedGadgetFeedUrl

String buildSubscribedGadgetFeedUrl(String feedId)
Returns a URL that can be used to view or remove a subscribed gadget feed.

Parameters:
feedId - ID of a subscribed gadget feed
Returns:
URL that can be used to view or remove an subscribed gadget feed.


Copyright © 2013 Atlassian. All Rights Reserved.