com.atlassian.gadgets.directory.internal.impl
Class DirectoryUrlBuilderImpl

java.lang.Object
  extended by com.atlassian.gadgets.util.AbstractUrlBuilder
      extended by com.atlassian.gadgets.directory.internal.impl.DirectoryUrlBuilderImpl
All Implemented Interfaces:
DirectoryUrlBuilder, UrlBuilder

public class DirectoryUrlBuilderImpl
extends AbstractUrlBuilder
implements DirectoryUrlBuilder


Field Summary
 
Fields inherited from class com.atlassian.gadgets.util.AbstractUrlBuilder
applicationProperties, webResourceManager
 
Constructor Summary
DirectoryUrlBuilderImpl(com.atlassian.sal.api.ApplicationProperties applicationProperties, com.atlassian.plugin.webresource.WebResourceManager webResourceManager)
           
 
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.
 
Methods inherited from class com.atlassian.gadgets.util.AbstractUrlBuilder
buildImageUrl, buildRpcJsUrl, getBaseUrl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryUrlBuilderImpl

public DirectoryUrlBuilderImpl(com.atlassian.sal.api.ApplicationProperties applicationProperties,
                               com.atlassian.plugin.webresource.WebResourceManager webResourceManager)
Method Detail

buildDirectoryResourceUrl

public String buildDirectoryResourceUrl()
Description copied from interface: DirectoryUrlBuilder
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.

Specified by:
buildDirectoryResourceUrl in interface DirectoryUrlBuilder
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

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

Specified by:
buildDirectoryGadgetResourceUrl in interface DirectoryUrlBuilder
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

public String buildSubscribedGadgetFeedsUrl()
Description copied from interface: DirectoryUrlBuilder
Returns the URL of the collection of subscribed gadget feeds.

Specified by:
buildSubscribedGadgetFeedsUrl in interface DirectoryUrlBuilder
Returns:
URL of the collection of subscribed gadget feeds

buildSubscribedGadgetFeedUrl

public String buildSubscribedGadgetFeedUrl(String feedId)
Description copied from interface: DirectoryUrlBuilder
Returns a URL that can be used to view or remove a subscribed gadget feed.

Specified by:
buildSubscribedGadgetFeedUrl in interface DirectoryUrlBuilder
Parameters:
feedId - ID of a subscribed gadget feed
Returns:
URL that can be used to view or remove an subscribed gadget feed.


Copyright © 2012 Atlassian. All Rights Reserved.