|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.gadgets.directory.internal.rest.DirectoryResource
public class DirectoryResource
Provides a JSON representation of the directory.
| Constructor Summary | |
|---|---|
DirectoryResource(com.atlassian.gadgets.directory.Directory directory,
com.atlassian.gadgets.GadgetRequestContextFactory gadgetRequestContextFactory,
ConfigurableExternalGadgetSpecStore configurableDirectory,
DirectoryConfigurationPermissionChecker gadgetUrlChecker,
com.atlassian.sal.api.message.I18nResolver i18n)
Constructor. |
|
| Method Summary | |
|---|---|
javax.ws.rs.core.Response |
deleteGadgetFromDirectory(javax.servlet.http.HttpServletRequest request,
com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId gadgetId)
|
javax.ws.rs.core.Response |
getDirectory(javax.servlet.http.HttpServletRequest request)
Returns a representation of the categories and gadgets contained in the directory. |
javax.ws.rs.core.Response |
putGadgetInDirectory(javax.servlet.http.HttpServletRequest request,
Reader jsonContent)
Adds the specified gadget URL to the directory listing. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectoryResource(com.atlassian.gadgets.directory.Directory directory,
com.atlassian.gadgets.GadgetRequestContextFactory gadgetRequestContextFactory,
ConfigurableExternalGadgetSpecStore configurableDirectory,
DirectoryConfigurationPermissionChecker gadgetUrlChecker,
com.atlassian.sal.api.message.I18nResolver i18n)
directory - the Directory implementation to usegadgetRequestContextFactory - the GadgetRequestContextFactory
implementation to useconfigurableDirectory - the ConfigurableExternalGadgetStore
implementation to usegadgetUrlChecker - the GadgetSpecUrlChecker implementation toi18n - the I18nResolver implementation to use| Method Detail |
|---|
public javax.ws.rs.core.Response getDirectory(@Context
javax.servlet.http.HttpServletRequest request)
request - context-supplied HttpServletRequest, used to resolve the user's locale
Response carrying the JSON/XML representation of the directory contents
public javax.ws.rs.core.Response putGadgetInDirectory(@Context
javax.servlet.http.HttpServletRequest request,
Reader jsonContent)
request - context-supplied HttpServletRequest, used to retrieve information for the user making the
requestjsonContent - the post content in JSON
Response carrying the URL at which the gadget was added
public javax.ws.rs.core.Response deleteGadgetFromDirectory(@Context
javax.servlet.http.HttpServletRequest request,
com.atlassian.gadgets.directory.spi.ExternalGadgetSpecId gadgetId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||