|
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
| Constructor Summary | |
|---|---|
GadgetServiceImpl()
|
|
| Method Summary | |
|---|---|
GadgetDeclaration |
getGadget(java.lang.String name)
Return a gadget declaration |
java.util.List<java.lang.String> |
getGadgetCategory()
Returns the list of gadget categories |
java.net.URL |
getGadgetDefinition(java.lang.String gadgetName)
Returns a URL to the gadget definition |
java.util.List<GadgetDeclaration> |
getGadgetList()
Returns the list of all registered gadgets declarations |
java.util.List<GadgetDeclaration> |
getGadgetList(java.lang.String category)
Returns the list of the registered gadgets for a given category |
java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.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) |
java.io.InputStream |
getGadgetResource(java.lang.String gadgetName,
java.lang.String resourcePath)
Returns a stream on a resource of a gadget |
java.lang.String |
getIconUrl(java.lang.String gadgetName)
Returns a relative URL to the gadget icon |
void |
registerContribution(java.lang.Object contribution,
java.lang.String extensionPoint,
ComponentInstance contributor)
|
void |
registerNewGadget(GadgetDeclaration gadget)
|
void |
unregisterContribution(java.lang.Object contribution,
java.lang.String extensionPoint,
ComponentInstance contributor)
|
| Methods inherited from class org.nuxeo.runtime.model.DefaultComponent |
|---|
activate, deactivate, getAdapter, registerExtension, unregisterExtension |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GadgetServiceImpl()
| Method Detail |
|---|
public void registerContribution(java.lang.Object contribution,
java.lang.String extensionPoint,
ComponentInstance contributor)
throws java.lang.Exception
registerContribution in class DefaultComponentjava.lang.Exception
public void unregisterContribution(java.lang.Object contribution,
java.lang.String extensionPoint,
ComponentInstance contributor)
throws java.lang.Exception
unregisterContribution in class DefaultComponentjava.lang.Exceptionpublic void registerNewGadget(GadgetDeclaration gadget)
public GadgetDeclaration getGadget(java.lang.String name)
GadgetService
getGadget in interface GadgetServicename - the symbolic name of the gadget
public java.io.InputStream getGadgetResource(java.lang.String gadgetName,
java.lang.String resourcePath)
throws java.io.IOException
GadgetService
getGadgetResource in interface GadgetServicegadgetName - the symbolic name of the gadgetresourcePath - the relative path to the resources
java.io.IOExceptionpublic java.util.List<GadgetDeclaration> getGadgetList()
GadgetService
getGadgetList in interface GadgetServicepublic java.util.List<GadgetDeclaration> getGadgetList(java.lang.String category)
GadgetService
getGadgetList in interface GadgetServicecategory - the categorypublic java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getGadgetNameByCategory()
GadgetService
getGadgetNameByCategory in interface GadgetServicepublic java.net.URL getGadgetDefinition(java.lang.String gadgetName)
GadgetService
getGadgetDefinition in interface GadgetServicegadgetName - the gadget symbolic namepublic java.util.List<java.lang.String> getGadgetCategory()
GadgetService
getGadgetCategory in interface GadgetServicepublic java.lang.String getIconUrl(java.lang.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 | |||||||||