|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.runtime.model.DefaultComponent
org.nuxeo.opensocial.gadgets.service.GadgetServiceImpl
public class GadgetServiceImpl
| Field Summary | |
|---|---|
static String |
GADGET_DIRECTORY
|
| Constructor Summary | |
|---|---|
GadgetServiceImpl()
|
|
| Method Summary | |
|---|---|
GadgetDeclaration |
getGadget(String name)
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 |
HashMap<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 name)
Return the parsed Gadget Spec (may require an http fetch) |
String |
getIconUrl(String gadgetName)
Returns a relative URL to the gadget icon |
void |
registerContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor)
|
void |
registerNewGadget(GadgetDeclaration gadget)
|
void |
unregisterContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor)
|
| Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
|---|
activate, applicationStarted, deactivate, getAdapter, registerExtension, unregisterExtension |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String GADGET_DIRECTORY
| Constructor Detail |
|---|
public GadgetServiceImpl()
| Method Detail |
|---|
public void registerContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor)
throws Exception
registerContribution in class org.nuxeo.runtime.model.DefaultComponentException
public void unregisterContribution(Object contribution,
String extensionPoint,
org.nuxeo.runtime.model.ComponentInstance contributor)
throws Exception
unregisterContribution in class org.nuxeo.runtime.model.DefaultComponentExceptionpublic void registerNewGadget(GadgetDeclaration gadget)
public GadgetDeclaration getGadget(String name)
GadgetService
getGadget in interface GadgetServicename - the symbolic name of the gadget
public InputStream getGadgetResource(String gadgetName,
String resourcePath)
throws IOException
GadgetService
getGadgetResource in interface GadgetServicegadgetName - the symbolic name of the gadgetresourcePath - the relative path to the resources
IOException
public org.apache.shindig.gadgets.spec.GadgetSpec getGadgetSpec(String name)
throws Exception
GadgetService
getGadgetSpec in interface GadgetServicename - the gadget symbolic name
Exception
public org.apache.shindig.gadgets.spec.GadgetSpec getGadgetSpec(GadgetDeclaration declaration)
throws Exception
GadgetService
getGadgetSpec in interface GadgetServiceExceptionpublic List<GadgetDeclaration> getGadgetList()
GadgetService
getGadgetList in interface GadgetServicepublic List<GadgetDeclaration> getGadgetList(String category)
GadgetService
getGadgetList in interface GadgetServicecategory - the categorypublic HashMap<String,ArrayList<String>> getGadgetNameByCategory()
GadgetService
getGadgetNameByCategory in interface GadgetServicepublic URL getGadgetDefinition(String gadgetName)
GadgetService
getGadgetDefinition in interface GadgetServicegadgetName - the gadget symbolic namepublic List<String> getGadgetCategory()
GadgetService
getGadgetCategory in interface GadgetServicepublic String getIconUrl(String gadgetName)
GadgetService
getIconUrl in interface GadgetServicegadgetName - the gadget symbolic name
|
Nuxeo Enterprise Platform 5.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||