|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.gadgets.directory.internal.DirectoryResource
public class DirectoryResource
Provides a JSON representation of the directory.
Constructor Summary | |
---|---|
DirectoryResource(Directory directory,
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,
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(Directory directory, 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 useMethod 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 contentspublic 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 addedpublic javax.ws.rs.core.Response deleteGadgetFromDirectory(@Context javax.servlet.http.HttpServletRequest request, ExternalGadgetSpecId gadgetId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |