|
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 DefaultComponent
java.lang.Exception
public void unregisterContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor) throws java.lang.Exception
unregisterContribution
in class DefaultComponent
java.lang.Exception
public void registerNewGadget(GadgetDeclaration gadget)
public GadgetDeclaration getGadget(java.lang.String name)
GadgetService
getGadget
in interface GadgetService
name
- the symbolic name of the gadgetpublic java.io.InputStream getGadgetResource(java.lang.String gadgetName, java.lang.String resourcePath) throws java.io.IOException
GadgetService
getGadgetResource
in interface GadgetService
gadgetName
- the symbolic name of the gadgetresourcePath
- the relative path to the resources
java.io.IOException
public java.util.List<GadgetDeclaration> getGadgetList()
GadgetService
getGadgetList
in interface GadgetService
public java.util.List<GadgetDeclaration> getGadgetList(java.lang.String category)
GadgetService
getGadgetList
in interface GadgetService
category
- the categorypublic java.util.HashMap<java.lang.String,java.util.ArrayList<java.lang.String>> getGadgetNameByCategory()
GadgetService
getGadgetNameByCategory
in interface GadgetService
public java.net.URL getGadgetDefinition(java.lang.String gadgetName)
GadgetService
getGadgetDefinition
in interface GadgetService
gadgetName
- the gadget symbolic namepublic java.util.List<java.lang.String> getGadgetCategory()
GadgetService
getGadgetCategory
in interface GadgetService
public java.lang.String getIconUrl(java.lang.String gadgetName)
GadgetService
getIconUrl
in interface GadgetService
gadgetName
- 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 |