public interface GadgetService
Modifier and Type | Method and Description |
---|---|
GadgetDeclaration |
getGadget(String gadgetSymbolicName)
Return a gadget declaration
|
List<String> |
getGadgetCategory()
Returns the list of gadget categories
|
URL |
getGadgetDefinition(String gadgetName)
Returns a URL to the gadget definition
|
List<GadgetDeclaration> |
getGadgetList()
Returns the list of all registered gadgets declarations
|
List<GadgetDeclaration> |
getGadgetList(String category)
Returns the list of the registered gadgets for a given category
|
Map<String,ArrayList<String>> |
getGadgetNameByCategory()
Return a hashed map of all registered gadgets by category TODO: check if
this is necessary in the API (perhaps a GWT tweak)
|
InputStream |
getGadgetResource(String gadgetName,
String resourcePath)
Returns a stream on a resource of a gadget
|
org.apache.shindig.gadgets.spec.GadgetSpec |
getGadgetSpec(GadgetDeclaration declaration)
Return the parsed Gadget Spec (may require an http fetch)
|
org.apache.shindig.gadgets.spec.GadgetSpec |
getGadgetSpec(String gadgetName)
Return the parsed Gadget Spec (may require an http fetch)
|
String |
getIconUrl(String gadgetName)
Returns a relative URL to the gadget icon
|
GadgetDeclaration getGadget(String gadgetSymbolicName)
gadgetSymbolicName
- the symbolic name of the gadgetList<GadgetDeclaration> getGadgetList()
List<GadgetDeclaration> getGadgetList(String category)
category
- the categoryMap<String,ArrayList<String>> getGadgetNameByCategory()
InputStream getGadgetResource(String gadgetName, String resourcePath) throws IOException
gadgetName
- the symbolic name of the gadgetresourcePath
- the relative path to the resourcesIOException
URL getGadgetDefinition(String gadgetName)
gadgetName
- the gadget symbolic nameString getIconUrl(String gadgetName)
gadgetName
- the gadget symbolic nameorg.apache.shindig.gadgets.spec.GadgetSpec getGadgetSpec(String gadgetName) throws Exception
gadgetName
- the gadget symbolic nameException
org.apache.shindig.gadgets.spec.GadgetSpec getGadgetSpec(GadgetDeclaration declaration) throws Exception
declaration
- Exception
Copyright © 2013 Nuxeo SA. All Rights Reserved.