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(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.
 
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(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


Copyright © 2010 Atlassian. All Rights Reserved.